From patchwork Thu Nov 13 09:32:28 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 5294711 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 45D7B9F2F1 for ; Thu, 13 Nov 2014 09:38:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7596D2011E for ; Thu, 13 Nov 2014 09:38:03 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 84643200EC for ; Thu, 13 Nov 2014 09:38:02 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XoqoL-0001if-VN; Thu, 13 Nov 2014 09:35:29 +0000 Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Xoqm3-0006tY-9I for linux-arm-kernel@lists.infradead.org; Thu, 13 Nov 2014 09:33:08 +0000 Received: by mail-wi0-f177.google.com with SMTP id l15so3663876wiw.16 for ; Thu, 13 Nov 2014 01:32:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=w0PBtltft8VXFzMrQlonGVCLcYj7CiXQfIbqmncKIDM=; b=pr9CR8xPip0OSKWgO+nxESoo7PVfNlDwNJAYZeqMkv2xjUQ0HGizMFSo+FJ4d9kyMH gUeYY2F9po3iyPUUmkmdQVSgt7SGbDewTWsJXbYOXuKJvsYJt+e20BignI9oV8FrndzV 0KHI/vTEBGyZc4Cg7we6URxCn3B9evuLyofu8q2Q+adqgk19WHmnexrUsr4CbPL1He40 2FtXiyrRkmhNASVLl28Iin3nkFvDortMaZP2LjXjgAl6h2jw9iI0HU4XRXJnmX+O7a70 ybUEKH5qziFuaoe/ZJbxeZTCNOIxdDQwud5XRbLdlFz0vpoJFCyX00NyEyiWu7ka94ao kcHg== X-Received: by 10.180.90.112 with SMTP id bv16mr1968564wib.53.1415871164461; Thu, 13 Nov 2014 01:32:44 -0800 (PST) Received: from localhost (port-8254.pppoe.wtnet.de. [84.46.32.94]) by mx.google.com with ESMTPSA id bq6sm24958189wib.1.2014.11.13.01.32.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Nov 2014 01:32:43 -0800 (PST) From: Thierry Reding To: Thierry Reding , Russell King Subject: [PATCH v7 03/12] ARM: tegra: Move AHB Kconfig to drivers/amba Date: Thu, 13 Nov 2014 10:32:28 +0100 Message-Id: <1415871157-21968-4-git-send-email-thierry.reding@gmail.com> X-Mailer: git-send-email 2.1.3 In-Reply-To: <1415871157-21968-1-git-send-email-thierry.reding@gmail.com> References: <1415871157-21968-1-git-send-email-thierry.reding@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141113_013307_513311_A4B4DDC9 X-CRM114-Status: GOOD ( 14.02 ) X-Spam-Score: -0.8 (/) Cc: Alexandre Courbot , Mike Turquette , Stephen Warren , Catalin Marinas , Joerg Roedel , Will Deacon , linux-tegra@vger.kernel.org, iommu@lists.linux-foundation.org, Olof Johansson , David Riley , Peter De Schrijver , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 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=-3.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD, T_DKIM_INVALID, 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: Thierry Reding This will allow the Kconfig option to be shared among 32-bit and 64-bit ARM. Signed-off-by: Thierry Reding --- Hi Russell, As explained in the cover-letter there are tight dependencies between the patches in this series, so for simplicity I'd like to take this patch through the Tegra tree with your Acked-by. Thanks, Thierry Changes in v4: - add precursory patch introducing drivers/amba/Kconfig, rebase on top Changes in v3: - select ARM_AMBA from ARCH_TEGRA to enable the TEGRA_AHB driver arch/arm/mach-tegra/Kconfig | 9 +-------- drivers/Kconfig | 2 ++ drivers/amba/Kconfig | 12 ++++++++++++ 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-tegra/Kconfig b/arch/arm/mach-tegra/Kconfig index 095399618ca5..d0be9a1ef6b8 100644 --- a/arch/arm/mach-tegra/Kconfig +++ b/arch/arm/mach-tegra/Kconfig @@ -2,6 +2,7 @@ menuconfig ARCH_TEGRA bool "NVIDIA Tegra" if ARCH_MULTI_V7 select ARCH_REQUIRE_GPIOLIB select ARCH_SUPPORTS_TRUSTED_FOUNDATIONS + select ARM_AMBA select ARM_GIC select CLKSRC_MMIO select HAVE_ARM_SCU if SMP @@ -59,12 +60,4 @@ config ARCH_TEGRA_124_SOC Support for NVIDIA Tegra T124 processor family, based on the ARM CortexA15MP CPU -config TEGRA_AHB - bool "Enable AHB driver for NVIDIA Tegra SoCs" - default y - help - Adds AHB configuration functionality for NVIDIA Tegra SoCs, - which controls AHB bus master arbitration and some - performance parameters(priority, prefech size). - endif diff --git a/drivers/Kconfig b/drivers/Kconfig index 569ff7886dc3..694d5a70d6ce 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -1,5 +1,7 @@ menu "Device Drivers" +source "drivers/amba/Kconfig" + source "drivers/base/Kconfig" source "drivers/bus/Kconfig" diff --git a/drivers/amba/Kconfig b/drivers/amba/Kconfig index d1cba6a9b3b8..4a5c9d279059 100644 --- a/drivers/amba/Kconfig +++ b/drivers/amba/Kconfig @@ -1,2 +1,14 @@ config ARM_AMBA bool + +if ARM_AMBA + +config TEGRA_AHB + bool "Enable AHB driver for NVIDIA Tegra SoCs" + default y if ARCH_TEGRA + help + Adds AHB configuration functionality for NVIDIA Tegra SoCs, + which controls AHB bus master arbitration and some performance + parameters (priority, prefetch size). + +endif