aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/mach-imx7d.c
diff options
context:
space:
mode:
authorBai Ping <b51503@freescale.com>2015-11-24 18:25:16 +0800
committerShawn Guo <shawnguo@kernel.org>2015-12-02 13:38:03 +0800
commite3526f004a35e5f324b1c835bca056f4df05bff0 (patch)
tree05ea2b9d40e5d0c359df9ae586083f97c0c7bc55 /arch/arm/mach-imx/mach-imx7d.c
parentmach-imx/mach-imx6ul.c: proper constness with __initconst (diff)
downloadlinux-dev-e3526f004a35e5f324b1c835bca056f4df05bff0.tar.xz
linux-dev-e3526f004a35e5f324b1c835bca056f4df05bff0.zip
ARM: imx: enable cpufreq device on i.mx7d
Add a cpufreq-dt device on i.MX7D, using the generic cpufreq-dt for CPU frequency scaling. Signed-off-by: Bai Ping <b51503@freescale.com> Acked-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'arch/arm/mach-imx/mach-imx7d.c')
-rw-r--r--arch/arm/mach-imx/mach-imx7d.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/mach-imx7d.c b/arch/arm/mach-imx/mach-imx7d.c
index b450f525a670..5a27f20c9a82 100644
--- a/arch/arm/mach-imx/mach-imx7d.c
+++ b/arch/arm/mach-imx/mach-imx7d.c
@@ -105,6 +105,11 @@ static void __init imx7d_init_irq(void)
irqchip_init();
}
+static void __init imx7d_init_late(void)
+{
+ platform_device_register_simple("cpufreq-dt", -1, NULL, 0);
+}
+
static const char *const imx7d_dt_compat[] __initconst = {
"fsl,imx7d",
NULL,
@@ -112,6 +117,7 @@ static const char *const imx7d_dt_compat[] __initconst = {
DT_MACHINE_START(IMX7D, "Freescale i.MX7 Dual (Device Tree)")
.init_irq = imx7d_init_irq,
+ .init_late = imx7d_init_late,
.init_machine = imx7d_init_machine,
.dt_compat = imx7d_dt_compat,
MACHINE_END