diff mbox

[v2,4/4] ARM: exynos: extend cpuidle support to midas boards

Message ID 20171214125015.2611-5-simon@lineageos.org (mailing list archive)
State Superseded
Headers show

Commit Message

Simon Shields Dec. 14, 2017, 12:50 p.m. UTC
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.

Signed-off-by: Simon Shields <simon@lineageos.org>
---
 arch/arm/mach-exynos/exynos.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Krzysztof Kozlowski Dec. 14, 2017, 1:50 p.m. UTC | #1
On Thu, Dec 14, 2017 at 1:50 PM, Simon Shields <simon@lineageos.org> wrote:
> 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.
>
> Signed-off-by: Simon Shields <simon@lineageos.org>
> ---
>  arch/arm/mach-exynos/exynos.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c
> index 9a9caac1125a..bfd119d7b63f 100644
> --- a/arch/arm/mach-exynos/exynos.c
> +++ b/arch/arm/mach-exynos/exynos.c
> @@ -196,7 +196,7 @@ 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")) ||

Please leave trats2 compatible for compatibility with older DTBs, as
part of ABI.

Best regards,
Krzysztof

> +            of_machine_is_compatible("samsung,midas")) ||
>             of_machine_is_compatible("samsung,exynos3250") ||
>             of_machine_is_compatible("samsung,exynos5250"))
>                 platform_device_register(&exynos_cpuidle);
> --
> 2.15.1
>
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c
index 9a9caac1125a..bfd119d7b63f 100644
--- a/arch/arm/mach-exynos/exynos.c
+++ b/arch/arm/mach-exynos/exynos.c
@@ -196,7 +196,7 @@  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,midas")) ||
 	    of_machine_is_compatible("samsung,exynos3250") ||
 	    of_machine_is_compatible("samsung,exynos5250"))
 		platform_device_register(&exynos_cpuidle);