From 7203fa8cb323167f1cd517a556234d7c4cfd5c8e Mon Sep 17 00:00:00 2001 From: Bai Ping Date: Mon, 13 Feb 2017 16:53:31 +0800 Subject: [PATCH] MLK-13914-05 ARM: imx: Add cpufreq device on i.mx7ulp Add cpufreq device on i.MX7ULP. Signed-off-by: Bai Ping --- arch/arm/mach-imx/mach-imx7ulp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-imx/mach-imx7ulp.c b/arch/arm/mach-imx/mach-imx7ulp.c index 5e4dd5a21361..ff706242afec 100644 --- a/arch/arm/mach-imx/mach-imx7ulp.c +++ b/arch/arm/mach-imx/mach-imx7ulp.c @@ -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(); } -- 2.17.1