From patchwork Sun Feb 18 13:41:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Shields X-Patchwork-Id: 10226757 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 0334260467 for ; Sun, 18 Feb 2018 13:42:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E785328AD7 for ; Sun, 18 Feb 2018 13:42:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DC68828AEC; Sun, 18 Feb 2018 13:42:07 +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 8AFE328AD7 for ; Sun, 18 Feb 2018 13:42:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751439AbeBRNmH (ORCPT ); Sun, 18 Feb 2018 08:42:07 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:44320 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751374AbeBRNmG (ORCPT ); Sun, 18 Feb 2018 08:42:06 -0500 Received: by mail-pg0-f66.google.com with SMTP id l4so2744340pgp.11 for ; Sun, 18 Feb 2018 05:42:06 -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=Olilk9hqdqoTlHHbvZutI8EHoT2klcD46pgdVMOGtvE=; b=VT1h76ZhCYQ0t6j7Oj0yIajyag3OeFxCAA3ZiUsOAPoxRjfSkz6MDBiTeIbigKLyR8 ciofsHWocMDR24CjldOe23Sg6/8s75q2WAiNsVsKycfY3ozcRSCfKcInVBati/hf8sXh lzWmoHndn/VLP1XtjYOMlmZwSzaw6+SfhoUncB/R/nB5h9IKRgFX8QmEOfWToGMU/hOr jl0X7b5Pyqsm9QRFfo6D0f7iciTp2COfbTgM9uomDrCfZjC6+Z2nbSYN+QEX0OCEDn8X wO1R6G5SnQ0dAZtwUI3ZYB4yuOgmDRJpt+rhryqk5YRvDFmjqRP/yH3jsTPvrdbOe5CH T99w== X-Gm-Message-State: APf1xPBJzsJKhCI05oFxSO+hSe9Y3lTApme/SIXVPLLgkxfHSbe2cbop naj8IPOI+O1xeZs9sK6OoILGYpFlm60= X-Google-Smtp-Source: AH8x225jy5QVm/bpeS3JlY7bD1q2x9Tszk2PepFrlp+93mYKjDwwibWn74mbbcfFC0XNXNuj1VxzCw== X-Received: by 10.101.99.205 with SMTP id n13mr9980834pgv.345.1518961325691; Sun, 18 Feb 2018 05:42:05 -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 t86sm33934328pfa.129.2018.02.18.05.42.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Feb 2018 05:42:04 -0800 (PST) From: Simon Shields To: linux-samsung-soc@vger.kernel.org Cc: Krzysztof Kozlowski , Kukjin Kim , Marek Szyprowski , =?UTF-8?q?Bart=C5=82omiej=20=C5=BBo=C5=82nierkiewicz?= , Simon Shields Subject: [PATCH v6 3/3] ARM: exynos: extend cpuidle support to midas boards Date: Mon, 19 Feb 2018 00:41:24 +1100 Message-Id: <20180218134124.31752-4-simon@lineageos.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180218134124.31752-1-simon@lineageos.org> References: <20180218134124.31752-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 fbd108ce8745..8c4f5e342dc1 100644 --- a/arch/arm/mach-exynos/exynos.c +++ b/arch/arm/mach-exynos/exynos.c @@ -192,7 +192,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);