diff options
Diffstat (limited to 'arch/arm/mach-omap2/board-generic.c')
-rw-r--r-- | arch/arm/mach-omap2/board-generic.c | 37 |
1 files changed, 2 insertions, 35 deletions
diff --git a/arch/arm/mach-omap2/board-generic.c b/arch/arm/mach-omap2/board-generic.c index 098d183a0086..7302ba7ff1b9 100644 --- a/arch/arm/mach-omap2/board-generic.c +++ b/arch/arm/mach-omap2/board-generic.c | |||
@@ -15,7 +15,6 @@ | |||
15 | #include <linux/of_irq.h> | 15 | #include <linux/of_irq.h> |
16 | #include <linux/of_platform.h> | 16 | #include <linux/of_platform.h> |
17 | #include <linux/irqdomain.h> | 17 | #include <linux/irqdomain.h> |
18 | #include <linux/i2c/twl.h> | ||
19 | 18 | ||
20 | #include <mach/hardware.h> | 19 | #include <mach/hardware.h> |
21 | #include <asm/hardware/gic.h> | 20 | #include <asm/hardware/gic.h> |
@@ -95,22 +94,6 @@ MACHINE_END | |||
95 | #endif | 94 | #endif |
96 | 95 | ||
97 | #ifdef CONFIG_ARCH_OMAP3 | 96 | #ifdef CONFIG_ARCH_OMAP3 |
98 | static struct twl4030_platform_data beagle_twldata = { | ||
99 | .irq_base = TWL4030_IRQ_BASE, | ||
100 | .irq_end = TWL4030_IRQ_END, | ||
101 | }; | ||
102 | |||
103 | static void __init omap3_i2c_init(void) | ||
104 | { | ||
105 | omap3_pmic_init("twl4030", &beagle_twldata); | ||
106 | } | ||
107 | |||
108 | static void __init omap3_init(void) | ||
109 | { | ||
110 | omap3_i2c_init(); | ||
111 | omap_generic_init(); | ||
112 | } | ||
113 | |||
114 | static const char *omap3_boards_compat[] __initdata = { | 97 | static const char *omap3_boards_compat[] __initdata = { |
115 | "ti,omap3", | 98 | "ti,omap3", |
116 | NULL, | 99 | NULL, |
@@ -122,7 +105,7 @@ DT_MACHINE_START(OMAP3_DT, "Generic OMAP3 (Flattened Device Tree)") | |||
122 | .init_early = omap3430_init_early, | 105 | .init_early = omap3430_init_early, |
123 | .init_irq = omap_init_irq, | 106 | .init_irq = omap_init_irq, |
124 | .handle_irq = omap3_intc_handle_irq, | 107 | .handle_irq = omap3_intc_handle_irq, |
125 | .init_machine = omap3_init, | 108 | .init_machine = omap_generic_init, |
126 | .timer = &omap3_timer, | 109 | .timer = &omap3_timer, |
127 | .dt_compat = omap3_boards_compat, | 110 | .dt_compat = omap3_boards_compat, |
128 | .restart = omap_prcm_restart, | 111 | .restart = omap_prcm_restart, |
@@ -130,22 +113,6 @@ MACHINE_END | |||
130 | #endif | 113 | #endif |
131 | 114 | ||
132 | #ifdef CONFIG_ARCH_OMAP4 | 115 | #ifdef CONFIG_ARCH_OMAP4 |
133 | static struct twl4030_platform_data sdp4430_twldata = { | ||
134 | .irq_base = TWL6030_IRQ_BASE, | ||
135 | .irq_end = TWL6030_IRQ_END, | ||
136 | }; | ||
137 | |||
138 | static void __init omap4_i2c_init(void) | ||
139 | { | ||
140 | omap4_pmic_init("twl6030", &sdp4430_twldata, NULL, 0); | ||
141 | } | ||
142 | |||
143 | static void __init omap4_init(void) | ||
144 | { | ||
145 | omap4_i2c_init(); | ||
146 | omap_generic_init(); | ||
147 | } | ||
148 | |||
149 | static const char *omap4_boards_compat[] __initdata = { | 116 | static const char *omap4_boards_compat[] __initdata = { |
150 | "ti,omap4", | 117 | "ti,omap4", |
151 | NULL, | 118 | NULL, |
@@ -157,7 +124,7 @@ DT_MACHINE_START(OMAP4_DT, "Generic OMAP4 (Flattened Device Tree)") | |||
157 | .init_early = omap4430_init_early, | 124 | .init_early = omap4430_init_early, |
158 | .init_irq = omap_init_irq, | 125 | .init_irq = omap_init_irq, |
159 | .handle_irq = gic_handle_irq, | 126 | .handle_irq = gic_handle_irq, |
160 | .init_machine = omap4_init, | 127 | .init_machine = omap_generic_init, |
161 | .timer = &omap4_timer, | 128 | .timer = &omap4_timer, |
162 | .dt_compat = omap4_boards_compat, | 129 | .dt_compat = omap4_boards_compat, |
163 | .restart = omap_prcm_restart, | 130 | .restart = omap_prcm_restart, |