diff options
author | Alice Guo <alice.guo@nxp.com> | 2022-06-02 18:30:34 +0800 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2022-07-06 22:40:40 +0800 |
commit | cd80e13c4cab6fa3ef105cda547efa3255adfcd1 (patch) | |
tree | 20942451fa6dd17fdb16d9450f248556562aaf85 /arch | |
parent | 095bf99c7917efb1762f3b9298bb0b70e37eb4bb (diff) |
MLK-25902-1 gpio: adp5585: update adp5585 gpio driver
The adp5585 used on i.MX93 has 10 GPIOs, so we update ADP5585_MAXGPIO,
ADP5585_BANK and ADP5585_BIT.
GPIO_x_DIR equals to 0 for input and 1 for output. Make corresponding
changes in adp5585_get_function.
Initialize plat->dat_out and plat->dir in adp5585_probe.
Reviewed-by: Haibo Chen <haibo.chen@nxp.com>
Signed-off-by: Alice Guo <alice.guo@nxp.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/include/asm/arch-imx9/gpio.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-imx9/gpio.h b/arch/arm/include/asm/arch-imx9/gpio.h index 40732022e7..599f7511c3 100644 --- a/arch/arm/include/asm/arch-imx9/gpio.h +++ b/arch/arm/include/asm/arch-imx9/gpio.h @@ -6,6 +6,8 @@ #ifndef __ASM_ARCH_IMX9_GPIO_H #define __ASM_ARCH_IMX9_GPIO_H +#include <common.h> + struct gpio_regs { u32 gpio_pdor; u32 gpio_psor; |