diff options
author | Tomas Novotny <tomas@novotny.cz> | 2013-02-01 06:46:00 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-02-18 13:48:03 -0500 |
commit | b9f56698c7e9bf7ac773b5346c4f6886e214b69b (patch) | |
tree | b69aa9d4071b27dfaa86c838db9dd95f6c938a9a /arch | |
parent | 78ed94c8bc743b0a52060388fc9a1439606b71ac (diff) | |
download | u-boot-imx-b9f56698c7e9bf7ac773b5346c4f6886e214b69b.zip u-boot-imx-b9f56698c7e9bf7ac773b5346c4f6886e214b69b.tar.gz u-boot-imx-b9f56698c7e9bf7ac773b5346c4f6886e214b69b.tar.bz2 |
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')
-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) |