diff options
author | Tomas Novotny <tomas@novotny.cz> | 2013-02-01 06:46:00 (GMT) |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-02-18 18:48:03 (GMT) |
commit | b9f56698c7e9bf7ac773b5346c4f6886e214b69b (patch) | |
tree | b69aa9d4071b27dfaa86c838db9dd95f6c938a9a /arch/arm/include/asm/arch-davinci | |
parent | 78ed94c8bc743b0a52060388fc9a1439606b71ac (diff) | |
download | u-boot-fsl-qoriq-b9f56698c7e9bf7ac773b5346c4f6886e214b69b.tar.xz |
da8xx: Add the missing pinmux for da830 to the gpio driver
The pinmux was generated from linux/arch/arm/mach-davinci/da830.c as of
kernel version 3.7.5. If the driver is used for the da850, then SoC
variant must be specified by CONFIG_SOC_DA850.
Signed-off-by: Tomas Novotny <tomas@novotny.cz>
Cc: Tom Rini <trini@ti.com>
Diffstat (limited to 'arch/arm/include/asm/arch-davinci')
-rw-r--r-- | arch/arm/include/asm/arch-davinci/gpio.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-davinci/gpio.h b/arch/arm/include/asm/arch-davinci/gpio.h index ef65ffb..fbbb1f3 100644 --- a/arch/arm/include/asm/arch-davinci/gpio.h +++ b/arch/arm/include/asm/arch-davinci/gpio.h @@ -67,7 +67,11 @@ struct davinci_gpio_bank { #define gpio_status() gpio_info() #define GPIO_NAME_SIZE 20 +#if defined(CONFIG_SOC_DA8XX) && !defined(CONFIG_SOC_DA850) +#define MAX_NUM_GPIOS 128 +#else #define MAX_NUM_GPIOS 144 +#endif #define GPIO_BANK(gp) (davinci_gpio_bank01 + ((gp) >> 5)) #define GPIO_BIT(gp) ((gp) & 0x1F) |