diff options
Diffstat (limited to 'arch/arm/mach-davinci/da830.c')
-rw-r--r-- | arch/arm/mach-davinci/da830.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/arch/arm/mach-davinci/da830.c b/arch/arm/mach-davinci/da830.c index d6c746e35ad9..0813b5167e05 100644 --- a/arch/arm/mach-davinci/da830.c +++ b/arch/arm/mach-davinci/da830.c | |||
@@ -11,6 +11,7 @@ | |||
11 | #include <linux/gpio.h> | 11 | #include <linux/gpio.h> |
12 | #include <linux/init.h> | 12 | #include <linux/init.h> |
13 | #include <linux/clk.h> | 13 | #include <linux/clk.h> |
14 | #include <linux/platform_data/gpio-davinci.h> | ||
14 | 15 | ||
15 | #include <asm/mach/map.h> | 16 | #include <asm/mach/map.h> |
16 | 17 | ||
@@ -20,7 +21,6 @@ | |||
20 | #include <mach/common.h> | 21 | #include <mach/common.h> |
21 | #include <mach/time.h> | 22 | #include <mach/time.h> |
22 | #include <mach/da8xx.h> | 23 | #include <mach/da8xx.h> |
23 | #include <mach/gpio-davinci.h> | ||
24 | 24 | ||
25 | #include "clock.h" | 25 | #include "clock.h" |
26 | #include "mux.h" | 26 | #include "mux.h" |
@@ -1151,6 +1151,16 @@ static struct davinci_id da830_ids[] = { | |||
1151 | }, | 1151 | }, |
1152 | }; | 1152 | }; |
1153 | 1153 | ||
1154 | static struct davinci_gpio_platform_data da830_gpio_platform_data = { | ||
1155 | .ngpio = 128, | ||
1156 | .intc_irq_num = DA830_N_CP_INTC_IRQ, | ||
1157 | }; | ||
1158 | |||
1159 | int __init da830_register_gpio(void) | ||
1160 | { | ||
1161 | return da8xx_register_gpio(&da830_gpio_platform_data); | ||
1162 | } | ||
1163 | |||
1154 | static struct davinci_timer_instance da830_timer_instance[2] = { | 1164 | static struct davinci_timer_instance da830_timer_instance[2] = { |
1155 | { | 1165 | { |
1156 | .base = DA8XX_TIMER64P0_BASE, | 1166 | .base = DA8XX_TIMER64P0_BASE, |
@@ -1196,10 +1206,6 @@ static struct davinci_soc_info davinci_soc_info_da830 = { | |||
1196 | .intc_irq_prios = da830_default_priorities, | 1206 | .intc_irq_prios = da830_default_priorities, |
1197 | .intc_irq_num = DA830_N_CP_INTC_IRQ, | 1207 | .intc_irq_num = DA830_N_CP_INTC_IRQ, |
1198 | .timer_info = &da830_timer_info, | 1208 | .timer_info = &da830_timer_info, |
1199 | .gpio_type = GPIO_TYPE_DAVINCI, | ||
1200 | .gpio_base = DA8XX_GPIO_BASE, | ||
1201 | .gpio_num = 128, | ||
1202 | .gpio_irq = IRQ_DA8XX_GPIO0, | ||
1203 | .emac_pdata = &da8xx_emac_pdata, | 1209 | .emac_pdata = &da8xx_emac_pdata, |
1204 | }; | 1210 | }; |
1205 | 1211 | ||