diff options
author | Leonard Crestez <leonard.crestez@nxp.com> | 2017-10-11 08:08:23 -0400 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2017-10-14 11:04:33 -0400 |
commit | 6879452a883bc985ef9a8f70eb55e870cfb0bb79 (patch) | |
tree | 9115ff3e0fc43b230da0c303c84f3663b4b29bf0 | |
parent | 2e845e5f736fb724edcb258edd0d6d6684a77de8 (diff) |
ARM: imx: Enable cpuidle for i.MX6DL starting at 1.1
Enable cpuidle support on i.MX6DL starting from IMX_CHIP_REVISION_1_1.
This also makes the code cleaner because 6q and 6dl actually have
different revision histories.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
-rw-r--r-- | arch/arm/mach-imx/mach-imx6q.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/arm/mach-imx/mach-imx6q.c b/arch/arm/mach-imx/mach-imx6q.c index 45801b27ee5c..57071135415b 100644 --- a/arch/arm/mach-imx/mach-imx6q.c +++ b/arch/arm/mach-imx/mach-imx6q.c | |||
@@ -371,10 +371,13 @@ static struct platform_device imx6q_cpufreq_pdev = { | |||
371 | static void __init imx6q_init_late(void) | 371 | static void __init imx6q_init_late(void) |
372 | { | 372 | { |
373 | /* | 373 | /* |
374 | * WAIT mode is broken on TO 1.0 and 1.1, so there is no point | 374 | * WAIT mode is broken on imx6 Dual/Quad revision 1.0 and 1.1 so |
375 | * to run cpuidle on them. | 375 | * there is no point to run cpuidle on them. |
376 | * | ||
377 | * It does work on imx6 Solo/DualLite starting from 1.1 | ||
376 | */ | 378 | */ |
377 | if (imx_get_soc_revision() > IMX_CHIP_REVISION_1_1) | 379 | if ((cpu_is_imx6q() && imx_get_soc_revision() > IMX_CHIP_REVISION_1_1) || |
380 | (cpu_is_imx6dl() && imx_get_soc_revision() > IMX_CHIP_REVISION_1_0)) | ||
378 | imx6q_cpuidle_init(); | 381 | imx6q_cpuidle_init(); |
379 | 382 | ||
380 | if (IS_ENABLED(CONFIG_ARM_IMX6Q_CPUFREQ)) { | 383 | if (IS_ENABLED(CONFIG_ARM_IMX6Q_CPUFREQ)) { |