MLK-13914-05 ARM: imx: Add cpufreq device on i.mx7ulp
authorBai Ping <ping.bai@nxp.com>
Mon, 13 Feb 2017 08:53:31 +0000 (16:53 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:10:44 +0000 (15:10 -0500)
Add cpufreq device on i.MX7ULP.

Signed-off-by: Bai Ping <ping.bai@nxp.com>
arch/arm/mach-imx/mach-imx7ulp.c

index 5e4dd5a..ff70624 100644 (file)
@@ -1,5 +1,6 @@
 /*
  * Copyright (C) 2016 Freescale Semiconductor, Inc.
+ * Copyright 2017 NXP.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 as
@@ -42,6 +43,9 @@ static void __init imx7ulp_map_io(void)
 
 static void __init imx7ulp_init_late(void)
 {
+       if (IS_ENABLED(CONFIG_ARM_IMX7ULP_CPUFREQ))
+               platform_device_register_simple("imx7ulp-cpufreq", -1, NULL, 0);
+
        imx7ulp_cpuidle_init();
        imx7ulp_enable_nmi();
 }