1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * Copyright 2011 Freescale Semiconductor, Inc. All Rights Reserved.
4  * Copyright 2011 Linaro Ltd.
5  */
6 
7 #include <asm/mach/arch.h>
8 
9 #include "common.h"
10 #include "hardware.h"
11 
imx53_init_early(void)12 static void __init imx53_init_early(void)
13 {
14 	mxc_set_cpu_type(MXC_CPU_MX53);
15 }
16 
imx53_dt_init(void)17 static void __init imx53_dt_init(void)
18 {
19 	imx_src_init();
20 	imx5_pmu_init();
21 	imx_aips_allow_unprivileged_access("fsl,imx53-aipstz");
22 }
23 
imx53_init_late(void)24 static void __init imx53_init_late(void)
25 {
26 	imx53_pm_init();
27 }
28 
29 static const char * const imx53_dt_board_compat[] __initconst = {
30 	"fsl,imx53",
31 	NULL
32 };
33 
34 DT_MACHINE_START(IMX53_DT, "Freescale i.MX53 (Device Tree Support)")
35 	.init_early	= imx53_init_early,
36 	.init_machine	= imx53_dt_init,
37 	.init_late	= imx53_init_late,
38 	.dt_compat	= imx53_dt_board_compat,
39 MACHINE_END
40