ARM: imx: add cpufreq support for i.mx6sx
authorAnson Huang <b20788@freescale.com>
Wed, 25 Jun 2014 09:10:12 +0000 (17:10 +0800)
committerShawn Guo <shawn.guo@freescale.com>
Tue, 16 Sep 2014 02:06:45 +0000 (10:06 +0800)
Add cpufreq support for i.MX6SX, using common
i.MX6Q cpufreq driver.

Signed-off-by: Anson Huang <b20788@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
arch/arm/mach-imx/mach-imx6sx.c

index 673a734165bab93699bff75936ab9b1511bb2a31..3de3b7369aef10ca59968ce9d7a9d89b2d47bec3 100644 (file)
@@ -42,6 +42,9 @@ static void __init imx6sx_init_irq(void)
 static void __init imx6sx_init_late(void)
 {
        imx6q_cpuidle_init();
+
+       if (IS_ENABLED(CONFIG_ARM_IMX6Q_CPUFREQ))
+               platform_device_register_simple("imx6q-cpufreq", -1, NULL, 0);
 }
 
 static const char * const imx6sx_dt_compat[] __initconst = {