diff options
author | Roland Stigge <stigge@antcom.de> | 2012-05-18 04:19:52 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2012-05-18 18:48:36 -0400 |
commit | e92935e13a052df7e6bc274e00fc91b80531f1e4 (patch) | |
tree | b04f80aa90bab2d71f2299b00f5cccc3e7ee9a7a /arch/arm/mach-lpc32xx/include | |
parent | 3d0f7cf0f3633f92ddeb767eb59cab73963d4dee (diff) |
gpio/lpc32xx: Add device tree support
This patch adds device tree support for gpio-lpc32xx.c.
To register the various GPIO banks as (struct) gpio_chips via the same DT
gpio-controller, we utilize the adjusted of_xlate API to manipulate the
actually used struct gpio_chip.
Signed-off-by: Roland Stigge <stigge@antcom.de>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'arch/arm/mach-lpc32xx/include')
-rw-r--r-- | arch/arm/mach-lpc32xx/include/mach/gpio.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/arm/mach-lpc32xx/include/mach/gpio.h b/arch/arm/mach-lpc32xx/include/mach/gpio.h index 40a8c178f10..2ba6ca412be 100644 --- a/arch/arm/mach-lpc32xx/include/mach/gpio.h +++ b/arch/arm/mach-lpc32xx/include/mach/gpio.h | |||
@@ -1 +1,8 @@ | |||
1 | /* empty */ | 1 | #ifndef __MACH_GPIO_H |
2 | #define __MACH_GPIO_H | ||
3 | |||
4 | #include "gpio-lpc32xx.h" | ||
5 | |||
6 | #define ARCH_NR_GPIOS (LPC32XX_GPO_P3_GRP + LPC32XX_GPO_P3_MAX) | ||
7 | |||
8 | #endif /* __MACH_GPIO_H */ | ||