projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b154d8d
)
ARM: imx7ulp: enable cpufreq
author
Peng Fan
<peng.fan@nxp.com>
Fri, 11 Sep 2020 03:31:44 +0000
(11:31 +0800)
committer
Shawn Guo
<shawnguo@kernel.org>
Sun, 13 Sep 2020 03:06:04 +0000
(11:06 +0800)
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>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/mach-imx/mach-imx7ulp.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-imx/mach-imx7ulp.c
b/arch/arm/mach-imx/mach-imx7ulp.c
index 128cf4c92aab7a15acb03377aa30dbf7571ace47..445256e6a4a0bbee0e1601f5c6cf1c80b18971c5 100644
(file)
--- 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();
}