From patchwork Wed Sep 11 22:18:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 173639 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp1328591ilq; Wed, 11 Sep 2019 15:19:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5GuwpXFQV6x7FG5hPMDRtPBdZTeunVihp806SzbB5wM7YpiVkTaVW+73xIMUTF4amYD0I X-Received: by 2002:a05:6402:2039:: with SMTP id ay25mr38656914edb.273.1568240342511; Wed, 11 Sep 2019 15:19:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568240342; cv=none; d=google.com; s=arc-20160816; b=apnZLEP/U/Db0mAInkI3mPNRlwFbGZPyWotJfl2EIiEicto/EHoLVPnyzlo65pjn+q rmS5bMHwjOh1co14SrJx83dCU+f0GexKwAxCIcUu8SsYJCHMmFxOBiTFIqXx59CQf6tX 5WK8mtjmMoae4nAHRfRn7sfZ2yP6loFbSHaqvgf2mRgp3Zak6mP5eT7JNk8e/Nrs+2af r4hkg3Mpgv7sesmAXXk1kIelBthsfl7VcTyAPGsVkRHbm/Dj80nE9jtHt3Z5VvmngDeS VH8d3EnBukBJXuMbLCjcQerq8qZEO2+JV2ix6VYUEj5vUdItIdo2FgwbtTHcmqGkJLtO nxFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=wJpUcmtI6YKhyLGtOcvDAWFwk949XlDAmv2MKsxWP1U=; b=pmJ7dX6QQHOmra8fL+79/eV9qOJ9yrjmv2BeqeuCY0RNBIZIWLX29f1mHS2KITz9qJ ooaK8ZdkOjqKmqNUwnxNANwAXBECWih2P57Kh//GIy5Ob7c7bqvv4CDRrt3DLWGtdj6C U6niahH0PmzuZ4bV72mBLTyFuMj2ZzxB7A0+a9/k8dfYa1m9iQXx2NSqWv2M6UIQ630H /NLrLpTRHI0g2Co4jryuJhn39sEWSDgKXRGadv3ae4v+HJEbAfhCeCE8GDTzWoVzG7mo 7wMqnyJHU7TwWuk6XlTkMUJLeddeFRjQg9TtqpTZ7wSBg+OnhJrlMRkKZjPYnP/zdkPd P1Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DMkvTmwV; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fj16si12542526ejb.385.2019.09.11.15.19.02; Wed, 11 Sep 2019 15:19:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DMkvTmwV; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729004AbfIKWS7 (ORCPT + 5 others); Wed, 11 Sep 2019 18:18:59 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:43746 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728415AbfIKWS6 (ORCPT ); Wed, 11 Sep 2019 18:18:58 -0400 Received: by mail-pf1-f196.google.com with SMTP id d15so14562411pfo.10 for ; Wed, 11 Sep 2019 15:18:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=wJpUcmtI6YKhyLGtOcvDAWFwk949XlDAmv2MKsxWP1U=; b=DMkvTmwVBoZy7jqUIkAihodC8R4kqONrk3HGJetqqwTAcCDCcYKzpuoElpoaj8L4q3 kKAmLx32GZAY0DgrK7yzscFGAZzHV24sY6eDNwE0lp4RqIGvHit4bu1Vuqcm2NlyyYRU L3qjQuPWAX9cZEUzgkadODxqhF3eBa2y0DhN1H4UCagnFBKVrEgpQjE9I1NtUyfZ02fZ z1RWSyAFtOaxIDNIeSoIaPHqKn0dXGifT5otHgWpv1Gdudbav2hq4d8vK8e6HO+QxMlR BI1FLqp0jLwQ5iKEuprVYqwH/Wvo4kSjvvG/gaOi/KA8BPaM8SDl2B0A+FXXzETgvYz3 KgrQ== 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:in-reply-to :references:in-reply-to:references; bh=wJpUcmtI6YKhyLGtOcvDAWFwk949XlDAmv2MKsxWP1U=; b=HNpbxMlZ8bHfyRjBY3rzfO3cEo1KFi0Z3KKlaz83TzE7rWe/E53G/my44aKoviNA9Y h+73p/uktjot8rTrJqM+hf0vlfXRP5MSfDMff0UT0vVrMz1LqJUfb5n0DZYwpohAR4R3 depo1LZFfFSlmeCL8zeI5mUy3Vu7Sb10Sv/6WEp8Y7MsOWUyF/Kb84CrUPKSJMTQCe9p 5Yt6khLDk61gBS6MPt1m3ZGChlMelLWkarEVxZ3+ALwU+AWiP7fpfI3NNs/Gc4O044tZ tZrSP0i3L6c4/adf0cMDpKo5T2vjhXW3Qrlw6LL5xXQnn5S1iwvziYmPcjmgV7/9jvH1 in8g== X-Gm-Message-State: APjAAAUEvBkDcIqux6vk7rjN2JNAXfduMfdtRxdvWD/3yYA5vKzcaBz2 BKpl4VJWHz/xY5FHy6b7VOYcyQ== X-Received: by 2002:a63:2807:: with SMTP id o7mr35679328pgo.131.1568240337895; Wed, 11 Sep 2019 15:18:57 -0700 (PDT) Received: from localhost ([49.248.179.160]) by smtp.gmail.com with ESMTPSA id r13sm2806843pgp.63.2019.09.11.15.18.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Sep 2019 15:18:57 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, arm@kernel.org, Bartosz Golaszewski , Catalin Marinas , Kishon Vijay Abraham I , Liam Girdwood , Linus Walleij , Lorenzo Pieralisi , Mark Brown , Michael Turquette , Sebastian Reichel , Stephen Boyd , Will Deacon Cc: linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-pci@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH 1/4] arm64: Kconfig: Fix XGENE driver dependencies Date: Thu, 12 Sep 2019 03:48:45 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Push various XGENE drivers behind ARCH_XGENE dependency so that it doesn't get enabled by default on other platforms. Signed-off-by: Amit Kucheria --- arch/arm64/Kconfig.platforms | 3 +++ drivers/clk/Kconfig | 2 +- drivers/gpio/Kconfig | 1 + drivers/pci/controller/Kconfig | 1 + drivers/phy/Kconfig | 1 + drivers/power/reset/Kconfig | 2 +- 6 files changed, 8 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index 4778c775de1b..cdf4e452e34c 100644 --- a/arch/arm64/Kconfig.platforms +++ b/arch/arm64/Kconfig.platforms @@ -281,6 +281,9 @@ config ARCH_VULCAN config ARCH_XGENE bool "AppliedMicro X-Gene SOC Family" + select COMMON_CLK_XGENE + select PCI_XGENE + select GPIO_XGENE help This enables support for AppliedMicro X-Gene SOC Family diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig index 801fa1cd0321..9b2790d3f18a 100644 --- a/drivers/clk/Kconfig +++ b/drivers/clk/Kconfig @@ -225,7 +225,7 @@ config CLK_QORIQ config COMMON_CLK_XGENE bool "Clock driver for APM XGene SoC" - default ARCH_XGENE + depends on ARCH_XGENE depends on ARM64 || COMPILE_TEST ---help--- Sypport for the APM X-Gene SoC reference, PLL, and device clocks. diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index bb13c266c329..072c749c5c1f 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -580,6 +580,7 @@ config GPIO_VX855 config GPIO_XGENE bool "APM X-Gene GPIO controller support" + depends on ARCH_XGENE depends on ARM64 && OF_GPIO help This driver is to support the GPIO block within the APM X-Gene SoC diff --git a/drivers/pci/controller/Kconfig b/drivers/pci/controller/Kconfig index fe9f9f13ce11..44699f45784f 100644 --- a/drivers/pci/controller/Kconfig +++ b/drivers/pci/controller/Kconfig @@ -112,6 +112,7 @@ config PCIE_XILINX config PCI_XGENE bool "X-Gene PCIe controller" depends on ARM64 || COMPILE_TEST + depends on ARCH_XGENE depends on OF || (ACPI && PCI_QUIRKS) help Say Y here if you want internal PCI support on APM X-Gene SoC. diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig index 0263db2ac874..7c5eefecdabd 100644 --- a/drivers/phy/Kconfig +++ b/drivers/phy/Kconfig @@ -44,6 +44,7 @@ config PHY_PISTACHIO_USB config PHY_XGENE tristate "APM X-Gene 15Gbps PHY support" + depends on ARCH_XGENE depends on HAS_IOMEM && OF && (ARM64 || COMPILE_TEST) select GENERIC_PHY help diff --git a/drivers/power/reset/Kconfig b/drivers/power/reset/Kconfig index a564237278ff..651b763f80cd 100644 --- a/drivers/power/reset/Kconfig +++ b/drivers/power/reset/Kconfig @@ -181,7 +181,7 @@ config POWER_RESET_VEXPRESS config POWER_RESET_XGENE bool "APM SoC X-Gene reset driver" - depends on ARM64 + depends on ARCH_XGENE && ARM64 help Reboot support for the APM SoC X-Gene Eval boards.