xref: /openbmc/linux/arch/arm/mach-imx/mach-imx1.c (revision 66ba9c05)
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  *  Copyright (C) 2014 Alexander Shiyan <shc_work@mail.ru>
4  */
5 
6 #include <asm/mach/arch.h>
7 
8 #include "common.h"
9 #include "hardware.h"
10 
imx1_init_early(void)11 static void __init imx1_init_early(void)
12 {
13 	mxc_set_cpu_type(MXC_CPU_MX1);
14 }
15 
16 static const char * const imx1_dt_board_compat[] __initconst = {
17 	"fsl,imx1",
18 	NULL
19 };
20 
21 DT_MACHINE_START(IMX1_DT, "Freescale i.MX1 (Device Tree Support)")
22 	.init_early	= imx1_init_early,
23 	.dt_compat	= imx1_dt_board_compat,
24 	.restart	= mxc_restart,
25 MACHINE_END
26