xref: /linux/arch/arm/mach-imx/mach-imx25.c (revision 34dc1baba215b826e454b8d19e4f24adbeb7d00d)
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * Copyright 2012 Sascha Hauer, Pengutronix
4  */
5 
6 #include <asm/mach/arch.h>
7 #include "common.h"
8 #include "hardware.h"
9 
10 static void __init imx25_init_early(void)
11 {
12 	mxc_set_cpu_type(MXC_CPU_MX25);
13 }
14 
15 static void __init imx25_dt_init(void)
16 {
17 	imx_aips_allow_unprivileged_access("fsl,imx25-aips");
18 }
19 
20 static const char * const imx25_dt_board_compat[] __initconst = {
21 	"fsl,imx25",
22 	NULL
23 };
24 
25 DT_MACHINE_START(IMX25_DT, "Freescale i.MX25 (Device Tree Support)")
26 	.init_early	= imx25_init_early,
27 	.init_machine	= imx25_dt_init,
28 	.init_late      = imx25_pm_init,
29 	.dt_compat	= imx25_dt_board_compat,
30 MACHINE_END
31