diff options
Diffstat (limited to 'arch/arm/mach-omap2/board-generic.c')
-rw-r--r-- | arch/arm/mach-omap2/board-generic.c | 44 |
1 files changed, 17 insertions, 27 deletions
diff --git a/arch/arm/mach-omap2/board-generic.c b/arch/arm/mach-omap2/board-generic.c index 9480997ba616..608079a1aba6 100644 --- a/arch/arm/mach-omap2/board-generic.c +++ b/arch/arm/mach-omap2/board-generic.c | |||
@@ -27,7 +27,7 @@ | |||
27 | #define gic_of_init NULL | 27 | #define gic_of_init NULL |
28 | #endif | 28 | #endif |
29 | 29 | ||
30 | static struct of_device_id omap_dt_match_table[] __initdata = { | 30 | static const struct of_device_id omap_dt_match_table[] __initconst = { |
31 | { .compatible = "simple-bus", }, | 31 | { .compatible = "simple-bus", }, |
32 | { .compatible = "ti,omap-infra", }, | 32 | { .compatible = "ti,omap-infra", }, |
33 | { } | 33 | { } |
@@ -43,7 +43,7 @@ static void __init omap_generic_init(void) | |||
43 | } | 43 | } |
44 | 44 | ||
45 | #ifdef CONFIG_SOC_OMAP2420 | 45 | #ifdef CONFIG_SOC_OMAP2420 |
46 | static const char *omap242x_boards_compat[] __initconst = { | 46 | static const char *const omap242x_boards_compat[] __initconst = { |
47 | "ti,omap2420", | 47 | "ti,omap2420", |
48 | NULL, | 48 | NULL, |
49 | }; | 49 | }; |
@@ -52,8 +52,6 @@ DT_MACHINE_START(OMAP242X_DT, "Generic OMAP2420 (Flattened Device Tree)") | |||
52 | .reserve = omap_reserve, | 52 | .reserve = omap_reserve, |
53 | .map_io = omap242x_map_io, | 53 | .map_io = omap242x_map_io, |
54 | .init_early = omap2420_init_early, | 54 | .init_early = omap2420_init_early, |
55 | .init_irq = omap_intc_of_init, | ||
56 | .handle_irq = omap2_intc_handle_irq, | ||
57 | .init_machine = omap_generic_init, | 55 | .init_machine = omap_generic_init, |
58 | .init_time = omap2_sync32k_timer_init, | 56 | .init_time = omap2_sync32k_timer_init, |
59 | .dt_compat = omap242x_boards_compat, | 57 | .dt_compat = omap242x_boards_compat, |
@@ -62,7 +60,7 @@ MACHINE_END | |||
62 | #endif | 60 | #endif |
63 | 61 | ||
64 | #ifdef CONFIG_SOC_OMAP2430 | 62 | #ifdef CONFIG_SOC_OMAP2430 |
65 | static const char *omap243x_boards_compat[] __initconst = { | 63 | static const char *const omap243x_boards_compat[] __initconst = { |
66 | "ti,omap2430", | 64 | "ti,omap2430", |
67 | NULL, | 65 | NULL, |
68 | }; | 66 | }; |
@@ -71,8 +69,6 @@ DT_MACHINE_START(OMAP243X_DT, "Generic OMAP2430 (Flattened Device Tree)") | |||
71 | .reserve = omap_reserve, | 69 | .reserve = omap_reserve, |
72 | .map_io = omap243x_map_io, | 70 | .map_io = omap243x_map_io, |
73 | .init_early = omap2430_init_early, | 71 | .init_early = omap2430_init_early, |
74 | .init_irq = omap_intc_of_init, | ||
75 | .handle_irq = omap2_intc_handle_irq, | ||
76 | .init_machine = omap_generic_init, | 72 | .init_machine = omap_generic_init, |
77 | .init_time = omap2_sync32k_timer_init, | 73 | .init_time = omap2_sync32k_timer_init, |
78 | .dt_compat = omap243x_boards_compat, | 74 | .dt_compat = omap243x_boards_compat, |
@@ -81,7 +77,7 @@ MACHINE_END | |||
81 | #endif | 77 | #endif |
82 | 78 | ||
83 | #ifdef CONFIG_ARCH_OMAP3 | 79 | #ifdef CONFIG_ARCH_OMAP3 |
84 | static const char *omap3_boards_compat[] __initconst = { | 80 | static const char *const omap3_boards_compat[] __initconst = { |
85 | "ti,omap3430", | 81 | "ti,omap3430", |
86 | "ti,omap3", | 82 | "ti,omap3", |
87 | NULL, | 83 | NULL, |
@@ -91,8 +87,6 @@ DT_MACHINE_START(OMAP3_DT, "Generic OMAP3 (Flattened Device Tree)") | |||
91 | .reserve = omap_reserve, | 87 | .reserve = omap_reserve, |
92 | .map_io = omap3_map_io, | 88 | .map_io = omap3_map_io, |
93 | .init_early = omap3430_init_early, | 89 | .init_early = omap3430_init_early, |
94 | .init_irq = omap_intc_of_init, | ||
95 | .handle_irq = omap3_intc_handle_irq, | ||
96 | .init_machine = omap_generic_init, | 90 | .init_machine = omap_generic_init, |
97 | .init_late = omap3_init_late, | 91 | .init_late = omap3_init_late, |
98 | .init_time = omap3_sync32k_timer_init, | 92 | .init_time = omap3_sync32k_timer_init, |
@@ -100,7 +94,7 @@ DT_MACHINE_START(OMAP3_DT, "Generic OMAP3 (Flattened Device Tree)") | |||
100 | .restart = omap3xxx_restart, | 94 | .restart = omap3xxx_restart, |
101 | MACHINE_END | 95 | MACHINE_END |
102 | 96 | ||
103 | static const char *omap36xx_boards_compat[] __initconst = { | 97 | static const char *const omap36xx_boards_compat[] __initconst = { |
104 | "ti,omap36xx", | 98 | "ti,omap36xx", |
105 | NULL, | 99 | NULL, |
106 | }; | 100 | }; |
@@ -109,8 +103,6 @@ DT_MACHINE_START(OMAP36XX_DT, "Generic OMAP36xx (Flattened Device Tree)") | |||
109 | .reserve = omap_reserve, | 103 | .reserve = omap_reserve, |
110 | .map_io = omap3_map_io, | 104 | .map_io = omap3_map_io, |
111 | .init_early = omap3630_init_early, | 105 | .init_early = omap3630_init_early, |
112 | .init_irq = omap_intc_of_init, | ||
113 | .handle_irq = omap3_intc_handle_irq, | ||
114 | .init_machine = omap_generic_init, | 106 | .init_machine = omap_generic_init, |
115 | .init_late = omap3_init_late, | 107 | .init_late = omap3_init_late, |
116 | .init_time = omap3_sync32k_timer_init, | 108 | .init_time = omap3_sync32k_timer_init, |
@@ -118,7 +110,7 @@ DT_MACHINE_START(OMAP36XX_DT, "Generic OMAP36xx (Flattened Device Tree)") | |||
118 | .restart = omap3xxx_restart, | 110 | .restart = omap3xxx_restart, |
119 | MACHINE_END | 111 | MACHINE_END |
120 | 112 | ||
121 | static const char *omap3_gp_boards_compat[] __initconst = { | 113 | static const char *const omap3_gp_boards_compat[] __initconst = { |
122 | "ti,omap3-beagle", | 114 | "ti,omap3-beagle", |
123 | "timll,omap3-devkit8000", | 115 | "timll,omap3-devkit8000", |
124 | NULL, | 116 | NULL, |
@@ -128,8 +120,6 @@ DT_MACHINE_START(OMAP3_GP_DT, "Generic OMAP3-GP (Flattened Device Tree)") | |||
128 | .reserve = omap_reserve, | 120 | .reserve = omap_reserve, |
129 | .map_io = omap3_map_io, | 121 | .map_io = omap3_map_io, |
130 | .init_early = omap3430_init_early, | 122 | .init_early = omap3430_init_early, |
131 | .init_irq = omap_intc_of_init, | ||
132 | .handle_irq = omap3_intc_handle_irq, | ||
133 | .init_machine = omap_generic_init, | 123 | .init_machine = omap_generic_init, |
134 | .init_late = omap3_init_late, | 124 | .init_late = omap3_init_late, |
135 | .init_time = omap3_secure_sync32k_timer_init, | 125 | .init_time = omap3_secure_sync32k_timer_init, |
@@ -137,7 +127,7 @@ DT_MACHINE_START(OMAP3_GP_DT, "Generic OMAP3-GP (Flattened Device Tree)") | |||
137 | .restart = omap3xxx_restart, | 127 | .restart = omap3xxx_restart, |
138 | MACHINE_END | 128 | MACHINE_END |
139 | 129 | ||
140 | static const char *am3517_boards_compat[] __initconst = { | 130 | static const char *const am3517_boards_compat[] __initconst = { |
141 | "ti,am3517", | 131 | "ti,am3517", |
142 | NULL, | 132 | NULL, |
143 | }; | 133 | }; |
@@ -146,8 +136,6 @@ DT_MACHINE_START(AM3517_DT, "Generic AM3517 (Flattened Device Tree)") | |||
146 | .reserve = omap_reserve, | 136 | .reserve = omap_reserve, |
147 | .map_io = omap3_map_io, | 137 | .map_io = omap3_map_io, |
148 | .init_early = am35xx_init_early, | 138 | .init_early = am35xx_init_early, |
149 | .init_irq = omap_intc_of_init, | ||
150 | .handle_irq = omap3_intc_handle_irq, | ||
151 | .init_machine = omap_generic_init, | 139 | .init_machine = omap_generic_init, |
152 | .init_late = omap3_init_late, | 140 | .init_late = omap3_init_late, |
153 | .init_time = omap3_gptimer_timer_init, | 141 | .init_time = omap3_gptimer_timer_init, |
@@ -157,7 +145,7 @@ MACHINE_END | |||
157 | #endif | 145 | #endif |
158 | 146 | ||
159 | #ifdef CONFIG_SOC_AM33XX | 147 | #ifdef CONFIG_SOC_AM33XX |
160 | static const char *am33xx_boards_compat[] __initconst = { | 148 | static const char *const am33xx_boards_compat[] __initconst = { |
161 | "ti,am33xx", | 149 | "ti,am33xx", |
162 | NULL, | 150 | NULL, |
163 | }; | 151 | }; |
@@ -166,8 +154,6 @@ DT_MACHINE_START(AM33XX_DT, "Generic AM33XX (Flattened Device Tree)") | |||
166 | .reserve = omap_reserve, | 154 | .reserve = omap_reserve, |
167 | .map_io = am33xx_map_io, | 155 | .map_io = am33xx_map_io, |
168 | .init_early = am33xx_init_early, | 156 | .init_early = am33xx_init_early, |
169 | .init_irq = omap_intc_of_init, | ||
170 | .handle_irq = omap3_intc_handle_irq, | ||
171 | .init_machine = omap_generic_init, | 157 | .init_machine = omap_generic_init, |
172 | .init_late = am33xx_init_late, | 158 | .init_late = am33xx_init_late, |
173 | .init_time = omap3_gptimer_timer_init, | 159 | .init_time = omap3_gptimer_timer_init, |
@@ -177,7 +163,7 @@ MACHINE_END | |||
177 | #endif | 163 | #endif |
178 | 164 | ||
179 | #ifdef CONFIG_ARCH_OMAP4 | 165 | #ifdef CONFIG_ARCH_OMAP4 |
180 | static const char *omap4_boards_compat[] __initconst = { | 166 | static const char *const omap4_boards_compat[] __initconst = { |
181 | "ti,omap4460", | 167 | "ti,omap4460", |
182 | "ti,omap4430", | 168 | "ti,omap4430", |
183 | "ti,omap4", | 169 | "ti,omap4", |
@@ -199,7 +185,7 @@ MACHINE_END | |||
199 | #endif | 185 | #endif |
200 | 186 | ||
201 | #ifdef CONFIG_SOC_OMAP5 | 187 | #ifdef CONFIG_SOC_OMAP5 |
202 | static const char *omap5_boards_compat[] __initconst = { | 188 | static const char *const omap5_boards_compat[] __initconst = { |
203 | "ti,omap5432", | 189 | "ti,omap5432", |
204 | "ti,omap5430", | 190 | "ti,omap5430", |
205 | "ti,omap5", | 191 | "ti,omap5", |
@@ -221,7 +207,7 @@ MACHINE_END | |||
221 | #endif | 207 | #endif |
222 | 208 | ||
223 | #ifdef CONFIG_SOC_AM43XX | 209 | #ifdef CONFIG_SOC_AM43XX |
224 | static const char *am43_boards_compat[] __initconst = { | 210 | static const char *const am43_boards_compat[] __initconst = { |
225 | "ti,am4372", | 211 | "ti,am4372", |
226 | "ti,am43", | 212 | "ti,am43", |
227 | NULL, | 213 | NULL, |
@@ -240,7 +226,9 @@ MACHINE_END | |||
240 | #endif | 226 | #endif |
241 | 227 | ||
242 | #ifdef CONFIG_SOC_DRA7XX | 228 | #ifdef CONFIG_SOC_DRA7XX |
243 | static const char *dra74x_boards_compat[] __initconst = { | 229 | static const char *const dra74x_boards_compat[] __initconst = { |
230 | "ti,am5728", | ||
231 | "ti,am5726", | ||
244 | "ti,dra742", | 232 | "ti,dra742", |
245 | "ti,dra7", | 233 | "ti,dra7", |
246 | NULL, | 234 | NULL, |
@@ -259,7 +247,9 @@ DT_MACHINE_START(DRA74X_DT, "Generic DRA74X (Flattened Device Tree)") | |||
259 | .restart = omap44xx_restart, | 247 | .restart = omap44xx_restart, |
260 | MACHINE_END | 248 | MACHINE_END |
261 | 249 | ||
262 | static const char *dra72x_boards_compat[] __initconst = { | 250 | static const char *const dra72x_boards_compat[] __initconst = { |
251 | "ti,am5718", | ||
252 | "ti,am5716", | ||
263 | "ti,dra722", | 253 | "ti,dra722", |
264 | NULL, | 254 | NULL, |
265 | }; | 255 | }; |