From patchwork Thu Feb 8 00:01:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Shields X-Patchwork-Id: 10206363 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 92B67602D8 for ; Thu, 8 Feb 2018 00:02:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8375B29052 for ; Thu, 8 Feb 2018 00:02:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 77CA429066; Thu, 8 Feb 2018 00:02:36 +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 1EACF29052 for ; Thu, 8 Feb 2018 00:02:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751190AbeBHACf (ORCPT ); Wed, 7 Feb 2018 19:02:35 -0500 Received: from mail-pl0-f65.google.com ([209.85.160.65]:32994 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751061AbeBHACe (ORCPT ); Wed, 7 Feb 2018 19:02:34 -0500 Received: by mail-pl0-f65.google.com with SMTP id t4-v6so1091163plo.0; Wed, 07 Feb 2018 16:02:34 -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=GBslppHG4iputFPouVXBTyv/Iy85m1ZRTSuYYz13VZc=; b=lHBPhDBbpFvRZKNqDdCvSw1TsFzKs7HvKdABxhErikX7S5OCIp3CIRCYHu90G2lw60 vpZ3N3qhiECMuVi/rbk0k65Z/EK1Zc2/MJqw9FAz35bvpDMszliuWnRbsdKfE5CXoPaH aTAElPHadn/TueY/K8805pY4R3G3F7i4c67NR44V1Ac9HEFs9BfRSLRwtYXqj7kjZB9j cy5S7b9slx4o4xPt8E/FDMAAWOXKJ66E04CjOiWDZlkZJ3GNExvxEE+UGWRMJihm1g+6 Zh/yCRN805c0VlRrrGs7HZ9dbvMqldm7lqB802qU/NzBEQNWh2vp+T5GjwfitTZjjB4o +CRw== X-Gm-Message-State: APf1xPCZzQr+fFaRIPELi/UosK97pnzU3rxy8uTdLHPP58xzWZyJnhex y9mKWCBhNG4fYXpun56V/SbT4SfejZY= X-Google-Smtp-Source: AH8x226KvF071zFi0gxAhzpGROe5WwSpfrh2TeCXEAjZWtHdyUa4S6pf9HMFJSbubp8r6dNEtKml6g== X-Received: by 2002:a17:902:3084:: with SMTP id v4-v6mr7826722plb.131.1518048153857; Wed, 07 Feb 2018 16:02:33 -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 e189sm6054901pfa.4.2018.02.07.16.02.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Feb 2018 16:02:32 -0800 (PST) From: Simon Shields To: linux-samsung-soc@vger.kernel.org Cc: Krzysztof Kozlowski , Rob Herring , Kukjin Kim , devicetree@vger.kernel.org, Marek Szyprowski , =?UTF-8?q?Bart=C5=82omiej=20=C5=BBo=C5=82nierkiewicz?= , Simon Shields Subject: [PATCH v5 4/4] ARM: exynos: extend cpuidle support to midas boards Date: Thu, 8 Feb 2018 11:01:37 +1100 Message-Id: <20180208000137.11264-5-simon@lineageos.org> X-Mailer: git-send-email 2.16.0 In-Reply-To: <20180208000137.11264-1-simon@lineageos.org> References: <20180208000137.11264-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);