devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Simon Shields <simon@lineageos.org>
To: linux-samsung-soc@vger.kernel.org
Cc: "Krzysztof Kozlowski" <krzk@kernel.org>,
	"Rob Herring" <robh@kernel.org>, "Kukjin Kim" <kgene@kernel.org>,
	devicetree@vger.kernel.org,
	"Marek Szyprowski" <m.szyprowski@samsung.com>,
	"Bartłomiej Żołnierkiewicz" <b.zolnierkie@samsung.com>,
	"Simon Shields" <simon@lineageos.org>
Subject: [PATCH v5 4/4] ARM: exynos: extend cpuidle support to midas boards
Date: Thu,  8 Feb 2018 11:01:37 +1100	[thread overview]
Message-ID: <20180208000137.11264-5-simon@lineageos.org> (raw)
In-Reply-To: <20180208000137.11264-1-simon@lineageos.org>

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>
---
 arch/arm/mach-exynos/exynos.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c
index 9a9caac1125a..4ee60e31ea48 100644
--- a/arch/arm/mach-exynos/exynos.c
+++ b/arch/arm/mach-exynos/exynos.c
@@ -196,7 +196,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);
-- 
2.16.0

      parent reply	other threads:[~2018-02-08  0:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-08  0:01 [PATCH v5 0/4] Add Exynos4412-based midas boards support Simon Shields
2018-02-08  0:01 ` [PATCH v5 1/4] dt-bindings: samsung: document bindings for Midas family boards Simon Shields
2018-02-13 18:07   ` Krzysztof Kozlowski
     [not found] ` <20180208000137.11264-1-simon-WP75azK+jQYgsBAKwltoeQ@public.gmane.org>
2018-02-08  0:01   ` [PATCH v5 2/4] ARM: dts: split trats2 DTS in preparation for midas boards Simon Shields
2018-02-13 18:14     ` Krzysztof Kozlowski
2018-02-08  0:01   ` [PATCH v5 3/4] ARM: dts: add Samsung's exynos4412-based " Simon Shields
2018-02-08  0:01 ` Simon Shields [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180208000137.11264-5-simon@lineageos.org \
    --to=simon@lineageos.org \
    --cc=b.zolnierkie@samsung.com \
    --cc=devicetree@vger.kernel.org \
    --cc=kgene@kernel.org \
    --cc=krzk@kernel.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=m.szyprowski@samsung.com \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).