From patchwork Mon Dec 18 12:38:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Shields X-Patchwork-Id: 10119429 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4B9D760327 for ; Mon, 18 Dec 2017 12:39:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3D93128FD4 for ; Mon, 18 Dec 2017 12:39:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3279B28FD6; Mon, 18 Dec 2017 12:39:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9C60B28FD4 for ; Mon, 18 Dec 2017 12:39:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759326AbdLRMj2 (ORCPT ); Mon, 18 Dec 2017 07:39:28 -0500 Received: from mail-pf0-f194.google.com ([209.85.192.194]:40517 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759289AbdLRMjZ (ORCPT ); Mon, 18 Dec 2017 07:39:25 -0500 Received: by mail-pf0-f194.google.com with SMTP id v26so9621498pfl.7; Mon, 18 Dec 2017 04:39:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=+LVr7cAMbC50lSV2x6QHFdsVoCIN9t3RG48QADgb7sU=; b=VKIl3OhoAMajZBy2mI7t3oX9GIScj7rQTj58eOju0Q5j/XNy/xgxrCy1qXC9v5Ae8S xs4CsblO/UHGaO9Yiib8nZ1mEg+6jshORDReajcOW9QfX0BGP3Co+I31rhZVR8i26yTn OLXgZhPJyZuQtJZQb71hI0IPa9EmurrvkAKdP0gBelnYqbTj3D68CpltsEnO7wDbulVz 5JuaKFQs0HZoepwnBROOkqfpPpohz8HXBgUtbJ75oDkNjO5HKZzSP7r0Fx00uQv2VgpM UcfWpHZbpIbFyHJ8+HEx+H+9TEmex5gEGRyBkYV1aW/1TGCaYcZ9+1VK8HO+DvZFFirb +LGQ== X-Gm-Message-State: AKGB3mK26WVKMwSX+ZKXjXb8MGkiufT0qVlElP9rG32rFnNV8a+KEMeG sd3clSWEXXgqMUYbDFT9M2SwgbcNK50= X-Google-Smtp-Source: ACJfBouvI9/gZwUAM5lvkSjV4YJ3ztONxZ4qAqNvJU3BTPYTNZpxj+qjbQWkNBG+ACEOO5LWCXyvqA== X-Received: by 10.99.101.66 with SMTP id z63mr3507803pgb.426.1513600764175; Mon, 18 Dec 2017 04:39:24 -0800 (PST) Received: from archbox.home (27-32-42-49.static.tpgi.com.au. [27.32.42.49]) by smtp.gmail.com with ESMTPSA id r71sm26762146pfd.144.2017.12.18.04.39.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Dec 2017 04:39:22 -0800 (PST) From: Simon Shields To: linux-samsung-soc@vger.kernel.org Cc: Kukjin Kim , Krzysztof Kozlowski , devicetree@vger.kernel.org, Marek Szyprowski , =?UTF-8?q?Bart=C5=82omiej=20=C5=BBo=C5=82nierkiewicz?= , Simon Shields Subject: [PATCH v3 4/4] ARM: exynos: extend cpuidle support to midas boards Date: Mon, 18 Dec 2017 23:38:05 +1100 Message-Id: <20171218123805.26345-5-simon@lineageos.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20171218123805.26345-1-simon@lineageos.org> References: <20171218123805.26345-1-simon@lineageos.org> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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);