[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1582099197-20327-14-git-send-email-peng.fan@nxp.com>
Date: Wed, 19 Feb 2020 15:59:56 +0800
From: peng.fan@....com
To: shawnguo@...nel.org, s.hauer@...gutronix.de, sboyd@...nel.org,
robh+dt@...nel.org, viresh.kumar@...aro.org, rjw@...ysocki.net
Cc: kernel@...gutronix.de, festevam@...il.com, linux-imx@....com,
Anson.Huang@....com, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org, abel.vesa@....com,
Peng Fan <peng.fan@....com>
Subject: [PATCH v2 13/14] ARM: imx7ulp: enable cpufreq
From: Peng Fan <peng.fan@....com>
Enable cpufreq for i.MX7ULP when imx cpufreq dt driver enabled.
Signed-off-by: Peng Fan <peng.fan@....com>
---
arch/arm/mach-imx/mach-imx7ulp.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/mach-imx/mach-imx7ulp.c b/arch/arm/mach-imx/mach-imx7ulp.c
index 11ac71aaf965..bf22d19e02f6 100644
--- a/arch/arm/mach-imx/mach-imx7ulp.c
+++ b/arch/arm/mach-imx/mach-imx7ulp.c
@@ -67,6 +67,9 @@ static const char *const imx7ulp_dt_compat[] __initconst = {
static void __init imx7ulp_init_late(void)
{
+ if (IS_ENABLED(CONFIG_ARM_IMX_CPUFREQ_DT))
+ platform_device_register_simple("imx-cpufreq-dt", -1, NULL, 0);
+
imx7ulp_cpuidle_init();
}
--
2.16.4
Powered by blists - more mailing lists