diff options
author | Philippe Langlais <philippe.langlais@stericsson.com> | 2012-04-06 11:11:16 +0200 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@stericsson.com> | 2012-04-06 11:11:16 +0200 |
commit | cc0477d1ff54e53b7d2b15bc52e33ef38921a295 (patch) | |
tree | 47177b997291911df68dab553fd6ed36d5a19721 /arch/arm/mach-ux500/include/mach/gpio.h | |
parent | 1f1573eb976d678f587b6254b5257ee7edf6ffb3 (diff) | |
parent | 1133af78634d3bcfaf3af12eb208d906af36efb5 (diff) |
Merge topic branch 'gpio' into integration-linux-ux500-3.3
Diffstat (limited to 'arch/arm/mach-ux500/include/mach/gpio.h')
-rw-r--r-- | arch/arm/mach-ux500/include/mach/gpio.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/include/mach/gpio.h b/arch/arm/mach-ux500/include/mach/gpio.h index c01ef66537f..e0d903af605 100644 --- a/arch/arm/mach-ux500/include/mach/gpio.h +++ b/arch/arm/mach-ux500/include/mach/gpio.h @@ -1,5 +1,29 @@ #ifndef __ASM_ARCH_GPIO_H #define __ASM_ARCH_GPIO_H +/* + * 288 (#267 is the highest one actually hooked up) onchip GPIOs, plus enough + * room for a couple of GPIO expanders. + */ + +#if CONFIG_ARCH_NR_GPIO > 0 +#define ARCH_NR_GPIOS CONFIG_ARCH_NR_GPIO +#else +#define ARCH_NR_GPIOS 366 +#endif + +#define NOMADIK_NR_GPIO 288 + +#include <asm-generic/gpio.h> + +/* Invoke gpiolibs gpio_chip abstraction */ +#define gpio_get_value __gpio_get_value +#define gpio_set_value __gpio_set_value +#define gpio_cansleep __gpio_cansleep +#define gpio_to_irq __gpio_to_irq + +#define MOP500_EGPIO(x) (NOMADIK_NR_GPIO + (x)) +#define MOP500_EGPIO_END MOP500_EGPIO(24) +#define AB8500_GPIO_BASE MOP500_EGPIO_END #endif /* __ASM_ARCH_GPIO_H */ |