diff options
author | Bai Ping <b51503@freescale.com> | 2015-10-09 18:35:30 +0300 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2015-10-12 16:47:22 +0300 |
commit | 7f7308198f98700be82d123569ea59229a75d3c3 (patch) | |
tree | cdb1326b0ca1dfc837b2f8d3609dab5a2318da6b /arch/arm | |
parent | 69f9c5047d04945693ecc1bdfdb8a3dc2a1f48cf (diff) | |
download | linux-7f7308198f98700be82d123569ea59229a75d3c3.tar.xz |
ARM: imx: add cpufreq device for imx6ul
Add cpufreq device for i.MX6UL. Using the common
cpufreq of i.MX6 SOC.
Signed-off-by: Bai Ping <b51503@freescale.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-imx/mach-imx6ul.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/mach-imx6ul.c b/arch/arm/mach-imx/mach-imx6ul.c index be832b98b7e5..acaf7056efa5 100644 --- a/arch/arm/mach-imx/mach-imx6ul.c +++ b/arch/arm/mach-imx/mach-imx6ul.c @@ -78,6 +78,12 @@ static void __init imx6ul_init_irq(void) imx6_pm_ccm_init("fsl,imx6ul-ccm"); } +static void __init imx6ul_init_late(void) +{ + if (IS_ENABLED(CONFIG_ARM_IMX6Q_CPUFREQ)) + platform_device_register_simple("imx6q-cpufreq", -1, NULL, 0); +} + static const char *imx6ul_dt_compat[] __initconst = { "fsl,imx6ul", NULL, @@ -86,5 +92,6 @@ static const char *imx6ul_dt_compat[] __initconst = { DT_MACHINE_START(IMX6UL, "Freescale i.MX6 Ultralite (Device Tree)") .init_irq = imx6ul_init_irq, .init_machine = imx6ul_init_machine, + .init_late = imx6ul_init_late, .dt_compat = imx6ul_dt_compat, MACHINE_END |