xref: /openbmc/linux/arch/arm/mach-imx/mach-imx50.c (revision 2326f3cd)
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * Copyright 2013 Greg Ungerer <gerg@uclinux.org>
4  * Copyright 2011 Freescale Semiconductor, Inc. All Rights Reserved.
5  * Copyright 2011 Linaro Ltd.
6  */
7 
8 #include <linux/of_platform.h>
9 #include <asm/mach/arch.h>
10 
11 #include "common.h"
12 #include "hardware.h"
13 
14 static void __init imx50_init_early(void)
15 {
16 	mxc_set_cpu_type(MXC_CPU_MX50);
17 }
18 
19 static const char * const imx50_dt_board_compat[] __initconst = {
20 	"fsl,imx50",
21 	NULL
22 };
23 
24 DT_MACHINE_START(IMX50_DT, "Freescale i.MX50 (Device Tree Support)")
25 	.init_early	= imx50_init_early,
26 	.dt_compat	= imx50_dt_board_compat,
27 MACHINE_END
28