From patchwork Fri Apr 14 09:06:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Legoll X-Patchwork-Id: 9680915 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 AF90460132 for ; Fri, 14 Apr 2017 09:07:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 98CAA28338 for ; Fri, 14 Apr 2017 09:07:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8B13428464; Fri, 14 Apr 2017 09:07:11 +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 3031028338 for ; Fri, 14 Apr 2017 09:07:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753456AbdDNJHK (ORCPT ); Fri, 14 Apr 2017 05:07:10 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:33420 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753349AbdDNJHJ (ORCPT ); Fri, 14 Apr 2017 05:07:09 -0400 Received: by mail-wr0-f194.google.com with SMTP id l28so11785210wre.0; Fri, 14 Apr 2017 02:07:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=pcpS7eM/ne9AV2THAQV7JgQ1DCPPlTmBZqS4ha9iwrw=; b=UumqWzY9zgq9qrZqdk0O6Xo7TuGkK2IIqWfiIrZeewXU6rmLg7mNeQyNX+D7Gv1nH8 R9861FdGgNnTJd7xrm8f70qUXADoMtsBdnmry+EBrP6jQZTJO6f3/nW/P4QbvuSRFU7G /WY+ih2uATg7RL7A+LQQxfhBLrY0KA41u3N29ZAjkxYL7cnhzLkRSVkx15yU7yG8vuQx ntSgjGFfZfKwsU12MddzwRHN9SyouOEPFbgTD6QR6RJR9oti8XcRcOPxr5bvDMIghyPw +i3zpCTJOMELMES1uN8GQVCTYZ84OgkZqywS+wq8SFGWE/ArpmXMAJQ/tZLJFbfGRdcv 3qPA== 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; bh=pcpS7eM/ne9AV2THAQV7JgQ1DCPPlTmBZqS4ha9iwrw=; b=Mie5w/YpucqL7Bf/0ilEjC2bywr8JEeec0LyVoNGYqLY2/46Gz8T9UvCp/0rdh+p8U fAGHntg/seF6l3QNP3rlEcmE9jaNsRPeSfn5WrHpIxI22L9OssE+jv7xztzcKzBHX62X iJ9oumFf4WThz1ELd4nR0nnOZrmwJAF/hAl/pOjmN1eDEfN185m7LJxLjRXdkm4u/57Y Yt3MHpw0UM37GYrquPWxM9rDniejxdsLiEXqDUAW7GDrYvkeJg9poVDYv9SxTOwZQfFa yBMCGUSV1+ZhH4qbbRUhQg72pNM3jFZvMFP9nQZrp7m+YYd6G5Lnnudj9LLBRlFyEeuX MCXQ== X-Gm-Message-State: AN3rC/7KEThc8klqxBHA40aIdZY7Bal4NzDQsgWfYZmiTNOeb1Wx7cky c2zBWgpH86YveBK3DjU= X-Received: by 10.223.174.131 with SMTP id y3mr6880059wrc.196.1492160827396; Fri, 14 Apr 2017 02:07:07 -0700 (PDT) Received: from localhost.localdomain (se167-2-88-172-169-60.fbx.proxad.net. [88.172.169.60]) by smtp.gmail.com with ESMTPSA id 24sm1601962wrw.46.2017.04.14.02.07.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Apr 2017 02:07:06 -0700 (PDT) From: Vincent Legoll To: linux-kernel@vger.kernel.org, atull@opensource.altera.com, moritz.fischer@ettus.com, linux-fpga@vger.kernel.org Cc: Vincent Legoll Subject: [PATCH] Make FPGA a menuconfig to ease disabling it all Date: Fri, 14 Apr 2017 11:06:56 +0200 Message-Id: <20170414090656.4523-1-vincent.legoll@gmail.com> X-Mailer: git-send-email 2.9.3 Sender: linux-fpga-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fpga@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP No need to get into the submenu to disable all FPGA-related config entries Signed-off-by: Vincent Legoll --- drivers/fpga/Kconfig | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/drivers/fpga/Kconfig b/drivers/fpga/Kconfig index ce861a2..fa1a95e 100644 --- a/drivers/fpga/Kconfig +++ b/drivers/fpga/Kconfig @@ -2,32 +2,30 @@ # FPGA framework configuration # -menu "FPGA Configuration Support" - -config FPGA +menuconfig FPGA tristate "FPGA Configuration Framework" help Say Y here if you want support for configuring FPGAs from the kernel. The FPGA framework adds a FPGA manager class and FPGA manager drivers. -if FPGA - config FPGA_REGION tristate "FPGA Region" - depends on OF && FPGA_BRIDGE + depends on FPGA && OF && FPGA_BRIDGE help FPGA Regions allow loading FPGA images under control of the Device Tree. config FPGA_MGR_SOCFPGA tristate "Altera SOCFPGA FPGA Manager" + depends on FPGA depends on ARCH_SOCFPGA || COMPILE_TEST help FPGA manager driver support for Altera SOCFPGA. config FPGA_MGR_SOCFPGA_A10 tristate "Altera SoCFPGA Arria10" + depends on FPGA depends on ARCH_SOCFPGA || COMPILE_TEST select REGMAP_MMIO help @@ -35,6 +33,7 @@ config FPGA_MGR_SOCFPGA_A10 config FPGA_MGR_ZYNQ_FPGA tristate "Xilinx Zynq FPGA" + depends on FPGA depends on ARCH_ZYNQ || COMPILE_TEST depends on HAS_DMA help @@ -42,27 +41,23 @@ config FPGA_MGR_ZYNQ_FPGA config FPGA_BRIDGE tristate "FPGA Bridge Framework" - depends on OF + depends on FPGA && OF help Say Y here if you want to support bridges connected between host processors and FPGAs or between FPGAs. config SOCFPGA_FPGA_BRIDGE tristate "Altera SoCFPGA FPGA Bridges" - depends on ARCH_SOCFPGA && FPGA_BRIDGE + depends on FPGA && ARCH_SOCFPGA && FPGA_BRIDGE help Say Y to enable drivers for FPGA bridges for Altera SOCFPGA devices. config ALTERA_FREEZE_BRIDGE tristate "Altera FPGA Freeze Bridge" - depends on ARCH_SOCFPGA && FPGA_BRIDGE + depends on FPGA && ARCH_SOCFPGA && FPGA_BRIDGE help Say Y to enable drivers for Altera FPGA Freeze bridges. A freeze bridge is a bridge that exists in the FPGA fabric to isolate one region of the FPGA from the busses while that region is being reprogrammed. - -endif # FPGA - -endmenu