xref: /linux/arch/arm/mach-imx/mach-imx53.c (revision a1c613ae4c322ddd58d5a8539dbfba2a0380a8c0)
1*fcaf2036SThomas Gleixner // SPDX-License-Identifier: GPL-2.0-or-later
2442279daSShawn Guo /*
3442279daSShawn Guo  * Copyright 2011 Freescale Semiconductor, Inc. All Rights Reserved.
4442279daSShawn Guo  * Copyright 2011 Linaro Ltd.
5442279daSShawn Guo  */
6442279daSShawn Guo 
7442279daSShawn Guo #include <asm/mach/arch.h>
8442279daSShawn Guo 
9e3372474SShawn Guo #include "common.h"
1018cb680fSShawn Guo #include "hardware.h"
11e3372474SShawn Guo 
imx53_init_early(void)12ff4ab231SShawn Guo static void __init imx53_init_early(void)
13ff4ab231SShawn Guo {
14ff4ab231SShawn Guo 	mxc_set_cpu_type(MXC_CPU_MX53);
15ff4ab231SShawn Guo }
16ff4ab231SShawn Guo 
imx53_dt_init(void)17442279daSShawn Guo static void __init imx53_dt_init(void)
18442279daSShawn Guo {
19ff4ab231SShawn Guo 	imx_src_init();
2026b754f9SFabio Estevam 	imx5_pmu_init();
216befda9aSSteffen Trumtrar 	imx_aips_allow_unprivileged_access("fsl,imx53-aipstz");
22442279daSShawn Guo }
23442279daSShawn Guo 
imx53_init_late(void)24ff4ab231SShawn Guo static void __init imx53_init_late(void)
25ff4ab231SShawn Guo {
26ff4ab231SShawn Guo 	imx53_pm_init();
27ff4ab231SShawn Guo }
28ff4ab231SShawn Guo 
298756dd92SShawn Guo static const char * const imx53_dt_board_compat[] __initconst = {
30442279daSShawn Guo 	"fsl,imx53",
31442279daSShawn Guo 	NULL
32442279daSShawn Guo };
33442279daSShawn Guo 
34442279daSShawn Guo DT_MACHINE_START(IMX53_DT, "Freescale i.MX53 (Device Tree Support)")
35442279daSShawn Guo 	.init_early	= imx53_init_early,
36442279daSShawn Guo 	.init_machine	= imx53_dt_init,
37442279daSShawn Guo 	.init_late	= imx53_init_late,
38442279daSShawn Guo 	.dt_compat	= imx53_dt_board_compat,
39442279daSShawn Guo MACHINE_END
40