diff options
author | Simon Glass <sjg@chromium.org> | 2014-10-29 13:08:57 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2014-11-21 08:08:19 +0100 |
commit | 918354b18e190a0e42748457470db539ed12fde3 (patch) | |
tree | 0cfcc83d786e8ac35ccd9c8330361c7722ae05f0 /arch/arm | |
parent | cd052cd9353cb483e3a4852cedbd6860bfb488c4 (diff) | |
download | u-boot-imx-918354b18e190a0e42748457470db539ed12fde3.zip u-boot-imx-918354b18e190a0e42748457470db539ed12fde3.tar.gz u-boot-imx-918354b18e190a0e42748457470db539ed12fde3.tar.bz2 |
dm: at91: Add driver model support for atmel GPIO driver
Modify this driver to support driver model, with platform data required to
determine the GPIOs that it controls.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/include/asm/arch-at91/gpio.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-at91/gpio.h b/arch/arm/include/asm/arch-at91/gpio.h index 7121388..6d2a7b7 100644 --- a/arch/arm/include/asm/arch-at91/gpio.h +++ b/arch/arm/include/asm/arch-at91/gpio.h @@ -253,4 +253,10 @@ static inline unsigned at91_gpio_to_pin(unsigned gpio) return gpio % 32; } +/* Platform data for each GPIO port */ +struct at91_port_platdata { + uint32_t base_addr; + const char *bank_name; +}; + #endif /* __ASM_ARCH_AT91_GPIO_H */ |