Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 /*
0003  *  Copyright (C) 2014 Alexander Shiyan <shc_work@mail.ru>
0004  */
0005 
0006 #include <linux/of_platform.h>
0007 #include <asm/mach/arch.h>
0008 #include <asm/mach/map.h>
0009 
0010 #include "common.h"
0011 #include "hardware.h"
0012 
0013 #define MX1_AVIC_ADDR   0x00223000
0014 
0015 static void __init imx1_init_early(void)
0016 {
0017     mxc_set_cpu_type(MXC_CPU_MX1);
0018 }
0019 
0020 static const char * const imx1_dt_board_compat[] __initconst = {
0021     "fsl,imx1",
0022     NULL
0023 };
0024 
0025 DT_MACHINE_START(IMX1_DT, "Freescale i.MX1 (Device Tree Support)")
0026     .init_early = imx1_init_early,
0027     .dt_compat  = imx1_dt_board_compat,
0028     .restart    = mxc_restart,
0029 MACHINE_END