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: 11141891 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 19AAE13BD for ; Wed, 11 Sep 2019 22:19:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E0A9D208E4 for ; Wed, 11 Sep 2019 22:19:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="DMkvTmwV" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729015AbfIKWTA (ORCPT ); Wed, 11 Sep 2019 18:19:00 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:46805 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728993AbfIKWTA (ORCPT ); Wed, 11 Sep 2019 18:19:00 -0400 Received: by mail-pg1-f193.google.com with SMTP id m3so12218999pgv.13 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=KhccTprDFL2yc4BHAh1v5V+YE47U3vufHjl0yy6CGCUHYuxFeVL3JRYstGBl8/0wWK yuvTrL1PcC37d1RiHn1iOHEQ+5VSgnjtY+BNQcr/EjfbsYERK+Fe7iMXsvis+U170h3z +uxcjSGkdNyNYsICr5hl1rmP4dEVBCHbooEoIaSRjhlJ2ql0jT5jarecgovWU/R38ohY uFWdX/AymMlm/pSaqR/LTtFnF+8zRl+rex0DLD0KNk7xk36gPyuijmjs/+pN9N93i2SJ m8tPl6w4dVyScMTw05GPtwGg85xGDdahmBM3/TqnM+eL0eSVnsQ/8iU6gDkmu19tOWBW +XKQ== X-Gm-Message-State: APjAAAXoZK8umtmRJQ/PDYcP+n6JHNl+SeDrDwyGcL9AweKxe0/VNT2Z n0bIqyIjdlQy6R4P/HiLJOkqzQ== X-Google-Smtp-Source: APXvYqzP0/gBNZzG2CFRFIE/UkaEI5NjGZqMp4m4/H9NRm7GUMMLKzapx1Z7TocuBDHfZe6TC2ck1g== 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-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@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(-) 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. From patchwork Wed Sep 11 22:18:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 11141895 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8AFA814E5 for ; Wed, 11 Sep 2019 22:19:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 67F1120CC7 for ; Wed, 11 Sep 2019 22:19:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Swe/IstE" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729191AbfIKWTH (ORCPT ); Wed, 11 Sep 2019 18:19:07 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:44663 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729094AbfIKWTG (ORCPT ); Wed, 11 Sep 2019 18:19:06 -0400 Received: by mail-pg1-f196.google.com with SMTP id i18so12231380pgl.11 for ; Wed, 11 Sep 2019 15:19:05 -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=2X3SRzIwnpnErNdvMpQKEQIE0nPz8iNvb6s2mmkqEds=; b=Swe/IstEy9pJgy/ebR3/loS/F6ULouZpNAU5NMAqHNylVvY3mNNAYA86S47/2tdJZd WhL6RXJs2HTYZjJf/1u5hRsPFPZDwLbJ1rKRh+ZuqFi7lWVF2c0cQKuhMhryOIltmXfo VnMRj/LeFqBgBI9QC6/OoUunbXEBEg0ebmry1bGY4S25ACVVx4TvuTFs2pJRPOrc2yzg nznWtz5O4489ZB7dlT5rF8uDp6/e08vlVO1GFK5zZCaGBPC4iTwYq84rt359mZJnMP+B oiy6sxWSDmSWSjNIaAlLZAbU9kGX6aMkw/nwNU8NRSOEblS36HObUny1W+IoD3t+5nX4 xjyw== 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=2X3SRzIwnpnErNdvMpQKEQIE0nPz8iNvb6s2mmkqEds=; b=WEwMG+HRPIwaMqePZsNeBFUrgA/GHBjJZx2Xte6fcCLoLbC/SJlv33Opr9o7IbAisb dugRLeUrCeSVSuLynm5rczfcz742q9eMwFilbilHURKPiQTyiSQFhbx8tc9pkSwiR69c aNX0GiGkIeg6PRek5ebinxbCDyHxAYm7Kl3b6kBb+8ETov/eotRIz4JevJUEe2m3BBB6 T1KXJ9fLSZUPFpuDU5OtLTK+azHk88I9MdsbFMM7WA8l0PYveZ0m6Tq/pyiwrWZCEeje 2gh1ltj0RtaejW/h+eqyNXw4355rBg4B8EnUS7fPdoy5n5GRJQ+2PqQb+jlvIOhMENXw ubrA== X-Gm-Message-State: APjAAAX2VKwryplgoAKB6kfV9XM9FTyj05DiCx4u6EOJaKsDCWH2Yea7 whMmrluc9SKQPDhOPfYlnrTGKA== X-Google-Smtp-Source: APXvYqw5tBXGpyCHobC9PqT+BPqZzA2y82ejBsAPKuGT1mvGwANpkp7rRrgoOvQbqobn6t1RI+V35w== X-Received: by 2002:a17:90a:37d1:: with SMTP id v75mr8187287pjb.33.1568240345437; Wed, 11 Sep 2019 15:19:05 -0700 (PDT) Received: from localhost ([49.248.179.160]) by smtp.gmail.com with ESMTPSA id 69sm30084787pfb.145.2019.09.11.15.19.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Sep 2019 15:19:04 -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 Subject: [PATCH 3/4] arm64: Kconfig: Fix VEXPRESS driver dependencies Date: Thu, 12 Sep 2019 03:48:47 +0530 Message-Id: <8f539b28c25d22b8f515c131cd6b24c309f7ca90.1568239378.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Push various VEXPRESS drivers behind ARCH_VEXPRESS dependency so that it doesn't get enabled by default on other platforms. Signed-off-by: Amit Kucheria --- drivers/bus/Kconfig | 2 +- drivers/clk/versatile/Kconfig | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/bus/Kconfig b/drivers/bus/Kconfig index d80e8d70bf10..b2b1beee9953 100644 --- a/drivers/bus/Kconfig +++ b/drivers/bus/Kconfig @@ -166,7 +166,7 @@ config UNIPHIER_SYSTEM_BUS config VEXPRESS_CONFIG bool "Versatile Express configuration bus" - default y if ARCH_VEXPRESS + depends on ARCH_VEXPRESS depends on ARM || ARM64 depends on OF select REGMAP diff --git a/drivers/clk/versatile/Kconfig b/drivers/clk/versatile/Kconfig index ac766855ba16..826750292c1e 100644 --- a/drivers/clk/versatile/Kconfig +++ b/drivers/clk/versatile/Kconfig @@ -5,8 +5,8 @@ config ICST config COMMON_CLK_VERSATILE bool "Clock driver for ARM Reference designs" depends on ARCH_INTEGRATOR || ARCH_REALVIEW || \ - ARCH_VERSATILE || ARCH_VEXPRESS || ARM64 || \ - COMPILE_TEST + ARCH_VERSATILE || ARCH_VEXPRESS || COMPILE_TEST + depends on ARM64 select REGMAP_MMIO ---help--- Supports clocking on ARM Reference designs: From patchwork Wed Sep 11 22:18:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 11141897 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B500916B1 for ; Wed, 11 Sep 2019 22:19:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9320220CC7 for ; Wed, 11 Sep 2019 22:19:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="a8PMTBBT" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729273AbfIKWTL (ORCPT ); Wed, 11 Sep 2019 18:19:11 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:36264 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728582AbfIKWTJ (ORCPT ); Wed, 11 Sep 2019 18:19:09 -0400 Received: by mail-pl1-f195.google.com with SMTP id f19so10775040plr.3 for ; Wed, 11 Sep 2019 15:19:09 -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=mMNl63FO67KUuEHw42vIWKlthSpMwd5FVOOXIHmqrU4=; b=a8PMTBBTeeZyu/Wvz6ibbwLc/1cJ7vElKoSkSXAji0+1n+9jR/t/r7x/pf8m+oNx7I 7DSzXISCFD+sD00yT2TicutThMC9mFxdIcPpLvxkcBseFcgNlCwSKCbVM20+jp4pQGu3 CnExwUjzYpA2YT+AfVkJr/xlkDxC8joLHCGhWZBITmmkqldtD8BD3W30lM3IXT6t6Qcc Euk0Yp8DJlwSseJv53H0WKPmfZNPCnVsL5Z/CotAsmdO2tFTKSizohPZrDC6a/rbfzmZ kQfygH+3vorPTAqv2ENiOYfY5POKMqh2gH6PW3WeAfwSm2RyHHQFxOjzkCHBMgw8Ly1k PNrA== 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=mMNl63FO67KUuEHw42vIWKlthSpMwd5FVOOXIHmqrU4=; b=P65jbBIFQCifqIbQshxxYPfm2/6yy2JMm1r01Eo1MDuV/CQ42KjAN2F0IAfw6FVkWg lPJBW6uSk3Y2GNFokwF18m2IhKDhq063nwpbmEWNELsfYQ7kmIMqTgA9PaHuTNTbYJIw vMyJIG0mJyKDciLKs1tMFCT3ZPfuFaBTGWbv6NX608+y+3gaqwt/a4/wqDXz+zbbskJI DV1R1BFW6HWbittdKgqGBR7Icwli0t9CpGtYZHhE3Hm8uq80vDWkHy4z8ol8lKkqaz0q 4CRXJW9gnUhoV1RcYIv9rTe+fFZB3eHmmj++U0lWgBsR8HrcagFqHvlvDNpXYLHz9am/ YHfw== X-Gm-Message-State: APjAAAVYfdYz/h1e36mBpobz5Ulk5P1bd6KjzlQwVuLSqdBmz+36Uhn/ 90OGUGucDhUnSq3nSNZQpt+rEUYNSpLorA== X-Google-Smtp-Source: APXvYqxywK/VqaJubZy+tpMXHI2hldjrJm9ASPz2i3rYysqWyhJf1sL0Mqz/b5O7hDlKl+2gVQIUJg== X-Received: by 2002:a17:902:8d81:: with SMTP id v1mr22729125plo.23.1568240348925; Wed, 11 Sep 2019 15:19:08 -0700 (PDT) Received: from localhost ([49.248.179.160]) by smtp.gmail.com with ESMTPSA id c2sm23999870pfd.66.2019.09.11.15.19.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Sep 2019 15:19:08 -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 Subject: [PATCH 4/4] arm64: Kconfig: Fix EXYNOS driver dependencies Date: Thu, 12 Sep 2019 03:48:48 +0530 Message-Id: <79755cb29b8c23709e346b5dd290481a36627648.1568239378.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Push various EXYNOS drivers behind ARCH_EXYNOS dependency so that it doesn't get enabled by default on other platforms. Signed-off-by: Amit Kucheria --- drivers/clk/Kconfig | 1 + drivers/regulator/Kconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig index 9b2790d3f18a..bdf164a7a7c5 100644 --- a/drivers/clk/Kconfig +++ b/drivers/clk/Kconfig @@ -194,6 +194,7 @@ config COMMON_CLK_ASPEED config COMMON_CLK_S2MPS11 tristate "Clock driver for S2MPS1X/S5M8767 MFD" + depends on ARCH_EXYNOS depends on MFD_SEC_CORE || COMPILE_TEST ---help--- This driver supports S2MPS11/S2MPS14/S5M8767 crystal oscillator diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig index b57093d7c01f..a4c4f01343fd 100644 --- a/drivers/regulator/Kconfig +++ b/drivers/regulator/Kconfig @@ -797,6 +797,7 @@ config REGULATOR_S2MPA01 config REGULATOR_S2MPS11 tristate "Samsung S2MPS11/13/14/15/S2MPU02 voltage regulator" + depends on ARCH_EXYNOS depends on MFD_SEC_CORE help This driver supports a Samsung S2MPS11/13/14/15/S2MPU02 voltage