]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
ARM: imx: Switch imx7d to imx-cpufreq-dt for speed-grading
authorLeonard Crestez <leonard.crestez@nxp.com>
Wed, 5 Jun 2019 10:37:07 +0000 (13:37 +0300)
committerShawn Guo <shawnguo@kernel.org>
Wed, 12 Jun 2019 10:32:03 +0000 (18:32 +0800)
The imx-cpufreq-dt driver can handle speed grading bits on imx7d just
like on imx8mq and imx8mm.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/mach-imx/mach-imx7d.c

index 26ca744d3e2b1279a2fc9e6bb482826dbcd08101..0b77412795c99d03ccd9e71070219ba44d21c346 100644 (file)
@@ -97,6 +97,12 @@ static void __init imx7d_init_machine(void)
        imx7d_enet_init();
 }
 
+static void __init imx7d_init_late(void)
+{
+       if (IS_ENABLED(CONFIG_ARM_IMX_CPUFREQ_DT))
+               platform_device_register_simple("imx-cpufreq-dt", -1, NULL, 0);
+}
+
 static void __init imx7d_init_irq(void)
 {
        imx_init_revision_from_anatop();
@@ -113,5 +119,6 @@ static const char *const imx7d_dt_compat[] __initconst = {
 DT_MACHINE_START(IMX7D, "Freescale i.MX7 Dual (Device Tree)")
        .init_irq       = imx7d_init_irq,
        .init_machine   = imx7d_init_machine,
+       .init_late      = imx7d_init_late,
        .dt_compat      = imx7d_dt_compat,
 MACHINE_END