diff mbox series

ARM: imx7ulp: enable cpufreq

Message ID 1599795104-7016-1-git-send-email-peng.fan@nxp.com (mailing list archive)
State New, archived
Headers show
Series ARM: imx7ulp: enable cpufreq | expand

Commit Message

Peng Fan Sept. 11, 2020, 3:31 a.m. UTC
From: Peng Fan <peng.fan@nxp.com>

Enable cpufreq for i.MX7ULP when imx cpufreq dt driver enabled.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 arch/arm/mach-imx/mach-imx7ulp.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Aisheng Dong Sept. 11, 2020, 6:22 a.m. UTC | #1
> From: Peng Fan <peng.fan@nxp.com>
> Sent: Friday, September 11, 2020 11:32 AM
> 
> 
> Enable cpufreq for i.MX7ULP when imx cpufreq dt driver enabled.
> 
> Signed-off-by: Peng Fan <peng.fan@nxp.com>

Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>

Regards
Aisheng
Shawn Guo Sept. 13, 2020, 3:06 a.m. UTC | #2
On Fri, Sep 11, 2020 at 11:31:44AM +0800, peng.fan@nxp.com wrote:
> From: Peng Fan <peng.fan@nxp.com>
> 
> Enable cpufreq for i.MX7ULP when imx cpufreq dt driver enabled.
> 
> Signed-off-by: Peng Fan <peng.fan@nxp.com>

Applied, thanks.
diff mbox series

Patch

diff --git a/arch/arm/mach-imx/mach-imx7ulp.c b/arch/arm/mach-imx/mach-imx7ulp.c
index 128cf4c92aab..445256e6a4a0 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();
 }