aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/board-generic.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/board-generic.c')
-rw-r--r--arch/arm/mach-omap2/board-generic.c37
1 files changed, 32 insertions, 5 deletions
diff --git a/arch/arm/mach-omap2/board-generic.c b/arch/arm/mach-omap2/board-generic.c
index 601ecdfb1cf9..53cb380b7877 100644
--- a/arch/arm/mach-omap2/board-generic.c
+++ b/arch/arm/mach-omap2/board-generic.c
@@ -21,6 +21,7 @@
21 21
22#include "common.h" 22#include "common.h"
23#include "common-board-devices.h" 23#include "common-board-devices.h"
24#include "dss-common.h"
24 25
25#if !(defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3)) 26#if !(defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3))
26#define intc_of_init NULL 27#define intc_of_init NULL
@@ -40,6 +41,15 @@ static void __init omap_generic_init(void)
40 omap_sdrc_init(NULL, NULL); 41 omap_sdrc_init(NULL, NULL);
41 42
42 of_platform_populate(NULL, omap_dt_match_table, NULL, NULL); 43 of_platform_populate(NULL, omap_dt_match_table, NULL, NULL);
44
45 /*
46 * HACK: call display setup code for selected boards to enable omapdss.
47 * This will be removed when omapdss supports DT.
48 */
49 if (of_machine_is_compatible("ti,omap4-panda"))
50 omap4_panda_display_init_of();
51 else if (of_machine_is_compatible("ti,omap4-sdp"))
52 omap_4430sdp_display_init_of();
43} 53}
44 54
45#ifdef CONFIG_SOC_OMAP2420 55#ifdef CONFIG_SOC_OMAP2420
@@ -57,7 +67,7 @@ DT_MACHINE_START(OMAP242X_DT, "Generic OMAP2420 (Flattened Device Tree)")
57 .init_machine = omap_generic_init, 67 .init_machine = omap_generic_init,
58 .timer = &omap2_timer, 68 .timer = &omap2_timer,
59 .dt_compat = omap242x_boards_compat, 69 .dt_compat = omap242x_boards_compat,
60 .restart = omap_prcm_restart, 70 .restart = omap2xxx_restart,
61MACHINE_END 71MACHINE_END
62#endif 72#endif
63 73
@@ -76,7 +86,7 @@ DT_MACHINE_START(OMAP243X_DT, "Generic OMAP2430 (Flattened Device Tree)")
76 .init_machine = omap_generic_init, 86 .init_machine = omap_generic_init,
77 .timer = &omap2_timer, 87 .timer = &omap2_timer,
78 .dt_compat = omap243x_boards_compat, 88 .dt_compat = omap243x_boards_compat,
79 .restart = omap_prcm_restart, 89 .restart = omap2xxx_restart,
80MACHINE_END 90MACHINE_END
81#endif 91#endif
82 92
@@ -95,7 +105,24 @@ DT_MACHINE_START(OMAP3_DT, "Generic OMAP3 (Flattened Device Tree)")
95 .init_machine = omap_generic_init, 105 .init_machine = omap_generic_init,
96 .timer = &omap3_timer, 106 .timer = &omap3_timer,
97 .dt_compat = omap3_boards_compat, 107 .dt_compat = omap3_boards_compat,
98 .restart = omap_prcm_restart, 108 .restart = omap3xxx_restart,
109MACHINE_END
110
111static const char *omap3_gp_boards_compat[] __initdata = {
112 "ti,omap3-beagle",
113 NULL,
114};
115
116DT_MACHINE_START(OMAP3_GP_DT, "Generic OMAP3-GP (Flattened Device Tree)")
117 .reserve = omap_reserve,
118 .map_io = omap3_map_io,
119 .init_early = omap3430_init_early,
120 .init_irq = omap_intc_of_init,
121 .handle_irq = omap3_intc_handle_irq,
122 .init_machine = omap_generic_init,
123 .timer = &omap3_secure_timer,
124 .dt_compat = omap3_gp_boards_compat,
125 .restart = omap3xxx_restart,
99MACHINE_END 126MACHINE_END
100#endif 127#endif
101 128
@@ -134,7 +161,7 @@ DT_MACHINE_START(OMAP4_DT, "Generic OMAP4 (Flattened Device Tree)")
134 .init_late = omap4430_init_late, 161 .init_late = omap4430_init_late,
135 .timer = &omap4_timer, 162 .timer = &omap4_timer,
136 .dt_compat = omap4_boards_compat, 163 .dt_compat = omap4_boards_compat,
137 .restart = omap_prcm_restart, 164 .restart = omap44xx_restart,
138MACHINE_END 165MACHINE_END
139#endif 166#endif
140 167
@@ -154,6 +181,6 @@ DT_MACHINE_START(OMAP5_DT, "Generic OMAP5 (Flattened Device Tree)")
154 .init_machine = omap_generic_init, 181 .init_machine = omap_generic_init,
155 .timer = &omap5_timer, 182 .timer = &omap5_timer,
156 .dt_compat = omap5_boards_compat, 183 .dt_compat = omap5_boards_compat,
157 .restart = omap_prcm_restart, 184 .restart = omap44xx_restart,
158MACHINE_END 185MACHINE_END
159#endif 186#endif