1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) 2014 Alexander Shiyan <shc_work@mail.ru>
6 #include <linux/of_platform.h>
7 #include <asm/mach/arch.h>
8 #include <asm/mach/map.h>
13 #define MX1_AVIC_ADDR 0x00223000
15 static void __init
imx1_init_early(void)
17 mxc_set_cpu_type(MXC_CPU_MX1
);
20 static void __init
imx1_init_irq(void)
22 void __iomem
*avic_addr
;
24 avic_addr
= ioremap(MX1_AVIC_ADDR
, SZ_4K
);
27 mxc_init_irq(avic_addr
);
30 static const char * const imx1_dt_board_compat
[] __initconst
= {
35 DT_MACHINE_START(IMX1_DT
, "Freescale i.MX1 (Device Tree Support)")
36 .init_early
= imx1_init_early
,
37 .init_irq
= imx1_init_irq
,
38 .dt_compat
= imx1_dt_board_compat
,
39 .restart
= mxc_restart
,