1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2015 Freescale Semiconductor, Inc.
5 #include <linux/irqchip.h>
6 #include <linux/of_platform.h>
7 #include <asm/mach/arch.h>
13 static void __init
imx6ul_init_machine(void)
15 imx_print_silicon_rev(cpu_is_imx6ull() ? "i.MX6ULL" : "i.MX6UL",
16 imx_get_soc_revision());
18 of_platform_default_populate(NULL
, NULL
, NULL
);
23 static void __init
imx6ul_init_irq(void)
25 imx_init_revision_from_anatop();
28 imx6_pm_ccm_init("fsl,imx6ul-ccm");
31 static void __init
imx6ul_init_late(void)
33 imx6sx_cpuidle_init();
35 if (IS_ENABLED(CONFIG_ARM_IMX6Q_CPUFREQ
))
36 platform_device_register_simple("imx6q-cpufreq", -1, NULL
, 0);
39 static const char * const imx6ul_dt_compat
[] __initconst
= {
46 DT_MACHINE_START(IMX6UL
, "Freescale i.MX6 Ultralite (Device Tree)")
47 .init_irq
= imx6ul_init_irq
,
48 .init_machine
= imx6ul_init_machine
,
49 .init_late
= imx6ul_init_late
,
50 .dt_compat
= imx6ul_dt_compat
,