davinci: Correct the number of GPIO pins for da850/omap-l138
authorSudhakar Rajashekhara <sudhakar.raj@ti.com>
Tue, 11 Aug 2009 20:14:21 +0000 (16:14 -0400)
committerKevin Hilman <khilman@deeprootsystems.com>
Wed, 26 Aug 2009 08:55:52 +0000 (11:55 +0300)
DA850/OMAP-L138 has 144 pins configurable as GPIO, but
currently this has been configured as 128. This patch
corrects it.

Also, this patch adds the base address for GPIO pins
greater than 128.

Signed-off-by: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-davinci/da850.c
arch/arm/mach-davinci/include/mach/gpio.h
arch/arm/mach-davinci/include/mach/irqs.h

index 22205a3727a781b27934fb375a2ac8e43c3c6807..c5efc515df4fdf6be8927fc0b078e0e53c89cdb8 100644 (file)
@@ -623,7 +623,7 @@ static struct davinci_soc_info davinci_soc_info_da850 = {
        .intc_irq_num           = DA850_N_CP_INTC_IRQ,
        .timer_info             = &da850_timer_info,
        .gpio_base              = IO_ADDRESS(DA8XX_GPIO_BASE),
-       .gpio_num               = 128,
+       .gpio_num               = 144,
        .gpio_irq               = IRQ_DA8XX_GPIO0,
        .serial_dev             = &da8xx_serial_device,
        .emac_pdata             = &da8xx_emac_pdata,
index ebcc29babeaee1059372158b92f0949d7a911a64..4f032b38cd6ed874762af30a772db54d7bbeb8fd 100644 (file)
@@ -78,6 +78,8 @@ __gpio_to_controller(unsigned gpio)
                ptr = base + 0x60;
        else if (gpio < 32 * 4)
                ptr = base + 0x88;
+       else if (gpio < 32 * 5)
+               ptr = base + 0xb0;
        else
                ptr = NULL;
        return ptr;
index 6047c2d9da33a8f59fe0a0dcf139986eef6db8ee..7f755cc387e56c1084983e6d72bda3508864f7b8 100644 (file)
 
 #define DA850_N_CP_INTC_IRQ            101
 
-/* da830/da850 currently has the most gpio pins (128) */
-#define DAVINCI_N_GPIO                 128
+/* da850 currently has the most gpio pins (144) */
+#define DAVINCI_N_GPIO                 144
 /* da850 currently has the most irqs so use DA850_N_CP_INTC_IRQ */
 #define NR_IRQS                                (DA850_N_CP_INTC_IRQ + DAVINCI_N_GPIO)
 
This page took 0.02833 seconds and 5 git commands to generate.