xref: /linux/arch/arm/mach-omap2/board-generic.c (revision e428e250fde683ad3a658f8476f0914714e7eb6f)
1d2912cb1SThomas Gleixner // SPDX-License-Identifier: GPL-2.0-only
21dbae815STony Lindgren /*
31dbae815STony Lindgren  * Copyright (C) 2005 Nokia Corporation
41dbae815STony Lindgren  * Author: Paul Mundt <paul.mundt@nokia.com>
51dbae815STony Lindgren  *
68d61649dSBenoit Cousson  * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
71dbae815STony Lindgren  *
88d61649dSBenoit Cousson  * Modified from the original mach-omap/omap2/board-generic.c did by Paul
98d61649dSBenoit Cousson  * to support the OMAP2+ device tree boards with an unique board file.
101dbae815STony Lindgren  */
118d61649dSBenoit Cousson #include <linux/io.h>
12fbf75da7SBenoit Cousson #include <linux/of_irq.h>
138d61649dSBenoit Cousson #include <linux/of_platform.h>
148d61649dSBenoit Cousson #include <linux/irqdomain.h>
15e69b4e1aSTony Lindgren #include <linux/clocksource.h>
161dbae815STony Lindgren 
178c51b034SIvaylo Dimitrov #include <asm/setup.h>
181dbae815STony Lindgren #include <asm/mach/arch.h>
195f35dc47SIvaylo Dimitrov #include <asm/system_info.h>
201dbae815STony Lindgren 
214e65331cSTony Lindgren #include "common.h"
221dbae815STony Lindgren 
2331957609SUwe Kleine-König static const struct of_device_id omap_dt_match_table[] __initconst = {
248d61649dSBenoit Cousson 	{ .compatible = "simple-bus", },
258d61649dSBenoit Cousson 	{ .compatible = "ti,omap-infra", },
268d61649dSBenoit Cousson 	{ }
27b3c6df3aSPaul Walmsley };
28b3c6df3aSPaul Walmsley 
29293ea3d0SArnd Bergmann static void __init __maybe_unused omap_generic_init(void)
301dbae815STony Lindgren {
318651bd8cSTony Lindgren 	pdata_quirks_init(omap_dt_match_table);
3207e72f9aSLaurent Pinchart 	omap_soc_device_init();
331dbae815STony Lindgren }
341dbae815STony Lindgren 
35e69b4e1aSTony Lindgren /* Clocks are needed early, see drivers/clocksource for the rest */
36e69b4e1aSTony Lindgren void __init __maybe_unused omap_init_time_of(void)
37e69b4e1aSTony Lindgren {
38e69b4e1aSTony Lindgren 	omap_clk_init();
39e69b4e1aSTony Lindgren 	timer_probe();
40e69b4e1aSTony Lindgren }
41e69b4e1aSTony Lindgren 
420e02a8c1SBenoit Cousson #ifdef CONFIG_SOC_OMAP2420
4358cda01eSUwe Kleine-König static const char *const omap242x_boards_compat[] __initconst = {
448d61649dSBenoit Cousson 	"ti,omap2420",
458d61649dSBenoit Cousson 	NULL,
468d61649dSBenoit Cousson };
471dbae815STony Lindgren 
488d61649dSBenoit Cousson DT_MACHINE_START(OMAP242X_DT, "Generic OMAP2420 (Flattened Device Tree)")
4971ee7dadSRussell King 	.reserve	= omap_reserve,
508d61649dSBenoit Cousson 	.map_io		= omap242x_map_io,
518d61649dSBenoit Cousson 	.init_early	= omap2420_init_early,
521dbae815STony Lindgren 	.init_machine	= omap_generic_init,
536f82e25dSFelipe Balbi 	.init_time	= omap_init_time,
548d61649dSBenoit Cousson 	.dt_compat	= omap242x_boards_compat,
55187e3e06SPaul Walmsley 	.restart	= omap2xxx_restart,
561dbae815STony Lindgren MACHINE_END
578d61649dSBenoit Cousson #endif
588d61649dSBenoit Cousson 
590e02a8c1SBenoit Cousson #ifdef CONFIG_SOC_OMAP2430
6058cda01eSUwe Kleine-König static const char *const omap243x_boards_compat[] __initconst = {
618d61649dSBenoit Cousson 	"ti,omap2430",
628d61649dSBenoit Cousson 	NULL,
638d61649dSBenoit Cousson };
648d61649dSBenoit Cousson 
658d61649dSBenoit Cousson DT_MACHINE_START(OMAP243X_DT, "Generic OMAP2430 (Flattened Device Tree)")
668d61649dSBenoit Cousson 	.reserve	= omap_reserve,
678d61649dSBenoit Cousson 	.map_io		= omap243x_map_io,
688d61649dSBenoit Cousson 	.init_early	= omap2430_init_early,
698d61649dSBenoit Cousson 	.init_machine	= omap_generic_init,
706f82e25dSFelipe Balbi 	.init_time	= omap_init_time,
718d61649dSBenoit Cousson 	.dt_compat	= omap243x_boards_compat,
72187e3e06SPaul Walmsley 	.restart	= omap2xxx_restart,
738d61649dSBenoit Cousson MACHINE_END
748d61649dSBenoit Cousson #endif
758d61649dSBenoit Cousson 
760e02a8c1SBenoit Cousson #ifdef CONFIG_ARCH_OMAP3
7771c4f602STony Lindgren /* Some boards need board name for legacy userspace in /proc/cpuinfo */
7871c4f602STony Lindgren static const char *const n900_boards_compat[] __initconst = {
7971c4f602STony Lindgren 	"nokia,omap3-n900",
8071c4f602STony Lindgren 	NULL,
8171c4f602STony Lindgren };
8271c4f602STony Lindgren 
835f35dc47SIvaylo Dimitrov /* Set system_rev from atags */
845f35dc47SIvaylo Dimitrov static void __init rx51_set_system_rev(const struct tag *tags)
855f35dc47SIvaylo Dimitrov {
865f35dc47SIvaylo Dimitrov 	const struct tag *tag;
875f35dc47SIvaylo Dimitrov 
885f35dc47SIvaylo Dimitrov 	if (tags->hdr.tag != ATAG_CORE)
895f35dc47SIvaylo Dimitrov 		return;
905f35dc47SIvaylo Dimitrov 
915f35dc47SIvaylo Dimitrov 	for_each_tag(tag, tags) {
925f35dc47SIvaylo Dimitrov 		if (tag->hdr.tag == ATAG_REVISION) {
935f35dc47SIvaylo Dimitrov 			system_rev = tag->u.revision.rev;
945f35dc47SIvaylo Dimitrov 			break;
955f35dc47SIvaylo Dimitrov 		}
965f35dc47SIvaylo Dimitrov 	}
975f35dc47SIvaylo Dimitrov }
985f35dc47SIvaylo Dimitrov 
998c51b034SIvaylo Dimitrov /* Legacy userspace on Nokia N900 needs ATAGS exported in /proc/atags,
1008c51b034SIvaylo Dimitrov  * save them while the data is still not overwritten
1018c51b034SIvaylo Dimitrov  */
1028c51b034SIvaylo Dimitrov static void __init rx51_reserve(void)
1038c51b034SIvaylo Dimitrov {
1045f35dc47SIvaylo Dimitrov 	const struct tag *tags = (const struct tag *)(PAGE_OFFSET + 0x100);
1055f35dc47SIvaylo Dimitrov 
1065f35dc47SIvaylo Dimitrov 	save_atags(tags);
1075f35dc47SIvaylo Dimitrov 	rx51_set_system_rev(tags);
1088c51b034SIvaylo Dimitrov 	omap_reserve();
1098c51b034SIvaylo Dimitrov }
1108c51b034SIvaylo Dimitrov 
11171c4f602STony Lindgren DT_MACHINE_START(OMAP3_N900_DT, "Nokia RX-51 board")
1128c51b034SIvaylo Dimitrov 	.reserve	= rx51_reserve,
11371c4f602STony Lindgren 	.map_io		= omap3_map_io,
11471c4f602STony Lindgren 	.init_early	= omap3430_init_early,
11571c4f602STony Lindgren 	.init_machine	= omap_generic_init,
11671c4f602STony Lindgren 	.init_late	= omap3_init_late,
117*e428e250STony Lindgren 	.init_time	= omap_init_time_of,
11871c4f602STony Lindgren 	.dt_compat	= n900_boards_compat,
11971c4f602STony Lindgren 	.restart	= omap3xxx_restart,
12071c4f602STony Lindgren MACHINE_END
12171c4f602STony Lindgren 
12271c4f602STony Lindgren /* Generic omap3 boards, most boards can use these */
12358cda01eSUwe Kleine-König static const char *const omap3_boards_compat[] __initconst = {
124b83a08feSNishanth Menon 	"ti,omap3430",
1258d61649dSBenoit Cousson 	"ti,omap3",
1268d61649dSBenoit Cousson 	NULL,
1278d61649dSBenoit Cousson };
1288d61649dSBenoit Cousson 
1298d61649dSBenoit Cousson DT_MACHINE_START(OMAP3_DT, "Generic OMAP3 (Flattened Device Tree)")
1308d61649dSBenoit Cousson 	.reserve	= omap_reserve,
1318d61649dSBenoit Cousson 	.map_io		= omap3_map_io,
1328d61649dSBenoit Cousson 	.init_early	= omap3430_init_early,
13393651b85SBenoit Cousson 	.init_machine	= omap_generic_init,
134990fa4f5SRajendra Nayak 	.init_late	= omap3_init_late,
135*e428e250STony Lindgren 	.init_time	= omap_init_time_of,
1368d61649dSBenoit Cousson 	.dt_compat	= omap3_boards_compat,
137187e3e06SPaul Walmsley 	.restart	= omap3xxx_restart,
1388d61649dSBenoit Cousson MACHINE_END
1397dd9d502SJon Hunter 
14058cda01eSUwe Kleine-König static const char *const omap36xx_boards_compat[] __initconst = {
14157df5380STony Lindgren 	"ti,omap3630",
142016c12d2SNishanth Menon 	"ti,omap36xx",
143016c12d2SNishanth Menon 	NULL,
144016c12d2SNishanth Menon };
145016c12d2SNishanth Menon 
146016c12d2SNishanth Menon DT_MACHINE_START(OMAP36XX_DT, "Generic OMAP36xx (Flattened Device Tree)")
147016c12d2SNishanth Menon 	.reserve	= omap_reserve,
148016c12d2SNishanth Menon 	.map_io		= omap3_map_io,
149016c12d2SNishanth Menon 	.init_early	= omap3630_init_early,
150016c12d2SNishanth Menon 	.init_machine	= omap_generic_init,
151016c12d2SNishanth Menon 	.init_late	= omap3_init_late,
152*e428e250STony Lindgren 	.init_time	= omap_init_time_of,
153016c12d2SNishanth Menon 	.dt_compat	= omap36xx_boards_compat,
154016c12d2SNishanth Menon 	.restart	= omap3xxx_restart,
155016c12d2SNishanth Menon MACHINE_END
156016c12d2SNishanth Menon 
15758cda01eSUwe Kleine-König static const char *const omap3_gp_boards_compat[] __initconst = {
1587dd9d502SJon Hunter 	"ti,omap3-beagle",
1594bfe6341SAnil Kumar 	"timll,omap3-devkit8000",
1607dd9d502SJon Hunter 	NULL,
1617dd9d502SJon Hunter };
1627dd9d502SJon Hunter 
1637dd9d502SJon Hunter DT_MACHINE_START(OMAP3_GP_DT, "Generic OMAP3-GP (Flattened Device Tree)")
1647dd9d502SJon Hunter 	.reserve	= omap_reserve,
1657dd9d502SJon Hunter 	.map_io		= omap3_map_io,
1667dd9d502SJon Hunter 	.init_early	= omap3430_init_early,
1677dd9d502SJon Hunter 	.init_machine	= omap_generic_init,
168990fa4f5SRajendra Nayak 	.init_late	= omap3_init_late,
169*e428e250STony Lindgren 	.init_time	= omap_init_time_of,
1707dd9d502SJon Hunter 	.dt_compat	= omap3_gp_boards_compat,
171d01e4afdSLinus Torvalds 	.restart	= omap3xxx_restart,
1728d61649dSBenoit Cousson MACHINE_END
173caef4ee8SNishanth Menon 
17458cda01eSUwe Kleine-König static const char *const am3517_boards_compat[] __initconst = {
175caef4ee8SNishanth Menon 	"ti,am3517",
176caef4ee8SNishanth Menon 	NULL,
177caef4ee8SNishanth Menon };
178caef4ee8SNishanth Menon 
179caef4ee8SNishanth Menon DT_MACHINE_START(AM3517_DT, "Generic AM3517 (Flattened Device Tree)")
180caef4ee8SNishanth Menon 	.reserve	= omap_reserve,
181caef4ee8SNishanth Menon 	.map_io		= omap3_map_io,
182caef4ee8SNishanth Menon 	.init_early	= am35xx_init_early,
183caef4ee8SNishanth Menon 	.init_machine	= omap_generic_init,
184caef4ee8SNishanth Menon 	.init_late	= omap3_init_late,
185*e428e250STony Lindgren 	.init_time	= omap_init_time_of,
186caef4ee8SNishanth Menon 	.dt_compat	= am3517_boards_compat,
187caef4ee8SNishanth Menon 	.restart	= omap3xxx_restart,
188caef4ee8SNishanth Menon MACHINE_END
1898d61649dSBenoit Cousson #endif
1908d61649dSBenoit Cousson 
191abf8cc1dSTony Lindgren #ifdef CONFIG_SOC_TI81XX
192abf8cc1dSTony Lindgren static const char *const ti814x_boards_compat[] __initconst = {
193abf8cc1dSTony Lindgren 	"ti,dm8148",
194abf8cc1dSTony Lindgren 	"ti,dm814",
195abf8cc1dSTony Lindgren 	NULL,
196abf8cc1dSTony Lindgren };
197abf8cc1dSTony Lindgren 
1989fd274c0STony Lindgren DT_MACHINE_START(TI814X_DT, "Generic ti814x (Flattened Device Tree)")
199abf8cc1dSTony Lindgren 	.reserve	= omap_reserve,
200abf8cc1dSTony Lindgren 	.map_io		= ti81xx_map_io,
201abf8cc1dSTony Lindgren 	.init_early	= ti814x_init_early,
202abf8cc1dSTony Lindgren 	.init_machine	= omap_generic_init,
203abf8cc1dSTony Lindgren 	.init_late	= ti81xx_init_late,
204abf8cc1dSTony Lindgren 	.init_time	= omap3_gptimer_timer_init,
205abf8cc1dSTony Lindgren 	.dt_compat	= ti814x_boards_compat,
206abf8cc1dSTony Lindgren 	.restart	= ti81xx_restart,
207abf8cc1dSTony Lindgren MACHINE_END
208abf8cc1dSTony Lindgren 
209abf8cc1dSTony Lindgren static const char *const ti816x_boards_compat[] __initconst = {
210abf8cc1dSTony Lindgren 	"ti,dm8168",
211abf8cc1dSTony Lindgren 	"ti,dm816",
212abf8cc1dSTony Lindgren 	NULL,
213abf8cc1dSTony Lindgren };
214abf8cc1dSTony Lindgren 
215abf8cc1dSTony Lindgren DT_MACHINE_START(TI816X_DT, "Generic ti816x (Flattened Device Tree)")
216abf8cc1dSTony Lindgren 	.reserve	= omap_reserve,
217abf8cc1dSTony Lindgren 	.map_io		= ti81xx_map_io,
218abf8cc1dSTony Lindgren 	.init_early	= ti816x_init_early,
219abf8cc1dSTony Lindgren 	.init_machine	= omap_generic_init,
220abf8cc1dSTony Lindgren 	.init_late	= ti81xx_init_late,
221abf8cc1dSTony Lindgren 	.init_time	= omap3_gptimer_timer_init,
222abf8cc1dSTony Lindgren 	.dt_compat	= ti816x_boards_compat,
223abf8cc1dSTony Lindgren 	.restart	= ti81xx_restart,
224abf8cc1dSTony Lindgren MACHINE_END
225abf8cc1dSTony Lindgren #endif
226abf8cc1dSTony Lindgren 
22708f30989SAfzal Mohammed #ifdef CONFIG_SOC_AM33XX
22858cda01eSUwe Kleine-König static const char *const am33xx_boards_compat[] __initconst = {
22908f30989SAfzal Mohammed 	"ti,am33xx",
23008f30989SAfzal Mohammed 	NULL,
23108f30989SAfzal Mohammed };
23208f30989SAfzal Mohammed 
23308f30989SAfzal Mohammed DT_MACHINE_START(AM33XX_DT, "Generic AM33XX (Flattened Device Tree)")
23408f30989SAfzal Mohammed 	.reserve	= omap_reserve,
23508f30989SAfzal Mohammed 	.map_io		= am33xx_map_io,
23608f30989SAfzal Mohammed 	.init_early	= am33xx_init_early,
23708f30989SAfzal Mohammed 	.init_machine	= omap_generic_init,
238765e7a06SNishanth Menon 	.init_late	= am33xx_init_late,
239e20ef23dSTony Lindgren 	.init_time	= omap_init_time_of,
24008f30989SAfzal Mohammed 	.dt_compat	= am33xx_boards_compat,
24114e067c1SJean-Sebastien A. Beaudry 	.restart	= am33xx_restart,
24208f30989SAfzal Mohammed MACHINE_END
24308f30989SAfzal Mohammed #endif
24408f30989SAfzal Mohammed 
2450e02a8c1SBenoit Cousson #ifdef CONFIG_ARCH_OMAP4
24658cda01eSUwe Kleine-König static const char *const omap4_boards_compat[] __initconst = {
247b83a08feSNishanth Menon 	"ti,omap4460",
248b83a08feSNishanth Menon 	"ti,omap4430",
2498d61649dSBenoit Cousson 	"ti,omap4",
2508d61649dSBenoit Cousson 	NULL,
2518d61649dSBenoit Cousson };
2528d61649dSBenoit Cousson 
2538d61649dSBenoit Cousson DT_MACHINE_START(OMAP4_DT, "Generic OMAP4 (Flattened Device Tree)")
254944e9df1SMarek Szyprowski 	.l2c_aux_val	= OMAP_L2C_AUX_CTRL,
255944e9df1SMarek Szyprowski 	.l2c_aux_mask	= 0xcf9fffff,
256944e9df1SMarek Szyprowski 	.l2c_write_sec	= omap4_l2c310_write_sec,
2578d61649dSBenoit Cousson 	.reserve	= omap_reserve,
25806915321SMarc Zyngier 	.smp		= smp_ops(omap4_smp_ops),
2598d61649dSBenoit Cousson 	.map_io		= omap4_map_io,
2608d61649dSBenoit Cousson 	.init_early	= omap4430_init_early,
261c4082d49SR Sricharan 	.init_irq	= omap_gic_of_init,
26293651b85SBenoit Cousson 	.init_machine	= omap_generic_init,
263bbd707acSShawn Guo 	.init_late	= omap4430_init_late,
26414b1925aSTony Lindgren 	.init_time	= omap_init_time_of,
2658d61649dSBenoit Cousson 	.dt_compat	= omap4_boards_compat,
266187e3e06SPaul Walmsley 	.restart	= omap44xx_restart,
2678d61649dSBenoit Cousson MACHINE_END
2688d61649dSBenoit Cousson #endif
2690c1b6facSR Sricharan 
2700c1b6facSR Sricharan #ifdef CONFIG_SOC_OMAP5
27158cda01eSUwe Kleine-König static const char *const omap5_boards_compat[] __initconst = {
272b83a08feSNishanth Menon 	"ti,omap5432",
273b83a08feSNishanth Menon 	"ti,omap5430",
2740c1b6facSR Sricharan 	"ti,omap5",
2750c1b6facSR Sricharan 	NULL,
2760c1b6facSR Sricharan };
2770c1b6facSR Sricharan 
2780c1b6facSR Sricharan DT_MACHINE_START(OMAP5_DT, "Generic OMAP5 (Flattened Device Tree)")
2796a3b764bSTony Lindgren #if defined(CONFIG_ZONE_DMA) && defined(CONFIG_ARM_LPAE)
2806a3b764bSTony Lindgren 	.dma_zone_size	= SZ_2G,
2816a3b764bSTony Lindgren #endif
2820c1b6facSR Sricharan 	.reserve	= omap_reserve,
28306915321SMarc Zyngier 	.smp		= smp_ops(omap4_smp_ops),
2840c1b6facSR Sricharan 	.map_io		= omap5_map_io,
2850c1b6facSR Sricharan 	.init_early	= omap5_init_early,
2860c1b6facSR Sricharan 	.init_irq	= omap_gic_of_init,
2870c1b6facSR Sricharan 	.init_machine	= omap_generic_init,
288765e7a06SNishanth Menon 	.init_late	= omap5_init_late,
2896bb27d73SStephen Warren 	.init_time	= omap5_realtime_timer_init,
2900c1b6facSR Sricharan 	.dt_compat	= omap5_boards_compat,
291187e3e06SPaul Walmsley 	.restart	= omap44xx_restart,
2920c1b6facSR Sricharan MACHINE_END
2930c1b6facSR Sricharan #endif
294bb256f80SAfzal Mohammed 
295bb256f80SAfzal Mohammed #ifdef CONFIG_SOC_AM43XX
29658cda01eSUwe Kleine-König static const char *const am43_boards_compat[] __initconst = {
297b83a08feSNishanth Menon 	"ti,am4372",
298bb256f80SAfzal Mohammed 	"ti,am43",
299bb256f80SAfzal Mohammed 	NULL,
300bb256f80SAfzal Mohammed };
301bb256f80SAfzal Mohammed 
302bb256f80SAfzal Mohammed DT_MACHINE_START(AM43_DT, "Generic AM43 (Flattened Device Tree)")
303944e9df1SMarek Szyprowski 	.l2c_aux_val	= OMAP_L2C_AUX_CTRL,
304944e9df1SMarek Szyprowski 	.l2c_aux_mask	= 0xcf9fffff,
305944e9df1SMarek Szyprowski 	.l2c_write_sec	= omap4_l2c310_write_sec,
306bb256f80SAfzal Mohammed 	.map_io		= am33xx_map_io,
307bb256f80SAfzal Mohammed 	.init_early	= am43xx_init_early,
308765e7a06SNishanth Menon 	.init_late	= am43xx_init_late,
309bb256f80SAfzal Mohammed 	.init_irq	= omap_gic_of_init,
310bb256f80SAfzal Mohammed 	.init_machine	= omap_generic_init,
311545a9558STony Lindgren 	.init_time	= omap_init_time_of,
312bb256f80SAfzal Mohammed 	.dt_compat	= am43_boards_compat,
313a7daf64aSLokesh Vutla 	.restart	= omap44xx_restart,
314bb256f80SAfzal Mohammed MACHINE_END
315bb256f80SAfzal Mohammed #endif
316439bf39eSR Sricharan 
317439bf39eSR Sricharan #ifdef CONFIG_SOC_DRA7XX
31858cda01eSUwe Kleine-König static const char *const dra74x_boards_compat[] __initconst = {
3194dc6760dSLokesh Vutla 	"ti,dra762",
3200e0cb99dSNishanth Menon 	"ti,am5728",
3210e0cb99dSNishanth Menon 	"ti,am5726",
32244e97ff6SRajendra Nayak 	"ti,dra742",
323439bf39eSR Sricharan 	"ti,dra7",
324439bf39eSR Sricharan 	NULL,
325439bf39eSR Sricharan };
326439bf39eSR Sricharan 
32744e97ff6SRajendra Nayak DT_MACHINE_START(DRA74X_DT, "Generic DRA74X (Flattened Device Tree)")
3286a3b764bSTony Lindgren #if defined(CONFIG_ZONE_DMA) && defined(CONFIG_ARM_LPAE)
3296a3b764bSTony Lindgren 	.dma_zone_size	= SZ_2G,
3306a3b764bSTony Lindgren #endif
331439bf39eSR Sricharan 	.reserve	= omap_reserve,
332439bf39eSR Sricharan 	.smp		= smp_ops(omap4_smp_ops),
333ea827ad5SNishanth Menon 	.map_io		= dra7xx_map_io,
334439bf39eSR Sricharan 	.init_early	= dra7xx_init_early,
335765e7a06SNishanth Menon 	.init_late	= dra7xx_init_late,
336439bf39eSR Sricharan 	.init_irq	= omap_gic_of_init,
337439bf39eSR Sricharan 	.init_machine	= omap_generic_init,
338439bf39eSR Sricharan 	.init_time	= omap5_realtime_timer_init,
33944e97ff6SRajendra Nayak 	.dt_compat	= dra74x_boards_compat,
34044e97ff6SRajendra Nayak 	.restart	= omap44xx_restart,
34144e97ff6SRajendra Nayak MACHINE_END
34244e97ff6SRajendra Nayak 
34358cda01eSUwe Kleine-König static const char *const dra72x_boards_compat[] __initconst = {
3440e0cb99dSNishanth Menon 	"ti,am5718",
3450e0cb99dSNishanth Menon 	"ti,am5716",
34644e97ff6SRajendra Nayak 	"ti,dra722",
347a2af765aSLokesh Vutla 	"ti,dra718",
34844e97ff6SRajendra Nayak 	NULL,
34944e97ff6SRajendra Nayak };
35044e97ff6SRajendra Nayak 
35144e97ff6SRajendra Nayak DT_MACHINE_START(DRA72X_DT, "Generic DRA72X (Flattened Device Tree)")
3526a3b764bSTony Lindgren #if defined(CONFIG_ZONE_DMA) && defined(CONFIG_ARM_LPAE)
3536a3b764bSTony Lindgren 	.dma_zone_size	= SZ_2G,
3546a3b764bSTony Lindgren #endif
35544e97ff6SRajendra Nayak 	.reserve	= omap_reserve,
356ea827ad5SNishanth Menon 	.map_io		= dra7xx_map_io,
35744e97ff6SRajendra Nayak 	.init_early	= dra7xx_init_early,
35844e97ff6SRajendra Nayak 	.init_late	= dra7xx_init_late,
35944e97ff6SRajendra Nayak 	.init_irq	= omap_gic_of_init,
36044e97ff6SRajendra Nayak 	.init_machine	= omap_generic_init,
36144e97ff6SRajendra Nayak 	.init_time	= omap5_realtime_timer_init,
36244e97ff6SRajendra Nayak 	.dt_compat	= dra72x_boards_compat,
3631d597b07SRajendra Nayak 	.restart	= omap44xx_restart,
364439bf39eSR Sricharan MACHINE_END
365439bf39eSR Sricharan #endif
366