ARM: EXYNOS: Extend cpuidle support to Midas boards
authorSimon Shields <simon@lineageos.org>
Sun, 18 Feb 2018 13:41:24 +0000 (00:41 +1100)
committerKrzysztof Kozlowski <krzk@kernel.org>
Mon, 19 Feb 2018 16:55:49 +0000 (17:55 +0100)
Exynos4412 can only use cpuidle when running under a compatible
bootloader/firmware. The Midas family of boards, including Trats2,
have such a firmware, so allow them to use cpuidle.

Leave the Trats2 check there in order to preserve the ABI.

Signed-off-by: Simon Shields <simon@lineageos.org>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
arch/arm/mach-exynos/exynos.c

index fbd108ce8745742d4dab008adbdc634883cf76d2..8c4f5e342dc1af0cc26ed949a4c3c85c60b429c0 100644 (file)
@@ -192,7 +192,8 @@ static void __init exynos_dt_machine_init(void)
 #endif
        if (of_machine_is_compatible("samsung,exynos4210") ||
            (of_machine_is_compatible("samsung,exynos4412") &&
-            of_machine_is_compatible("samsung,trats2")) ||
+            (of_machine_is_compatible("samsung,trats2") ||
+                 of_machine_is_compatible("samsung,midas"))) ||
            of_machine_is_compatible("samsung,exynos3250") ||
            of_machine_is_compatible("samsung,exynos5250"))
                platform_device_register(&exynos_cpuidle);