From patchwork Tue Jul 16 22:34:37 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Warren X-Patchwork-Id: 2828343 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 6E9D2C0AB2 for ; Tue, 16 Jul 2013 22:35:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 935D520222 for ; Tue, 16 Jul 2013 22:35:19 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8126C20214 for ; Tue, 16 Jul 2013 22:35:18 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UzDpw-0005Zr-C5; Tue, 16 Jul 2013 22:35:12 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UzDpp-0001xN-Ld; Tue, 16 Jul 2013 22:35:05 +0000 Received: from avon.wwwdotorg.org ([2001:470:1f0f:bd7::2]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UzDpn-0001wc-Ur for linux-arm-kernel@lists.infradead.org; Tue, 16 Jul 2013 22:35:04 +0000 Received: from severn.wwwdotorg.org (unknown [192.168.65.5]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by avon.wwwdotorg.org (Postfix) with ESMTPS id 3CD3C62E3; Tue, 16 Jul 2013 16:47:02 -0600 (MDT) Received: from swarren-lx1.nvidia.com (localhost [127.0.0.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by severn.wwwdotorg.org (Postfix) with ESMTPSA id 7B11DE40EB; Tue, 16 Jul 2013 16:34:42 -0600 (MDT) From: Stephen Warren To: Linus Walleij Subject: [PATCH] pinctrl: tegra: expose config options for individual SoCs Date: Tue, 16 Jul 2013 16:34:37 -0600 Message-Id: <1374014077-22536-1-git-send-email-swarren@wwwdotorg.org> X-Mailer: git-send-email 1.8.1.5 X-NVConfidentiality: public X-Virus-Scanned: clamav-milter 0.97.7 at avon.wwwdotorg.org X-Virus-Status: Clean X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130716_183504_092098_1C68D325 X-CRM114-Status: GOOD ( 11.20 ) X-Spam-Score: -2.3 (--) Cc: linux-tegra@vger.kernel.org, Stephen Warren , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Stephen Warren I'm planning to remove CONFIG_ARCH_TEGRA_*_SOC, leaving just ARCH_TEGRA. This will reduce the number of configurations that need to be supported by core Tegra code, e.g. CPU idle, hotplug. As a precursor, we need to update Kconfig for all Tegra drivers not to reference ARCH_TEGRA_*_SOC. The Tegra pinctrl driver contains a fairly large amount of SoC-specific code and data. Introduce explicit config options so that the user can trim the set of supported SoCs if they wish. Default these to on, since most people will probably want to enable support for all SoCs. This also avoids the need to change any defconfig files. Signed-off-by: Stephen Warren --- drivers/pinctrl/Kconfig | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig index 5a8ad51..25a56b5 100644 --- a/drivers/pinctrl/Kconfig +++ b/drivers/pinctrl/Kconfig @@ -207,15 +207,21 @@ config PINCTRL_TEGRA select PINCONF config PINCTRL_TEGRA20 - bool + bool "NVIDIA Tegra20 pin control driver" + depends on ARCH_TEGRA + default y select PINCTRL_TEGRA config PINCTRL_TEGRA30 - bool + bool "NVIDIA Tegra30 pin control driver" + depends on ARCH_TEGRA + default y select PINCTRL_TEGRA config PINCTRL_TEGRA114 - bool + bool "NVIDIA Tegra114 pin control driver" + depends on ARCH_TEGRA + default y select PINCTRL_TEGRA config PINCTRL_TZ1090