diff options
author | Tony Lindgren <tony@atomide.com> | 2015-01-26 12:26:31 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2015-01-26 12:26:31 -0500 |
commit | abf8cc1d5bc8babf9ac5410d50089f0004ec5593 (patch) | |
tree | 6b7b91178c32e350f76e77f458f80c99ac090abf /arch/arm/mach-omap2 | |
parent | 13efcb188984f69e1f97b4d9e7d3663fb782946f (diff) |
ARM: OMAP2+: Add board-generic.c entry for ti81xx
This allows booting ti81xx boards when a .dts file
is in place.
Cc: Brian Hutchinson <b.hutchman@gmail.com>
Reviewed-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/board-generic.c | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/board-generic.c b/arch/arm/mach-omap2/board-generic.c index 608079a1aba6..359fc5dcbba4 100644 --- a/arch/arm/mach-omap2/board-generic.c +++ b/arch/arm/mach-omap2/board-generic.c | |||
@@ -144,6 +144,42 @@ DT_MACHINE_START(AM3517_DT, "Generic AM3517 (Flattened Device Tree)") | |||
144 | MACHINE_END | 144 | MACHINE_END |
145 | #endif | 145 | #endif |
146 | 146 | ||
147 | #ifdef CONFIG_SOC_TI81XX | ||
148 | static const char *const ti814x_boards_compat[] __initconst = { | ||
149 | "ti,dm8148", | ||
150 | "ti,dm814", | ||
151 | NULL, | ||
152 | }; | ||
153 | |||
154 | DT_MACHINE_START(TI81XX_DT, "Generic ti814x (Flattened Device Tree)") | ||
155 | .reserve = omap_reserve, | ||
156 | .map_io = ti81xx_map_io, | ||
157 | .init_early = ti814x_init_early, | ||
158 | .init_machine = omap_generic_init, | ||
159 | .init_late = ti81xx_init_late, | ||
160 | .init_time = omap3_gptimer_timer_init, | ||
161 | .dt_compat = ti814x_boards_compat, | ||
162 | .restart = ti81xx_restart, | ||
163 | MACHINE_END | ||
164 | |||
165 | static const char *const ti816x_boards_compat[] __initconst = { | ||
166 | "ti,dm8168", | ||
167 | "ti,dm816", | ||
168 | NULL, | ||
169 | }; | ||
170 | |||
171 | DT_MACHINE_START(TI816X_DT, "Generic ti816x (Flattened Device Tree)") | ||
172 | .reserve = omap_reserve, | ||
173 | .map_io = ti81xx_map_io, | ||
174 | .init_early = ti816x_init_early, | ||
175 | .init_machine = omap_generic_init, | ||
176 | .init_late = ti81xx_init_late, | ||
177 | .init_time = omap3_gptimer_timer_init, | ||
178 | .dt_compat = ti816x_boards_compat, | ||
179 | .restart = ti81xx_restart, | ||
180 | MACHINE_END | ||
181 | #endif | ||
182 | |||
147 | #ifdef CONFIG_SOC_AM33XX | 183 | #ifdef CONFIG_SOC_AM33XX |
148 | static const char *const am33xx_boards_compat[] __initconst = { | 184 | static const char *const am33xx_boards_compat[] __initconst = { |
149 | "ti,am33xx", | 185 | "ti,am33xx", |