From patchwork Wed Jan 17 12:58:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Shields X-Patchwork-Id: 10169253 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 D3DE3601D3 for ; Wed, 17 Jan 2018 12:59:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BA7852860B for ; Wed, 17 Jan 2018 12:59:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AF537285F5; Wed, 17 Jan 2018 12:59:37 +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 1588B2860B for ; Wed, 17 Jan 2018 12:59:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752986AbeAQM7g (ORCPT ); Wed, 17 Jan 2018 07:59:36 -0500 Received: from mail-pf0-f194.google.com ([209.85.192.194]:38883 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752925AbeAQM7f (ORCPT ); Wed, 17 Jan 2018 07:59:35 -0500 Received: by mail-pf0-f194.google.com with SMTP id k19so11510534pfj.5; Wed, 17 Jan 2018 04:59:35 -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=VJbjTgEpl9rCZ32N+CcqVcV4CfyhCIh2eommFYbtZQZwN4GltiO+b+qZMahQnZ2v8l KgjfjnfeFYJ3In0HTGWW2cBplg9B7zxAZERLFeUwNyQ8DK9d+X/OE64ua6Qj8Axxg8v/ iwIp+XcOgmXVS0O3dIWlLAIr8VcsQaQ4AmCqPuPvMV4lZV4RR1ZMkKAw3TAunz5vis7t zwf2DGxwth3c9Ouu8I2KMDGVtsMNUySnzzDGAZjhxd9CUwjVernWemRgyCznH0CsKNNa J/6TXXm7Vg05hwkK1pGLwZzSMnZHDrdGTAQldYwMWbyzN1T6TFg8FvVgWRIfrble63SS 65jg== X-Gm-Message-State: AKwxytfXoEBOTaHZoSa1kjAEEwYPhAUFfs8vo6TeLOAQWE+kDOGc3KZG JTOZ5742XUFDFX6PV5kXtlz8kVlq0vs= X-Google-Smtp-Source: ACJfBosNLhSAcd3bmrsr4ZeDwgbdZ+yqkkN+c80jcNw7KYnyBaCk+oCyiOG6JoPAnznsunQxEwPbag== X-Received: by 10.98.103.209 with SMTP id t78mr26701955pfj.53.1516193974867; Wed, 17 Jan 2018 04:59:34 -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 i20sm8620472pfj.58.2018.01.17.04.59.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Jan 2018 04:59:33 -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 v4 4/4] ARM: exynos: extend cpuidle support to midas boards Date: Wed, 17 Jan 2018 23:58:45 +1100 Message-Id: <20180117125845.3954-5-simon@lineageos.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180117125845.3954-1-simon@lineageos.org> References: <20180117125845.3954-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);