From patchwork Sun Nov 6 22:21:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Robinson X-Patchwork-Id: 9414121 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 1B8746048F for ; Sun, 6 Nov 2016 22:21:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E9ED528CD2 for ; Sun, 6 Nov 2016 22:21:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DD01928CEC; Sun, 6 Nov 2016 22:21:47 +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.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID 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 726D528CD2 for ; Sun, 6 Nov 2016 22:21:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750981AbcKFWVq (ORCPT ); Sun, 6 Nov 2016 17:21:46 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:36826 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750955AbcKFWVp (ORCPT ); Sun, 6 Nov 2016 17:21:45 -0500 Received: by mail-wm0-f68.google.com with SMTP id c17so13498384wmc.3 for ; Sun, 06 Nov 2016 14:21:33 -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; bh=uG2eRRLraNtM0pug9O89DMwZZs7nFBCuAKj0OF8YE+I=; b=p+aOzNicVvYQA64YZxK7LwE38JSHHll/u6yXfpoX8gRAR79JN06/ZP4C07x7688yQT 09A6qq6cybO/BcRRRfnsZvAo+f6UTTIZTwsv2cDzOkuraL7WhXO8IEJepTJYIIfFvmrn bWwVCnNm1oxxc2/8mBhWfzQCIVP817Oa7E1SYahtsbdZvdpDA/LWlh6KSAe4Ct9Mkdqj Cr/RT2jPh66GS2/UxE6RHAmCjY+4HbxVO3O6Lq92PWbh9Z5W3JFw9H5DTT3KGjA5smeN Ly1hSMNzUYJNgr+wge6g+Nv3UZc2+f/qi4NNbxsCk76UcJ4+j8UVuq9Eij70UMPzTT6f OtQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=uG2eRRLraNtM0pug9O89DMwZZs7nFBCuAKj0OF8YE+I=; b=DwgYFq4c02wg43JLP+p2iW/Cyu8Ovub+h573YJu48W4ri8eQiwmlIa0aVZ9f7M05QH P4ONxRQ46rr6Efr6+JyB+6kg9KLwqdRPYcTObiwVXJ2uF6DH4uHM3bGbfVoylTSXizmP WGyAvPyqNfpFfh9PSBSp/o2DSNBrwB/08BLkRLhklvIYN0Dij3YPiPKp5rrXj35YUO/1 GFI9I8juw9VktcRLHl1gF9yyKl3uF8ALMr3n6IOzz+QVmOAt7nL/GQ/Ve0Bnm3ZMdyBw h+I6OlausDz+2fq+859lRYfDhdFo8QZKRXZDgh2KXG599Eh1tCeyn3uncKprpQNSaUnA MQOw== X-Gm-Message-State: ABUngvd/8pngqMdJ+jCRMobkRPtLlIasfhWVGdPzQD81YgeOM5l8R0SaFJWKhKa18oo6iA== X-Received: by 10.28.22.21 with SMTP id 21mr5988248wmw.31.1478470892499; Sun, 06 Nov 2016 14:21:32 -0800 (PST) Received: from neo.roving-it.com (f.2.f.a.a.8.e.f.f.f.5.c.0.e.e.5.1.8.6.2.1.1.b.f.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:fb11:2681:5ee0:c5ff:fe8a:af2f]) by smtp.googlemail.com with ESMTPSA id r7sm13910948wjp.43.2016.11.06.14.21.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Nov 2016 14:21:31 -0800 (PST) From: Peter Robinson To: Mark Brown , linux-spi@vger.kernel.org Cc: Peter Robinson Subject: [PATCH] spi: make architecture specific hardware depend on the associated hardware Date: Sun, 6 Nov 2016 22:21:28 +0000 Message-Id: <20161106222128.24433-1-pbrobinson@gmail.com> X-Mailer: git-send-email 2.9.3 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP There's not much point enabling hardware specific hardware drivers if the actual SoC architecture platforms aren't enabled as they're not much use with out it. Signed-off-by: Peter Robinson --- drivers/spi/Kconfig | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index b799547..5a25ab8 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -188,6 +188,7 @@ config SPI_BUTTERFLY config SPI_CADENCE tristate "Cadence SPI controller" + depends on ARCH_ZYNQ || ARCH_ZYNQMP || COMPILE_TEST help This selects the Cadence SPI controller master driver used by Xilinx Zynq and ZynqMP. @@ -224,7 +225,7 @@ config SPI_DW_PCI config SPI_DW_MID_DMA bool "DMA support for DW SPI controller on Intel MID platform" - depends on SPI_DW_PCI && DW_DMAC_PCI + depends on X86 && SPI_DW_PCI && DW_DMAC_PCI config SPI_DW_MMIO tristate "Memory-mapped io interface driver for DW SPI core" @@ -499,6 +500,7 @@ config SPI_PXA2XX_PCI config SPI_ROCKCHIP tristate "Rockchip SPI controller driver" + depends on ARCH_ROCKCHIP || COMPILE_TEST help This selects a driver for Rockchip SPI controller. @@ -650,7 +652,7 @@ config SPI_TEGRA20_SLINK config SPI_THUNDERX tristate "Cavium ThunderX SPI controller" - depends on PCI && 64BIT && (ARM64 || COMPILE_TEST) + depends on PCI && 64BIT && (ARCH_THUNDER || COMPILE_TEST) help SPI host driver for the hardware found on Cavium ThunderX SOCs. @@ -680,7 +682,7 @@ config SPI_XCOMM config SPI_XILINX tristate "Xilinx SPI controller common module" - depends on HAS_IOMEM + depends on HAS_IOMEM && (ARCH_ZYNQ || ARCH_ZYNQMP) select SPI_BITBANG help This exposes the SPI controller IP from the Xilinx EDK. @@ -715,7 +717,7 @@ config SPI_XTENSA_XTFPGA config SPI_ZYNQMP_GQSPI tristate "Xilinx ZynqMP GQSPI controller" - depends on SPI_MASTER && HAS_DMA + depends on SPI_MASTER && HAS_DMA && ARCH_ZYNQMP help Enables Xilinx GQSPI controller driver for Zynq UltraScale+ MPSoC.