From patchwork Wed Mar 1 18:01:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 9598873 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 898EB60453 for ; Wed, 1 Mar 2017 18:04:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 824F628306 for ; Wed, 1 Mar 2017 18:04:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 772EF28526; Wed, 1 Mar 2017 18:04:10 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0FFA928306 for ; Wed, 1 Mar 2017 18:04:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=m405/p64OiI1ZkbgVa1GjsTw+3Obexs+BD6akzEDbGE=; b=EG+nC9lWChjuTocyMxlCKoWr9u SGqznFARIgZI0R5CGv1p8AY5UhFOZyZPFN/QWl/XKRyNlUiT/gC60Fq2gBmo5OSuFpV5uXk3ohUvm c3vx4NNQbHhkj4aY/9o3a1marCz6Pl4CyhVcGFm2kXZd/iaHHSHp62eSbUH6Uwr1YEeXr0O6EgfvJ g4ODeJvklGLlJ624sXdRI7L/hS/sXjGXHnFk9Q84ENJi+cL59eZwj47OPRxvH96NSkdLqZ3pWt0hU MSZCSb4eLrdvjrA/sv6pC2gjzAz/LuR/tLRRnExdv1EYPxv2aXtFsF8OE7kdpLJnAX53saTsrsAxL wIyuSoig==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cj8bh-0005FI-NR; Wed, 01 Mar 2017 18:04:09 +0000 Received: from forward6p.cmail.yandex.net ([87.250.241.191]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cj8bG-0005C7-I4 for linux-arm-kernel@lists.infradead.org; Wed, 01 Mar 2017 18:03:45 +0000 Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [95.108.130.59]) by forward6p.cmail.yandex.net (Yandex) with ESMTP id 5519822B87; Wed, 1 Mar 2017 21:03:16 +0300 (MSK) Received: from smtp1j.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp1j.mail.yandex.net (Yandex) with ESMTP id B629D3C810F2; Wed, 1 Mar 2017 21:03:10 +0300 (MSK) Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id iuPwTtHcZ9-33vWRa92; Wed, 01 Mar 2017 21:03:09 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aosc.xyz; s=mail; t=1488391389; bh=LD/Ah87ktHqRyzjtLeXUJKqo/aSNMJGS/iXi23m7wPA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=Upix/prj34QUakajZs4pqRRdAqtF2A1ZxA0rpnbfBxSNlXpi8BXZzsBbVGYvhKnVh o10UzEuk2qi1c9H7nyEQqREBHE05l8a0o98ujzv++jJwaZ/HEymgrmOckyXJnzxOvg XPxtpYNRnjmewwXxVPHdYZ814/KcI9S6Gvqt5+jE= Authentication-Results: smtp1j.mail.yandex.net; dkim=pass header.i=@aosc.xyz X-Yandex-ForeignMX: US X-Yandex-Suid-Status: 1 0, 1 0, 1 0, 1 0, 1 0, 1 0, 1 0, 1 0, 1 0, 1 0, 1 0, 1 1130000036118848 From: Icenowy Zheng To: Linus Walleij , Rob Herring , Maxime Ripard , Chen-Yu Tsai , Catalin Marinas , Will Deacon , Andre Przywara Subject: [PATCH v2 1/5] pinctrl: sunxi: refactor pinctrl choice selecting for ARM64 Date: Thu, 2 Mar 2017 02:01:07 +0800 Message-Id: <20170301180111.12365-2-icenowy@aosc.xyz> X-Mailer: git-send-email 2.11.1 In-Reply-To: <20170301180111.12365-1-icenowy@aosc.xyz> References: <20170301180111.12365-1-icenowy@aosc.xyz> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170301_100342_945942_3F437237 X-CRM114-Status: UNSURE ( 8.73 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-gpio@vger.kernel.org, Icenowy Zheng , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP ARM64 Allwinner SoCs used to have every pinctrl driver selected in ARCH_SUNXI. Change this to make their default value to (ARM64 && ARCH_SUNXI). Signed-off-by: Icenowy Zheng Reviewed-by: Andre Przywara Acked-by: Maxime Ripard --- Changes in v2: - Drop PINCTRL_SUN8I_H3_R's dependency on RESET_CONTROLLER, as there's really no reset line for H3 R_PIO pin controller. (By experiment and investigation on A83T/A80 user manual) drivers/pinctrl/sunxi/Kconfig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/pinctrl/sunxi/Kconfig b/drivers/pinctrl/sunxi/Kconfig index 816015cf7053..a84bfa7f3c05 100644 --- a/drivers/pinctrl/sunxi/Kconfig +++ b/drivers/pinctrl/sunxi/Kconfig @@ -48,8 +48,8 @@ config PINCTRL_SUN8I_H3 select PINCTRL_SUNXI config PINCTRL_SUN8I_H3_R - def_bool MACH_SUN8I - select PINCTRL_SUNXI_COMMON + def_bool MACH_SUN8I || (ARM64 && ARCH_SUNXI) + select PINCTRL_SUNXI config PINCTRL_SUN8I_V3S def_bool MACH_SUN8I @@ -65,11 +65,11 @@ config PINCTRL_SUN9I_A80_R select PINCTRL_SUNXI config PINCTRL_SUN50I_A64 - bool + def_bool ARM64 && ARCH_SUNXI select PINCTRL_SUNXI config PINCTRL_SUN50I_H5 - bool + def_bool ARM64 && ARCH_SUNXI select PINCTRL_SUNXI endif