From patchwork Fri Sep 15 09:19:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 723865 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 027BAEE644B for ; Fri, 15 Sep 2023 09:21:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232435AbjIOJVW (ORCPT ); Fri, 15 Sep 2023 05:21:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233445AbjIOJVN (ORCPT ); Fri, 15 Sep 2023 05:21:13 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB67F1FFE for ; Fri, 15 Sep 2023 02:21:04 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2b9d07a8d84so29721201fa.3 for ; Fri, 15 Sep 2023 02:21:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769663; x=1695374463; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=wbUDGne8XHRV8NpnbXLwkauduLPIsEvNE20ti9xIZAo=; b=qHKXOCtdWSatJUeWAKlJoCbr5r7Y8LyAFIan+8mz0Z1WGYPATAXIKWCWJmU6NqB5Ra uiB0JKZejD5ccVQFkzs2j1kBgo7ESMXEqVgcuaKZM72tP2iHsH2XdRCqPyXkhn06ky1C tugUbVEWQxaVmsQ40nWGXGeSMzVqe97OYaUWzxk94iFMx7YbLkvIFhBgPVpyCE0Ytvx0 2eG6iEdRq9uH/nXpyNhP1TgiEIUYaHH5fqEb6qzN46RewdSbGoNqKdruyb+bB7CoX82e 9RqfdRm7QN/ZqfHN8fPAhNzWppZ0iejqescs3LyE5JllVquq8U1zWQNpmIiGXQ0JmmH1 a8Rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769663; x=1695374463; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wbUDGne8XHRV8NpnbXLwkauduLPIsEvNE20ti9xIZAo=; b=f0hPH943E6eFoxv2n72lQA9ayJh082QFEJjoQ0ZL1ceROGBFkPZ5k2Z5mmSdH/ICx2 WZE0RV7IDtDUHDqNZxslPr5xEF4W3lY10JylJRQPJJb/6kci9yO0TpGEcBGFiiagzngz OlAeSUQz8FBalQIxK5VsBkOgNQMiRCNL8ngl6kz74P+bV7HOdKOQh9l14Yq7POhQIycq RBuH4ITMEfFT0Ve3P5jzPCYYDumBrz7kV3k1lgWgkMYYFQ8btc8dtALl6IH8/n70goj2 KcNGt7iKVdBNjI+WHVl0gnbjqFJk7aNaei1JNFXbM590U5XPX2LYEtrgodEVbdFaKdJn hVUQ== X-Gm-Message-State: AOJu0YziT/WRu5icz/tBPzEc7n04h6eGHkHpds8haTDL6a7LdM44nuyz pODmDtFcazZ8AN5v+CC9zR5olQ== X-Google-Smtp-Source: AGHT+IEsFFzgCYn8PouRFC8Fe+yd5/XaogKCqWlR4itAeqKHd4Y1JMjP5DV2XaM1YZLja2cku1VJnQ== X-Received: by 2002:a2e:740b:0:b0:2b9:5eae:814f with SMTP id p11-20020a2e740b000000b002b95eae814fmr1003250ljc.50.1694769663077; Fri, 15 Sep 2023 02:21:03 -0700 (PDT) Received: from uffe-tuxpro14.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id p8-20020a2e7408000000b002b9ec22d9fasm639376ljc.29.2023.09.15.02.21.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:02 -0700 (PDT) From: Ulf Hansson To: Arnd Bergmann , Olof Johansson Cc: Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Linus Walleij , Michal Simek , Nishanth Menon , Santosh Shilimkar , Tero Kristo , Tony Lindgren , Thierry Reding , Jonathan Hunter , Mikko Perttunen , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Walker Chen , Conor Dooley , Krzysztof Kozlowski , Alim Akhtar , Heiko Stuebner , Geert Uytterhoeven , Magnus Damm , Bjorn Andersson , Konrad Dybcio , Andy Gross , Matthias Brugger , AngeloGioacchino Del Regno , Shawn Guo , Sascha Hauer , Fabio Estevam , Florian Fainelli , Ray Jui , Scott Branden , Hector Martin , Sven Peter , Alyssa Rosenzweig , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Andreas Farber , Manivannan Sadhasivam Subject: [PATCH v2 01/17] pmdomain: Prepare to move Kconfig files into the pmdomain subsystem Date: Fri, 15 Sep 2023 11:19:47 +0200 Message-Id: <20230915092003.658361-2-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230915092003.658361-1-ulf.hansson@linaro.org> References: <20230915092003.658361-1-ulf.hansson@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Rather than having the various Kconfig files for the genpd providers sprinkled across subsystems, let's prepare to move them into the pmdomain subsystem along with the implementations. Signed-off-by: Ulf Hansson --- drivers/Kconfig | 2 ++ drivers/pmdomain/Kconfig | 4 ++++ 2 files changed, 6 insertions(+) create mode 100644 drivers/pmdomain/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index efb66e25fa2d..3aebffb2efe9 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -175,6 +175,8 @@ source "drivers/soundwire/Kconfig" source "drivers/soc/Kconfig" +source "drivers/pmdomain/Kconfig" + source "drivers/devfreq/Kconfig" source "drivers/extcon/Kconfig" diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig new file mode 100644 index 000000000000..ac77cf4271a7 --- /dev/null +++ b/drivers/pmdomain/Kconfig @@ -0,0 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0-only +menu "PM Domains" + +endmenu From patchwork Fri Sep 15 09:19:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 723447 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D271AEE644B for ; Fri, 15 Sep 2023 09:21:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233351AbjIOJVa (ORCPT ); Fri, 15 Sep 2023 05:21:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233467AbjIOJV3 (ORCPT ); Fri, 15 Sep 2023 05:21:29 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 737B1171C for ; Fri, 15 Sep 2023 02:21:18 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2bb9a063f26so30564221fa.2 for ; Fri, 15 Sep 2023 02:21:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769676; x=1695374476; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=r0f8HYWIP8RQszKUCt76U7MT1CQn8pw64XBqFbFs3p8=; b=GzG+AiI9F3ZPWv9UYjBKu54PB7wdgO1D2RQ6B2s+tjXiYhYs+Xd71yZ/JpG+06XDNv MQxGKZ6EkGZWNEHZhLnk5G5uzpevGZ+ngcwstSHx18/fKbeaN4Asc6NC9uFi8jeGrzud 5LYgbCx0mi6748YhoQb+FtqZXdjhJOumJLpOs37WXgIuSUbUAqvFV/hdbsH05FRdRvPS d4mGFOtYlCTSHaKCR1gCchjBS2TrBMJeFx9Iunp3fDi/MtSnKrnQV9ZRjcZYLH2q92wb Rzqg8KfvJHk0bKzVb3nnisbdv5VdxzawH4xOPID0DlxP2sXlM5jJXZGJGr+JIcse1Jrb 4qeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769676; x=1695374476; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=r0f8HYWIP8RQszKUCt76U7MT1CQn8pw64XBqFbFs3p8=; b=SdGzUgQVLZgL80c5QmpC7rcq+FxFNQhBRm30FeBM93VZNPboinFCmlaYcuAzlLvWez 9vrEJLufHfpZ9MryrCBXC+MORnyC2rvHW2nXBtPbJgCQ5GUrSWUIpv/CTCYFWAmrF5JV YqgXzjiUKjPlXnAKKkRz09l8mjEHKuOtWxa/Hw5t33ODL98M6/YlNNi8g5yjAQLVM7yt +5sLFYNGgdbs5SBfnnPKJiAPYmxDf20sM9eBUzG6hBHgy8Xgfo/dF1scGTSbRapF6TYS mTb1lEPYtt60PkptNwbvBHtkqqHCA7W7HM7XrkCCK15zezfa2aiVE6UIE9kiSh466ae7 hZxA== X-Gm-Message-State: AOJu0Yx7uK1yNQ8zeJms1tN1Xe9F91QWXKXstpv5HCkRGCf59B053h1y Gv5Yhxixag9PHKLDdyYpb/8wGQ== X-Google-Smtp-Source: AGHT+IF3jn2rX7BSo7/mQIQtEFNNUVozn4k4rgi9dwjpA3yU2noJTaFIESdGvNZ9WGO5sODrVSbXSw== X-Received: by 2002:a2e:8912:0:b0:2bb:b56b:f67e with SMTP id d18-20020a2e8912000000b002bbb56bf67emr1014952lji.19.1694769676813; Fri, 15 Sep 2023 02:21:16 -0700 (PDT) Received: from uffe-tuxpro14.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id p8-20020a2e7408000000b002b9ec22d9fasm639376ljc.29.2023.09.15.02.21.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:16 -0700 (PDT) From: Ulf Hansson To: Arnd Bergmann , Olof Johansson Cc: Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?q?Andreas_F=C3=A4rber?= , Manivannan Sadhasivam , linux-actions@lists.infradead.org Subject: [PATCH v2 02/17] pmdomain: actions: Move Kconfig file to the pmdomain subsystem Date: Fri, 15 Sep 2023 11:19:48 +0200 Message-Id: <20230915092003.658361-3-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230915092003.658361-1-ulf.hansson@linaro.org> References: <20230915092003.658361-1-ulf.hansson@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The Kconfig belongs closer to the corresponding implementation, hence let's move it from the soc subsystem to the pmdomain subsystem. Cc: "Andreas Färber" Cc: Manivannan Sadhasivam Cc: Signed-off-by: Ulf Hansson --- MAINTAINERS | 2 +- drivers/pmdomain/Kconfig | 2 ++ drivers/{soc => pmdomain}/actions/Kconfig | 0 drivers/soc/Kconfig | 1 - 4 files changed, 3 insertions(+), 2 deletions(-) rename drivers/{soc => pmdomain}/actions/Kconfig (100%) diff --git a/MAINTAINERS b/MAINTAINERS index f1c34484c9b2..6b491ebcf790 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1788,7 +1788,7 @@ F: drivers/irqchip/irq-owl-sirq.c F: drivers/mmc/host/owl-mmc.c F: drivers/net/ethernet/actions/ F: drivers/pinctrl/actions/* -F: drivers/soc/actions/ +F: drivers/pmdomain/actions/ F: include/dt-bindings/power/owl-* F: include/dt-bindings/reset/actions,* F: include/linux/soc/actions/ diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index ac77cf4271a7..e410c4b8071a 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -1,4 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-only menu "PM Domains" +source "drivers/pmdomain/actions/Kconfig" + endmenu diff --git a/drivers/soc/actions/Kconfig b/drivers/pmdomain/actions/Kconfig similarity index 100% rename from drivers/soc/actions/Kconfig rename to drivers/pmdomain/actions/Kconfig diff --git a/drivers/soc/Kconfig b/drivers/soc/Kconfig index d21e75d69294..8b46da40f107 100644 --- a/drivers/soc/Kconfig +++ b/drivers/soc/Kconfig @@ -1,7 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-only menu "SOC (System On Chip) specific Drivers" -source "drivers/soc/actions/Kconfig" source "drivers/soc/amlogic/Kconfig" source "drivers/soc/apple/Kconfig" source "drivers/soc/aspeed/Kconfig" From patchwork Fri Sep 15 09:19:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 723864 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D4095EE644C for ; Fri, 15 Sep 2023 09:21:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233488AbjIOJVd (ORCPT ); Fri, 15 Sep 2023 05:21:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233471AbjIOJVb (ORCPT ); Fri, 15 Sep 2023 05:21:31 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77F4D268A for ; Fri, 15 Sep 2023 02:21:19 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2b9338e4695so29054781fa.2 for ; Fri, 15 Sep 2023 02:21:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769678; x=1695374478; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=mtEkXdqn2AKXcoldY8q7JCFJLuqJ45MWZNi1FoZm5Ic=; b=X1M0eMvW4a64EH7sZyA8kK2N0GzNr59RGMBBZpIc3RcYtuAgmqrM5ETlT5QS8b6qQW sxvyMuzZU6BODd/a3a7SrYiDdE/kj9F41D3UzpKhXW85/6jdhUdRzNrAQ0F1zb+5Y2MW LIayGMeeYhENW74RSm4Or4tnOoeBCPjFOYHHnpshO9OkbN15OggrwpODilT/0J5zxj0p bajfXtmGZm/+HXRi27HzpR+CfwiuZdvZQFj7NfyDSgL//ri2Z0AgZaTeUnv1GqhiHb/V VxZXmZWv7mCiqkC3cEQ3x+24dXlVvmC4OLm1ELsSbBVc9pUd/DPN2ivf+IqTC399GnNK +JHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769678; x=1695374478; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mtEkXdqn2AKXcoldY8q7JCFJLuqJ45MWZNi1FoZm5Ic=; b=kQTs5UAJA8swp6LKW+HjWhuJZ7JWwoag9hn4zcOnJpuKAouRDsWcTH4CKj29jlPjak EDy5TJB4ZYbX81rJ4DIfUgQyHC/62GQqaQNukCqraDfpbqjxo9cteX2Ha3Bp+G8+vz5W ko6TxXTuh8UfGx17EDDKErGP7K66Oh23EKsLzWa2A0dVm5fl64J13xyJ2cSIg4Go8O7M RfGCTKLZ46HQpdjR6gErTPZmXCrG6U52nL2U+IfHWiFMlVFgjLZxYMJ2nUcWmiczFxHq tyckteqtSzID68LNFjgeW2M4PORdTApCNMXZUJvIYuPiRGvJSZwpLr14R+pnegmBxyav 7pwQ== X-Gm-Message-State: AOJu0YwJ3/qLPndHhpGU0o86nMyy+xwuZZfByWjPTJlbGIpGRhlTH7Cq 14wMj/EZP3jQoWgNNeP2ZZi/+w== X-Google-Smtp-Source: AGHT+IFx5SAj9k17uZVn4NqPVoiWz/nsVg3nOnzOEp+JkWLtAilL3VHRVFLGDM2LReEURtgNYbQOYg== X-Received: by 2002:a2e:9987:0:b0:2bc:daa2:7838 with SMTP id w7-20020a2e9987000000b002bcdaa27838mr1012473lji.19.1694769677864; Fri, 15 Sep 2023 02:21:17 -0700 (PDT) Received: from uffe-tuxpro14.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id p8-20020a2e7408000000b002b9ec22d9fasm639376ljc.29.2023.09.15.02.21.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:17 -0700 (PDT) From: Ulf Hansson To: Arnd Bergmann , Olof Johansson Cc: Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , linux-amlogic@lists.infradead.org Subject: [PATCH v2 03/17] pmdomain: amlogic: Move Kconfig options to the pmdomain subsystem Date: Fri, 15 Sep 2023 11:19:49 +0200 Message-Id: <20230915092003.658361-4-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230915092003.658361-1-ulf.hansson@linaro.org> References: <20230915092003.658361-1-ulf.hansson@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The Kconfig options belongs closer to the corresponding implementations, hence let's move them from the soc subsystem to the pmdomain subsystem. Cc: Neil Armstrong Cc: Kevin Hilman Cc: Jerome Brunet Cc: Martin Blumenstingl Cc: Acked-by: Neil Armstrong Signed-off-by: Ulf Hansson --- drivers/pmdomain/Kconfig | 1 + drivers/pmdomain/amlogic/Kconfig | 39 ++++++++++++++++++++++++++++++++ drivers/soc/amlogic/Kconfig | 35 ---------------------------- 3 files changed, 40 insertions(+), 35 deletions(-) create mode 100644 drivers/pmdomain/amlogic/Kconfig diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index e410c4b8071a..03c8991ad0fd 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -2,5 +2,6 @@ menu "PM Domains" source "drivers/pmdomain/actions/Kconfig" +source "drivers/pmdomain/amlogic/Kconfig" endmenu diff --git a/drivers/pmdomain/amlogic/Kconfig b/drivers/pmdomain/amlogic/Kconfig new file mode 100644 index 000000000000..2108729909b5 --- /dev/null +++ b/drivers/pmdomain/amlogic/Kconfig @@ -0,0 +1,39 @@ +# SPDX-License-Identifier: GPL-2.0-only +menu "Amlogic PM Domains" + +config MESON_GX_PM_DOMAINS + tristate "Amlogic Meson GX Power Domains driver" + depends on ARCH_MESON || COMPILE_TEST + depends on PM && OF + default ARCH_MESON + select PM_GENERIC_DOMAINS + select PM_GENERIC_DOMAINS_OF + help + Say yes to expose Amlogic Meson GX Power Domains as + Generic Power Domains. + +config MESON_EE_PM_DOMAINS + tristate "Amlogic Meson Everything-Else Power Domains driver" + depends on ARCH_MESON || COMPILE_TEST + depends on PM && OF + default ARCH_MESON + select PM_GENERIC_DOMAINS + select PM_GENERIC_DOMAINS_OF + help + Say yes to expose Amlogic Meson Everything-Else Power Domains as + Generic Power Domains. + +config MESON_SECURE_PM_DOMAINS + tristate "Amlogic Meson Secure Power Domains driver" + depends on (ARCH_MESON || COMPILE_TEST) && MESON_SM + depends on PM && OF + depends on HAVE_ARM_SMCCC + default ARCH_MESON + select PM_GENERIC_DOMAINS + select PM_GENERIC_DOMAINS_OF + help + Support for the power controller on Amlogic A1/C1 series. + Say yes to expose Amlogic Meson Secure Power Domains as Generic + Power Domains. + +endmenu diff --git a/drivers/soc/amlogic/Kconfig b/drivers/soc/amlogic/Kconfig index 174a9b011461..d08e398bdad4 100644 --- a/drivers/soc/amlogic/Kconfig +++ b/drivers/soc/amlogic/Kconfig @@ -26,41 +26,6 @@ config MESON_GX_SOCINFO Say yes to support decoding of Amlogic Meson GX SoC family information about the type, package and version. -config MESON_GX_PM_DOMAINS - tristate "Amlogic Meson GX Power Domains driver" - depends on ARCH_MESON || COMPILE_TEST - depends on PM && OF - default ARCH_MESON - select PM_GENERIC_DOMAINS - select PM_GENERIC_DOMAINS_OF - help - Say yes to expose Amlogic Meson GX Power Domains as - Generic Power Domains. - -config MESON_EE_PM_DOMAINS - tristate "Amlogic Meson Everything-Else Power Domains driver" - depends on ARCH_MESON || COMPILE_TEST - depends on PM && OF - default ARCH_MESON - select PM_GENERIC_DOMAINS - select PM_GENERIC_DOMAINS_OF - help - Say yes to expose Amlogic Meson Everything-Else Power Domains as - Generic Power Domains. - -config MESON_SECURE_PM_DOMAINS - tristate "Amlogic Meson Secure Power Domains driver" - depends on (ARCH_MESON || COMPILE_TEST) && MESON_SM - depends on PM && OF - depends on HAVE_ARM_SMCCC - default ARCH_MESON - select PM_GENERIC_DOMAINS - select PM_GENERIC_DOMAINS_OF - help - Support for the power controller on Amlogic A1/C1 series. - Say yes to expose Amlogic Meson Secure Power Domains as Generic - Power Domains. - config MESON_MX_SOCINFO bool "Amlogic Meson MX SoC Information driver" depends on (ARM && ARCH_MESON) || COMPILE_TEST From patchwork Fri Sep 15 09:19:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 723446 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D554CEE644C for ; Fri, 15 Sep 2023 09:21:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233533AbjIOJVe (ORCPT ); Fri, 15 Sep 2023 05:21:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233528AbjIOJVd (ORCPT ); Fri, 15 Sep 2023 05:21:33 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6976A1FFA for ; Fri, 15 Sep 2023 02:21:20 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id 38308e7fff4ca-2bfd3790178so11139641fa.2 for ; Fri, 15 Sep 2023 02:21:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769678; x=1695374478; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pIvhidofVsmyJzzhpGisC+BAHcAy8W3Roljgbbr6x7o=; b=G88d7+sk+YMjDXhUPDW6hhIuOTT2jRL/m4mkziCa8dy9rLoHrjZVER6a6MroO6Ud4z 3zAYXGr3T6FjE5a00T4GGKJmL3WAra4WxhIq0sJ0Lapf37ovcCGOEdG+TUx3qV0tmjgF Y1R/tRTh8sUjhB1xP/pRe/W+IM0yxsfQxjheEcPY1EdXOipG/2imrv4KK60DyIHFhukF d1DwN1w2Cei665VpFeaE6wHuKzFMgx/5TtW+HVHUdJfbgWN+xwxaesgZlEj/qMTjMcQl wj8eOuFf76QKt5EKcU+5GOz7/txxstlPpBsCZRH3YlGMBMtLFZ33skdb7SBrPnxpUOER yvRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769678; x=1695374478; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pIvhidofVsmyJzzhpGisC+BAHcAy8W3Roljgbbr6x7o=; b=KsVGzxqjltjX9PBCaDaHijBdM6wzEma1tvSKvshVIc4bN8FUX1f/JQeWbI8KmoqnLJ gj9Eu6iYDt1fnqvg+oVVSIG0h1Q3EbD2deEbXlu11/JQz1hd2ulgJS4bOOx66MzTdEUX 1hvEDLIWQaS9vq0IvrOmsxNNTchevL/FBcoD3NpsvxxvcYBgqfitTWnRMDB8rDRkYHZt IdjvfIX39zo0bY+S4shtE4+rOy0AeE0wWzKHwujYZ69XpqrV++lBRzeU97vHs6cHcxO8 zQcqfgMUFS/rHobbdv5o5Tw0QUZDRFBkmIzANZCYsIjjcrFzVWCpqluXcqhcbkeAFxXM daOw== X-Gm-Message-State: AOJu0YxkSWT2cLoGzjtuvmdMfptC3fxPEjNv/Jaxf4EHpu7pmqJZTN52 i+aEdfbDX/SOM2cEsE/LJboc4w== X-Google-Smtp-Source: AGHT+IHAQ1iI+KB4DwlX9IrPYGMVQNjUB4liAC9r/LpWZWzZwOnLogKuDYvJOCgw36npmE6DOTZBbQ== X-Received: by 2002:a2e:7010:0:b0:2bc:c750:d9be with SMTP id l16-20020a2e7010000000b002bcc750d9bemr1141692ljc.29.1694769678814; Fri, 15 Sep 2023 02:21:18 -0700 (PDT) Received: from uffe-tuxpro14.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id p8-20020a2e7408000000b002b9ec22d9fasm639376ljc.29.2023.09.15.02.21.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:18 -0700 (PDT) From: Ulf Hansson To: Arnd Bergmann , Olof Johansson Cc: Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Hector Martin , Sven Peter , Alyssa Rosenzweig , asahi@lists.linux.dev Subject: [PATCH v2 04/17] pmdomain: apple: Move Kconfig option to the pmdomain subsystem Date: Fri, 15 Sep 2023 11:19:50 +0200 Message-Id: <20230915092003.658361-5-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230915092003.658361-1-ulf.hansson@linaro.org> References: <20230915092003.658361-1-ulf.hansson@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The Kconfig option belongs closer to the corresponding implementation, hence let's move it from the soc subsystem to the pmdomain subsystem. Cc: Hector Martin Cc: Sven Peter Cc: Alyssa Rosenzweig Cc: Signed-off-by: Ulf Hansson Reviewed-by: Eric Curtin Reviewed-by: Neal Gompa --- drivers/pmdomain/Kconfig | 1 + drivers/pmdomain/apple/Kconfig | 18 ++++++++++++++++++ drivers/soc/apple/Kconfig | 13 ------------- 3 files changed, 19 insertions(+), 13 deletions(-) create mode 100644 drivers/pmdomain/apple/Kconfig diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index 03c8991ad0fd..482d9e970e14 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -3,5 +3,6 @@ menu "PM Domains" source "drivers/pmdomain/actions/Kconfig" source "drivers/pmdomain/amlogic/Kconfig" +source "drivers/pmdomain/apple/Kconfig" endmenu diff --git a/drivers/pmdomain/apple/Kconfig b/drivers/pmdomain/apple/Kconfig new file mode 100644 index 000000000000..12237cbcfaa9 --- /dev/null +++ b/drivers/pmdomain/apple/Kconfig @@ -0,0 +1,18 @@ +# SPDX-License-Identifier: GPL-2.0-only + +if ARCH_APPLE || COMPILE_TEST + +config APPLE_PMGR_PWRSTATE + bool "Apple SoC PMGR power state control" + depends on PM + select REGMAP + select MFD_SYSCON + select PM_GENERIC_DOMAINS + select RESET_CONTROLLER + default ARCH_APPLE + help + The PMGR block in Apple SoCs provides high-level power state + controls for SoC devices. This driver manages them through the + generic power domain framework, and also provides reset support. + +endif diff --git a/drivers/soc/apple/Kconfig b/drivers/soc/apple/Kconfig index a1596fefacff..eff486a77337 100644 --- a/drivers/soc/apple/Kconfig +++ b/drivers/soc/apple/Kconfig @@ -4,19 +4,6 @@ if ARCH_APPLE || COMPILE_TEST menu "Apple SoC drivers" -config APPLE_PMGR_PWRSTATE - bool "Apple SoC PMGR power state control" - depends on PM - select REGMAP - select MFD_SYSCON - select PM_GENERIC_DOMAINS - select RESET_CONTROLLER - default ARCH_APPLE - help - The PMGR block in Apple SoCs provides high-level power state - controls for SoC devices. This driver manages them through the - generic power domain framework, and also provides reset support. - config APPLE_RTKIT tristate "Apple RTKit co-processor IPC protocol" depends on MAILBOX From patchwork Fri Sep 15 09:19:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 723863 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 997D5EE644C for ; Fri, 15 Sep 2023 09:21:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233603AbjIOJVj (ORCPT ); Fri, 15 Sep 2023 05:21:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233529AbjIOJVd (ORCPT ); Fri, 15 Sep 2023 05:21:33 -0400 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD76B210A for ; Fri, 15 Sep 2023 02:21:21 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2bcd7a207f7so30216691fa.3 for ; Fri, 15 Sep 2023 02:21:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769680; x=1695374480; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=CP3f1sHM5Nj5iu5CRIA2O8JEDQIcldDJUxmizaosav4=; b=METGsl2OYLmWau3/hjxKQ/nTyQIpV0fRVgG926+BSQdKiMLEDNEmQW48g4p9bpQzga 8viEzWUK4hBS4FohAGXx/Cdm6uzyCoJNd56T1odXCwHDLTtROn9y8dA92lRvZpMwW/A+ U7DVwd7tpX0gbxLYuYuVdvlq0OM7LV7oTVMH3KQoJGs1OuBuHmJcrAAFfP015r7TLc26 NQJ6fnDXPC1Vu+oAsd8p6V4aNPFipcO6a+6NG6GN1mEHEVv8AagzqzVTqeNgu6iq3j6s eGRL1x92WhVpC7ypMsU40jfdTEGDbC7w8SC2JpD3FBnmNrxWNYjqcCaPwwYlSnXQ1jeE jtQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769680; x=1695374480; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CP3f1sHM5Nj5iu5CRIA2O8JEDQIcldDJUxmizaosav4=; b=F9fDMOwBrpRdy2yF/UuU9z+AEV811a3ySIvdO/+YJaUk2KqtIE1/oZBwTqAZrV+Aee 9bDHAXmJHAX2hGWSaWRPtcv3ZuLL0nyKtvRkx8AYHiCq8ec/qftI72nw0EwC+PFvmVi4 FHQsXVclYWxV0oFHcGRAPkHAd8lJNt6uMz2u9zUSyqG4KpDtPPgI19k6zZxPBuu90I+3 ezOcxkrseuTpHjgILwDqOAZZi6E7cBthdryAoVhlafEdoVkRJIPpieNdJOWhhDRvBw1+ oiuMwC+DzQd7EkV8CN1agDQlavjVm0clykgWlkaMGH/PIUXRtcjvbvUsRSLaYAf5bMjt QeMw== X-Gm-Message-State: AOJu0YzbhSt6ocefCzLb4ZLL2BQEHT6reYRNXyYfqduEhnThc08Ffc3T rnncfapbXC2boL6FOzF6qQ0A3Q== X-Google-Smtp-Source: AGHT+IHPlaacG/gOBVJctrl1sdlsMKaUAGjfwl65ptqYhYWAn3prdG0qyTiCr8K2Oo6HMHyZs5IEqQ== X-Received: by 2002:a2e:8887:0:b0:2b6:dc55:c3c7 with SMTP id k7-20020a2e8887000000b002b6dc55c3c7mr1141914lji.20.1694769679779; Fri, 15 Sep 2023 02:21:19 -0700 (PDT) Received: from uffe-tuxpro14.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id p8-20020a2e7408000000b002b9ec22d9fasm639376ljc.29.2023.09.15.02.21.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:19 -0700 (PDT) From: Ulf Hansson To: Arnd Bergmann , Olof Johansson Cc: Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Florian Fainelli , Ray Jui , Scott Branden , linux-mips@vger.kernel.org, linux-rpi-kernel@lists.infradead.org Subject: [PATCH v2 05/17] pmdomain: bcm: Move Kconfig options to the pmdomain subsystem Date: Fri, 15 Sep 2023 11:19:51 +0200 Message-Id: <20230915092003.658361-6-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230915092003.658361-1-ulf.hansson@linaro.org> References: <20230915092003.658361-1-ulf.hansson@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The Kconfig options belongs closer to the corresponding implementations, hence let's move them from the soc subsystem to the pmdomain subsystem. Cc: Florian Fainelli Cc: Ray Jui Cc: Scott Branden Cc: Cc: Signed-off-by: Ulf Hansson --- drivers/pmdomain/Kconfig | 1 + drivers/pmdomain/bcm/Kconfig | 46 ++++++++++++++++++++++++++++++++++++ drivers/soc/bcm/Kconfig | 42 -------------------------------- 3 files changed, 47 insertions(+), 42 deletions(-) create mode 100644 drivers/pmdomain/bcm/Kconfig diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index 482d9e970e14..ddc05d6af100 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -4,5 +4,6 @@ menu "PM Domains" source "drivers/pmdomain/actions/Kconfig" source "drivers/pmdomain/amlogic/Kconfig" source "drivers/pmdomain/apple/Kconfig" +source "drivers/pmdomain/bcm/Kconfig" endmenu diff --git a/drivers/pmdomain/bcm/Kconfig b/drivers/pmdomain/bcm/Kconfig new file mode 100644 index 000000000000..9311e90b7707 --- /dev/null +++ b/drivers/pmdomain/bcm/Kconfig @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: GPL-2.0-only +menu "Broadcom PM Domains" + +config BCM2835_POWER + bool "BCM2835 power domain driver" + depends on ARCH_BCM2835 || (COMPILE_TEST && OF) + default y if ARCH_BCM2835 + select PM_GENERIC_DOMAINS if PM + select RESET_CONTROLLER + help + This enables support for the BCM2835 power domains and reset + controller. Any usage of power domains by the Raspberry Pi + firmware means that Linux usage of the same power domain + must be accessed using the RASPBERRYPI_POWER driver + +config RASPBERRYPI_POWER + bool "Raspberry Pi power domain driver" + depends on ARCH_BCM2835 || (COMPILE_TEST && OF) + depends on RASPBERRYPI_FIRMWARE=y + select PM_GENERIC_DOMAINS if PM + help + This enables support for the RPi power domains which can be enabled + or disabled via the RPi firmware. + +config BCM_PMB + bool "Broadcom PMB (Power Management Bus) driver" + depends on ARCH_BCMBCA || (COMPILE_TEST && OF) + default ARCH_BCMBCA + select PM_GENERIC_DOMAINS if PM + help + This enables support for the Broadcom's PMB (Power Management Bus) that + is used for disabling and enabling SoC devices. + +if SOC_BCM63XX + +config BCM63XX_POWER + bool "BCM63xx power domain driver" + depends on BMIPS_GENERIC || (COMPILE_TEST && OF) + select PM_GENERIC_DOMAINS if PM + help + This enables support for the BCM63xx power domains controller on + BCM6318, BCM6328, BCM6362 and BCM63268 SoCs. + +endif # SOC_BCM63XX + +endmenu diff --git a/drivers/soc/bcm/Kconfig b/drivers/soc/bcm/Kconfig index f96906795fa6..406617aa3056 100644 --- a/drivers/soc/bcm/Kconfig +++ b/drivers/soc/bcm/Kconfig @@ -1,27 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-only menu "Broadcom SoC drivers" -config BCM2835_POWER - bool "BCM2835 power domain driver" - depends on ARCH_BCM2835 || (COMPILE_TEST && OF) - default y if ARCH_BCM2835 - select PM_GENERIC_DOMAINS if PM - select RESET_CONTROLLER - help - This enables support for the BCM2835 power domains and reset - controller. Any usage of power domains by the Raspberry Pi - firmware means that Linux usage of the same power domain - must be accessed using the RASPBERRYPI_POWER driver - -config RASPBERRYPI_POWER - bool "Raspberry Pi power domain driver" - depends on ARCH_BCM2835 || (COMPILE_TEST && OF) - depends on RASPBERRYPI_FIRMWARE=y - select PM_GENERIC_DOMAINS if PM - help - This enables support for the RPi power domains which can be enabled - or disabled via the RPi firmware. - config SOC_BCM63XX bool "Broadcom 63xx SoC drivers" depends on BMIPS_GENERIC || COMPILE_TEST @@ -42,27 +21,6 @@ config SOC_BRCMSTB If unsure, say N. -config BCM_PMB - bool "Broadcom PMB (Power Management Bus) driver" - depends on ARCH_BCMBCA || (COMPILE_TEST && OF) - default ARCH_BCMBCA - select PM_GENERIC_DOMAINS if PM - help - This enables support for the Broadcom's PMB (Power Management Bus) that - is used for disabling and enabling SoC devices. - -if SOC_BCM63XX - -config BCM63XX_POWER - bool "BCM63xx power domain driver" - depends on BMIPS_GENERIC || (COMPILE_TEST && OF) - select PM_GENERIC_DOMAINS if PM - help - This enables support for the BCM63xx power domains controller on - BCM6318, BCM6328, BCM6362 and BCM63268 SoCs. - -endif # SOC_BCM63XX - source "drivers/soc/bcm/brcmstb/Kconfig" endmenu From patchwork Fri Sep 15 09:19:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 723445 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5FA04EE644F for ; Fri, 15 Sep 2023 09:21:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233534AbjIOJVk (ORCPT ); Fri, 15 Sep 2023 05:21:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233570AbjIOJVi (ORCPT ); Fri, 15 Sep 2023 05:21:38 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 006F72708 for ; Fri, 15 Sep 2023 02:21:22 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2bf8b9c5ca0so30270991fa.0 for ; Fri, 15 Sep 2023 02:21:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769681; x=1695374481; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ZuAjnu1aml6mLrGf4NjQSS9NQOpzPUDHjaWJhb6ElQI=; b=s5TADoJZjIV1YQ5UMnw5KulHyneootBKndBYX6dx7y3ZX0ISe79Rt5vhPvcKEkEKET qTSHM6wY+pZOb7qdk4IEOuM6l+XggqfUu7f8m1EY02lXEUK5JEA9xarFhSsryARliEZz En6YLln0u0sOMD3Fm9ofTQIB+hpQL93cXH+CQ2PSotPpupBqdLj1RrIbWFJ+oPaSBYua se6eX/p4t4dF1F6IBuZJYGvle/1mgObf9W9Z378i0lp2VagfSF1gT+ZOVwkR6tR9PwpC mikAlJd0IElNb/NIbpgxGRpPwY/BgJrM3rVcnU5kYBbbhp6xMGVYW3Lr/Jr/vArBwIR3 6S/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769681; x=1695374481; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZuAjnu1aml6mLrGf4NjQSS9NQOpzPUDHjaWJhb6ElQI=; b=UnnMn/pa2tIr+gH93avezILn/iuPhyWg5hL1e3AxCUKJ2I7Ckhk5UfRsFD8jhyWPt6 3A9tv1afRbjdBcqaBj4w2KAY+OBlzswpHj1en0aYMsh8+6xW1NzC08P0rZoTnJYP7pNj /y8cKdb5obRx3UbSZ+3ZFj2VyOes4Ag8524IW87dQ8o3Zy1o1utdrMH2XRDo1jXzB6rQ /SEA3ISoxCMGVyg/Fw3fe6wvSR7P824F7UAkoKks3LEuKTjum9kzc+SZK3drcFB55HRh ZUhz2UqNRL7PTX3TbteOhH1b0uduh85FVDySLsmRF3yy/+Xl2vhIgkh17TIkjJNM2cxy apXw== X-Gm-Message-State: AOJu0YyIGStJL52t8MlZq8BNjSdVqElrRAajtgkqXyls05RjYibGSjct B6aJXFuwdwoCsetvMe23BuavKw== X-Google-Smtp-Source: AGHT+IHXR2CQ7Hv88Rx2+B5/Du0EO5B0lQBAb20t9J+UIEwpeQW6vZcWCwAfDkQD/PfD2zXRvkmw0A== X-Received: by 2002:a2e:880c:0:b0:2b6:cf64:7a8e with SMTP id x12-20020a2e880c000000b002b6cf647a8emr1038527ljh.19.1694769681271; Fri, 15 Sep 2023 02:21:21 -0700 (PDT) Received: from uffe-tuxpro14.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id p8-20020a2e7408000000b002b9ec22d9fasm639376ljc.29.2023.09.15.02.21.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:20 -0700 (PDT) From: Ulf Hansson To: Arnd Bergmann , Olof Johansson Cc: Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Shawn Guo , Sascha Hauer , Fabio Estevam , Peng Fan , kernel@pengutronix.de, linux-imx@nxp.com Subject: [PATCH v2 06/17] pmdomain: imx: Move Kconfig options to the pmdomain subsystem Date: Fri, 15 Sep 2023 11:19:52 +0200 Message-Id: <20230915092003.658361-7-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230915092003.658361-1-ulf.hansson@linaro.org> References: <20230915092003.658361-1-ulf.hansson@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The Kconfig options belongs closer to the corresponding implementations, hence let's move them from the soc- and firmware subsystem to the pmdomain subsystem. Cc: Shawn Guo Cc: Sascha Hauer Cc: Fabio Estevam Cc: Peng Fan Cc: Cc: Signed-off-by: Ulf Hansson Acked-by: Peng Fan --- drivers/firmware/imx/Kconfig | 6 ------ drivers/pmdomain/Kconfig | 1 + drivers/pmdomain/imx/Kconfig | 29 +++++++++++++++++++++++++++++ drivers/soc/imx/Kconfig | 19 ------------------- 4 files changed, 30 insertions(+), 25 deletions(-) create mode 100644 drivers/pmdomain/imx/Kconfig diff --git a/drivers/firmware/imx/Kconfig b/drivers/firmware/imx/Kconfig index c027d99f2a59..183613f82a11 100644 --- a/drivers/firmware/imx/Kconfig +++ b/drivers/firmware/imx/Kconfig @@ -22,9 +22,3 @@ config IMX_SCU This driver manages the IPC interface between host CPU and the SCU firmware running on M4. - -config IMX_SCU_PD - bool "IMX SCU Power Domain driver" - depends on IMX_SCU - help - The System Controller Firmware (SCFW) based power domain driver. diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index ddc05d6af100..e2c85f20a0c3 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -5,5 +5,6 @@ source "drivers/pmdomain/actions/Kconfig" source "drivers/pmdomain/amlogic/Kconfig" source "drivers/pmdomain/apple/Kconfig" source "drivers/pmdomain/bcm/Kconfig" +source "drivers/pmdomain/imx/Kconfig" endmenu diff --git a/drivers/pmdomain/imx/Kconfig b/drivers/pmdomain/imx/Kconfig new file mode 100644 index 000000000000..00203615c65e --- /dev/null +++ b/drivers/pmdomain/imx/Kconfig @@ -0,0 +1,29 @@ +# SPDX-License-Identifier: GPL-2.0-only +menu "i.MX PM Domains" + +config IMX_GPCV2_PM_DOMAINS + bool "i.MX GPCv2 PM domains" + depends on ARCH_MXC || (COMPILE_TEST && OF) + depends on PM + select PM_GENERIC_DOMAINS + select REGMAP_MMIO + default y if SOC_IMX7D + +config IMX8M_BLK_CTRL + bool + default SOC_IMX8M && IMX_GPCV2_PM_DOMAINS + depends on PM_GENERIC_DOMAINS + depends on COMMON_CLK + +config IMX9_BLK_CTRL + bool + default SOC_IMX9 && IMX_GPCV2_PM_DOMAINS + depends on PM_GENERIC_DOMAINS + +config IMX_SCU_PD + bool "IMX SCU Power Domain driver" + depends on IMX_SCU + help + The System Controller Firmware (SCFW) based power domain driver. + +endmenu diff --git a/drivers/soc/imx/Kconfig b/drivers/soc/imx/Kconfig index 76a4593baf0a..2a90ddd20104 100644 --- a/drivers/soc/imx/Kconfig +++ b/drivers/soc/imx/Kconfig @@ -1,14 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-only menu "i.MX SoC drivers" -config IMX_GPCV2_PM_DOMAINS - bool "i.MX GPCv2 PM domains" - depends on ARCH_MXC || (COMPILE_TEST && OF) - depends on PM - select PM_GENERIC_DOMAINS - select REGMAP_MMIO - default y if SOC_IMX7D - config SOC_IMX8M tristate "i.MX8M SoC family support" depends on ARCH_MXC || COMPILE_TEST @@ -28,15 +20,4 @@ config SOC_IMX9 help If you say yes here, you get support for the NXP i.MX9 family -config IMX8M_BLK_CTRL - bool - default SOC_IMX8M && IMX_GPCV2_PM_DOMAINS - depends on PM_GENERIC_DOMAINS - depends on COMMON_CLK - -config IMX9_BLK_CTRL - bool - default SOC_IMX9 && IMX_GPCV2_PM_DOMAINS - depends on PM_GENERIC_DOMAINS - endmenu From patchwork Fri Sep 15 09:19:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 723862 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 83FF7EE644B for ; Fri, 15 Sep 2023 09:21:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233663AbjIOJVw (ORCPT ); Fri, 15 Sep 2023 05:21:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233580AbjIOJVi (ORCPT ); Fri, 15 Sep 2023 05:21:38 -0400 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C203D270B for ; Fri, 15 Sep 2023 02:21:23 -0700 (PDT) Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2bcb0b973a5so29918941fa.3 for ; Fri, 15 Sep 2023 02:21:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769682; x=1695374482; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=1Os6bv0Dt3LeB6u/HS9K4uZVY2Yt4IFbSegYd0tcLec=; b=lJwaHkbZHaSzWzs2VvefBPHGWQa4zX05rV6Yj+V5gIwQ7EyL/cuQhgXGDWIA7v1VZL hjCLuzehSmkWLhAWgFn+n3HpGjzZKlPZC5W09STyutM28hv+Cu2IAgUjlivQKwCZ4kec VVy1Z8ctGvPG6HN5D35KISqR9PO52JfWY/SoRGN6DSv5s576IbL2kwf9IBKuPY4a46tZ gsRdkSLtKQZWhCTs18K84CTXcuPFL19Dg3nIhPMI4tR0hOQpNOjGXYuPMBTmM/ppjFYL luqkYToi2WPr2avKtX/4wefvcdt08EPdJ+UPIrxmBZTT4mx8U8ShewlZzanxCA72elMA U6eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769682; x=1695374482; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1Os6bv0Dt3LeB6u/HS9K4uZVY2Yt4IFbSegYd0tcLec=; b=BXBc8rW9BK7jlWNvGb8ze2Rqsa57n9jeoaT/zreQ13UAQMt00MH/QLp3y5o21f+pER 2Agsx9+HYYhsinfN5iaBHzqhoxenxMWzt5BbbKgdm2QXrnIr5DLuQVajFXT1Oslra3ur 0yC0FcFbSBkT+KjbPcFlBguUHcm/c/fTQoLGmBVc8O1xnakDO70l56rJPtd51Zmy51kO hJL39uJqUdEjgPZyaR31EE89C7PrVF+aH8gyadyA9b0/plNveonORaoL48K1Zf6ze2DC fYf3DDw6ju4PivFRCx9C7dlGUNZ5j/pul/TA7XxWtfqSfxV7ol7ajqcLG2Wf0O0ueknd Ymnw== X-Gm-Message-State: AOJu0Yx4EYAa+kFrl0Glm5n9GQkuJ/EK2fJkmxjReA9Ll1+o+Q1N3q7C 65/+2Q3oLJj2xhcd5lkzcX8r2w== X-Google-Smtp-Source: AGHT+IE/zpxUF1uu6BoDONyVpbXJeKhY3xFLEPlW57X6jw1Xtx2VwUTkRcH+jl50/wFagGsRc7Grsg== X-Received: by 2002:a2e:b001:0:b0:2bc:ee89:6976 with SMTP id y1-20020a2eb001000000b002bcee896976mr1063977ljk.24.1694769682154; Fri, 15 Sep 2023 02:21:22 -0700 (PDT) Received: from uffe-tuxpro14.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id p8-20020a2e7408000000b002b9ec22d9fasm639376ljc.29.2023.09.15.02.21.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:21 -0700 (PDT) From: Ulf Hansson To: Arnd Bergmann , Olof Johansson Cc: Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Matthias Brugger , AngeloGioacchino Del Regno , linux-mediatek@lists.infradead.org Subject: [PATCH v2 07/17] pmdomain: mediatek: Move Kconfig options to the pmdomain subsystem Date: Fri, 15 Sep 2023 11:19:53 +0200 Message-Id: <20230915092003.658361-8-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230915092003.658361-1-ulf.hansson@linaro.org> References: <20230915092003.658361-1-ulf.hansson@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The Kconfig options belongs closer to the corresponding implementations, hence let's move them from the soc subsystem to the pmdomain subsystem. Cc: Matthias Brugger Cc: AngeloGioacchino Del Regno Cc: Signed-off-by: Ulf Hansson --- drivers/pmdomain/Kconfig | 1 + drivers/pmdomain/mediatek/Kconfig | 29 +++++++++++++++++++++++++++++ drivers/soc/mediatek/Kconfig | 23 ----------------------- 3 files changed, 30 insertions(+), 23 deletions(-) create mode 100644 drivers/pmdomain/mediatek/Kconfig diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index e2c85f20a0c3..b1d9dc7d71e3 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -6,5 +6,6 @@ source "drivers/pmdomain/amlogic/Kconfig" source "drivers/pmdomain/apple/Kconfig" source "drivers/pmdomain/bcm/Kconfig" source "drivers/pmdomain/imx/Kconfig" +source "drivers/pmdomain/mediatek/Kconfig" endmenu diff --git a/drivers/pmdomain/mediatek/Kconfig b/drivers/pmdomain/mediatek/Kconfig new file mode 100644 index 000000000000..21305c4f17fe --- /dev/null +++ b/drivers/pmdomain/mediatek/Kconfig @@ -0,0 +1,29 @@ +# SPDX-License-Identifier: GPL-2.0-only + +menu "MediaTek PM Domains" + depends on ARCH_MEDIATEK || COMPILE_TEST + +config MTK_SCPSYS + bool "MediaTek SCPSYS Support" + default ARCH_MEDIATEK + depends on OF + select REGMAP + select MTK_INFRACFG + select PM_GENERIC_DOMAINS if PM + help + Say yes here to add support for the MediaTek SCPSYS power domain + driver. + +config MTK_SCPSYS_PM_DOMAINS + bool "MediaTek SCPSYS generic power domain" + default ARCH_MEDIATEK + depends on PM + select PM_GENERIC_DOMAINS + select REGMAP + help + Say y here to enable power domain support. + In order to meet high performance and low power requirements, the System + Control Processor System (SCPSYS) has several power management related + tasks in the system. + +endmenu diff --git a/drivers/soc/mediatek/Kconfig b/drivers/soc/mediatek/Kconfig index a88cf04fc803..0810b5b0c688 100644 --- a/drivers/soc/mediatek/Kconfig +++ b/drivers/soc/mediatek/Kconfig @@ -49,29 +49,6 @@ config MTK_REGULATOR_COUPLER default ARCH_MEDIATEK depends on REGULATOR -config MTK_SCPSYS - bool "MediaTek SCPSYS Support" - default ARCH_MEDIATEK - depends on OF - select REGMAP - select MTK_INFRACFG - select PM_GENERIC_DOMAINS if PM - help - Say yes here to add support for the MediaTek SCPSYS power domain - driver. - -config MTK_SCPSYS_PM_DOMAINS - bool "MediaTek SCPSYS generic power domain" - default ARCH_MEDIATEK - depends on PM - select PM_GENERIC_DOMAINS - select REGMAP - help - Say y here to enable power domain support. - In order to meet high performance and low power requirements, the System - Control Processor System (SCPSYS) has several power management related - tasks in the system. - config MTK_MMSYS tristate "MediaTek MMSYS Support" default ARCH_MEDIATEK From patchwork Fri Sep 15 09:19:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 723444 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2F03DEE6447 for ; Fri, 15 Sep 2023 09:21:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233678AbjIOJVx (ORCPT ); Fri, 15 Sep 2023 05:21:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233592AbjIOJVi (ORCPT ); Fri, 15 Sep 2023 05:21:38 -0400 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEACD1FFE for ; Fri, 15 Sep 2023 02:21:24 -0700 (PDT) Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2bfb1167277so30826751fa.2 for ; Fri, 15 Sep 2023 02:21:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769683; x=1695374483; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Ya9Nj5WT/J10Cs78iLoaa7AD4/TmGlT+hGtAjhqtW2Y=; b=mICIbkTQZWTjUM/ueObufJQd1Xd0gFyMCkTk+ZKxm3T/v2ijmfM0ci3IScsMa/hbfW Mu5Dt+ZLCkU60EmB0h8/toUu/VHNAI/9u4Xv6m4I1NVfo9PRNPgarUPpcTiPQSJbS+tH xRPdfAQI819gCxR1Ms0pYnCPllJ8muVNXrqWpND5mThk8LrBZPSLj9q6JVJul/XF7ZJZ ugocWdNS8XemIZyFOJ1gVriyUspzObx6BiFW2QVK1gMzxQ4Z4cDLdlP2hSmHFf+kKLJ0 bE8jyCLDdyR4Lhol3nW2ARcin55CfGxj4HBamvbxAO69DmOno059DSVkr3P4Cs34Jxot zNzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769683; x=1695374483; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ya9Nj5WT/J10Cs78iLoaa7AD4/TmGlT+hGtAjhqtW2Y=; b=Aes8JV7G130DBFngwXp1alGaUzfl3NKQ9akBXW8fLWzx0QpycFvZKPC1c2OWolx8Os BMiVMEcmC33iX11AXG48d9QtFvbMVY234lAG45uwiAF+hY3g6zCg2BcUyYRHDHNa/QL/ WRMsPCeEOGmKtSdoJyhU8vrGmznB4FR1/K3qbl4Xo+54EwqYoQwAmf2xbqFRhH6gWwZT 8Zr/8wgZ3s2ILZspG8acKlEF3pVIplSPFsEJtFC5C+JJFnYd5fP7mRRPo15rpyACvrQA E9jKp+N0WQ+kYz7Z+34r2Go9kLj3HGo/kcI4OHBDW9ZkOBaA9XlHI/NB0kgykLlNSgWf TGKA== X-Gm-Message-State: AOJu0YxF5HHnKT7bAvK1O5Winba1LYiiC79LU13FS+jzvHS2nT6HZzFf PKgk3IB84IUWQVuLtmuskrHhUw== X-Google-Smtp-Source: AGHT+IFSHJRoQx1Ctyhwv1uESkr0oLROtRLqXN8zd1BUs3GoaoZqPq2EXshY166uThtfcvsIXkDBgA== X-Received: by 2002:a2e:8019:0:b0:2bf:b142:bd13 with SMTP id j25-20020a2e8019000000b002bfb142bd13mr1075017ljg.4.1694769683203; Fri, 15 Sep 2023 02:21:23 -0700 (PDT) Received: from uffe-tuxpro14.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id p8-20020a2e7408000000b002b9ec22d9fasm639376ljc.29.2023.09.15.02.21.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:22 -0700 (PDT) From: Ulf Hansson To: Arnd Bergmann , Olof Johansson Cc: Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Bjorn Andersson , Konrad Dybcio , Andy Gross , linux-arm-msm@vger.kernel.org Subject: [PATCH v2 08/17] pmdomain: qcom: Move Kconfig options to the pmdomain subsystem Date: Fri, 15 Sep 2023 11:19:54 +0200 Message-Id: <20230915092003.658361-9-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230915092003.658361-1-ulf.hansson@linaro.org> References: <20230915092003.658361-1-ulf.hansson@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The Kconfig options belongs closer to the corresponding implementations, hence let's move them from the soc subsystem to the pmdomain subsystem. Cc: Bjorn Andersson Cc: Konrad Dybcio Cc: Andy Gross Cc: Acked-by: Konrad Dybcio Reviewed-by: Bjorn Andersson Signed-off-by: Ulf Hansson --- drivers/pmdomain/Kconfig | 1 + drivers/pmdomain/qcom/Kconfig | 41 +++++++++++++++++++++++++++++++++++ drivers/soc/qcom/Kconfig | 37 ------------------------------- 3 files changed, 42 insertions(+), 37 deletions(-) create mode 100644 drivers/pmdomain/qcom/Kconfig diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index b1d9dc7d71e3..c91fdd40163a 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -7,5 +7,6 @@ source "drivers/pmdomain/apple/Kconfig" source "drivers/pmdomain/bcm/Kconfig" source "drivers/pmdomain/imx/Kconfig" source "drivers/pmdomain/mediatek/Kconfig" +source "drivers/pmdomain/qcom/Kconfig" endmenu diff --git a/drivers/pmdomain/qcom/Kconfig b/drivers/pmdomain/qcom/Kconfig new file mode 100644 index 000000000000..3d3948eabef0 --- /dev/null +++ b/drivers/pmdomain/qcom/Kconfig @@ -0,0 +1,41 @@ +# SPDX-License-Identifier: GPL-2.0-only +menu "Qualcomm PM Domains" + +config QCOM_CPR + tristate "QCOM Core Power Reduction (CPR) support" + depends on ARCH_QCOM && HAS_IOMEM + select PM_OPP + select REGMAP + help + Say Y here to enable support for the CPR hardware found on Qualcomm + SoCs like QCS404. + + This driver populates CPU OPPs tables and makes adjustments to the + tables based on feedback from the CPR hardware. If you want to do + CPUfrequency scaling say Y here. + + To compile this driver as a module, choose M here: the module will + be called qcom-cpr + +config QCOM_RPMHPD + tristate "Qualcomm RPMh Power domain driver" + depends on QCOM_RPMH && QCOM_COMMAND_DB + help + QCOM RPMh Power domain driver to support power-domains with + performance states. The driver communicates a performance state + value to RPMh which then translates it into corresponding voltage + for the voltage rail. + +config QCOM_RPMPD + tristate "Qualcomm RPM Power domain driver" + depends on PM && OF + depends on QCOM_SMD_RPM + select PM_GENERIC_DOMAINS + select PM_GENERIC_DOMAINS_OF + help + QCOM RPM Power domain driver to support power-domains with + performance states. The driver communicates a performance state + value to RPM which then translates it into corresponding voltage + for the voltage rail. + +endmenu diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig index 715348869d04..b3634e10f6f5 100644 --- a/drivers/soc/qcom/Kconfig +++ b/drivers/soc/qcom/Kconfig @@ -26,22 +26,6 @@ config QCOM_COMMAND_DB resource on a RPM-hardened platform must use this database to get SoC specific identifier and information for the shared resources. -config QCOM_CPR - tristate "QCOM Core Power Reduction (CPR) support" - depends on ARCH_QCOM && HAS_IOMEM - select PM_OPP - select REGMAP - help - Say Y here to enable support for the CPR hardware found on Qualcomm - SoCs like QCS404. - - This driver populates CPU OPPs tables and makes adjustments to the - tables based on feedback from the CPR hardware. If you want to do - CPUfrequency scaling say Y here. - - To compile this driver as a module, choose M here: the module will - be called qcom-cpr - config QCOM_GENI_SE tristate "QCOM GENI Serial Engine Driver" depends on ARCH_QCOM || COMPILE_TEST @@ -157,27 +141,6 @@ config QCOM_RPMH of hardware components aggregate requests for these resources and help apply the aggregated state on the resource. -config QCOM_RPMHPD - tristate "Qualcomm RPMh Power domain driver" - depends on QCOM_RPMH && QCOM_COMMAND_DB - help - QCOM RPMh Power domain driver to support power-domains with - performance states. The driver communicates a performance state - value to RPMh which then translates it into corresponding voltage - for the voltage rail. - -config QCOM_RPMPD - tristate "Qualcomm RPM Power domain driver" - depends on PM && OF - depends on QCOM_SMD_RPM - select PM_GENERIC_DOMAINS - select PM_GENERIC_DOMAINS_OF - help - QCOM RPM Power domain driver to support power-domains with - performance states. The driver communicates a performance state - value to RPM which then translates it into corresponding voltage - for the voltage rail. - config QCOM_SMEM tristate "Qualcomm Shared Memory Manager (SMEM)" depends on ARCH_QCOM || COMPILE_TEST From patchwork Fri Sep 15 09:19:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 723861 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 43F93EE6452 for ; Fri, 15 Sep 2023 09:21:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233713AbjIOJVy (ORCPT ); Fri, 15 Sep 2023 05:21:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233529AbjIOJVk (ORCPT ); Fri, 15 Sep 2023 05:21:40 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4A391FDE for ; Fri, 15 Sep 2023 02:21:25 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2bb9a063f26so30565731fa.2 for ; Fri, 15 Sep 2023 02:21:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769684; x=1695374484; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=RlllPeCqZBCeZ/HSi6m8sJuTceIVvHBkX9Te06oKtDw=; b=wsIBXIGSWuwnQa3fFTkkwGYg2dbywjSU+DsmLut7effsEwCJKg2uVKBfaC910Rth+O U1RPzFUcltyYbmEPlj89Qytv9cUOnP0EGnFT6f/wHixqhh/cWKXj2kuHKdpeLYVE82YS DKs8IeamrDry0TUMIIVqlwf21Ex+HrOGEKo5z1S0KvG7hyOGZApDvZeE4U7OyY0Mn0hH e26Ab8rSshKFq/kf286KtXylnT6GdkfYhbM6Zi3odgWUnEOA1DsoeixnNQPG18xvPZ6H 7uZ0E1S8M+bGZXXfN78YIhxc9v+vws3+C0wagv3n6yQ01Nk3C3hWBb8hXsSCzXTwFyCD nx0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769684; x=1695374484; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RlllPeCqZBCeZ/HSi6m8sJuTceIVvHBkX9Te06oKtDw=; b=vpmaIceXLRZyCXxLQuZPJppK0csB+ekNMugkKWn441drjDCjr82WYI2JsuzYKBsfbP JWf9cPUAB5d84zqIzB13hiXD0Dv/QLbVA2ftSAevnKadlj66mqVmjeKwcfhD0ZQecUBq TzaZHGPsthoa0AJdoe57jPpniRf50oWPqFH5EG8MTbu0OHFJchGUgTfJ9NxZiVFSzWfL FqHa4+QB3DxEBHNqIAXonpC6QQWpz1A0K1yQv72uaYIA9PwQeUFkl3pEt2sNNhepN/mU kJzHN7bpGlnaH6frzLMl+J8Zleri5FleCyHWHNW2DBMtS3h5SH5tdttKXFXtywcAaAr2 Ge9w== X-Gm-Message-State: AOJu0Yyro67g2Setj76USjk9Pzpggi/noEQS1DNVAi9BVUTZ9mG4RyNh RN6oqr1d4obHDfWmH3m4h9Sd1A== X-Google-Smtp-Source: AGHT+IFJOzBhngeSqkEhAWTE2XBVBalsWjDoXj+N6Sl+ZI+MtDDE8yKWXfVhjl23K2P9yiLEg9+MBQ== X-Received: by 2002:a2e:8784:0:b0:2bc:d993:bdaa with SMTP id n4-20020a2e8784000000b002bcd993bdaamr1084334lji.18.1694769684153; Fri, 15 Sep 2023 02:21:24 -0700 (PDT) Received: from uffe-tuxpro14.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id p8-20020a2e7408000000b002b9ec22d9fasm639376ljc.29.2023.09.15.02.21.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:23 -0700 (PDT) From: Ulf Hansson To: Arnd Bergmann , Olof Johansson Cc: Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven , Magnus Damm , linux-renesas-soc@vger.kernel.org Subject: [PATCH v2 09/17] pmdomain: renesas: Move Kconfig options to the pmdomain subsystem Date: Fri, 15 Sep 2023 11:19:55 +0200 Message-Id: <20230915092003.658361-10-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230915092003.658361-1-ulf.hansson@linaro.org> References: <20230915092003.658361-1-ulf.hansson@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The Kconfig options belongs closer to the corresponding implementations, hence let's move them from the soc subsystem to the pmdomain subsystem. Cc: Geert Uytterhoeven Cc: Magnus Damm Cc: Reviewed-by: Geert Uytterhoeven Acked-by: Geert Uytterhoeven Signed-off-by: Ulf Hansson --- drivers/pmdomain/Kconfig | 1 + drivers/pmdomain/renesas/Kconfig | 109 +++++++++++++++++++++++++++++++ drivers/soc/renesas/Kconfig | 105 ----------------------------- 3 files changed, 110 insertions(+), 105 deletions(-) create mode 100644 drivers/pmdomain/renesas/Kconfig diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index c91fdd40163a..0a75a17f2f3a 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -8,5 +8,6 @@ source "drivers/pmdomain/bcm/Kconfig" source "drivers/pmdomain/imx/Kconfig" source "drivers/pmdomain/mediatek/Kconfig" source "drivers/pmdomain/qcom/Kconfig" +source "drivers/pmdomain/renesas/Kconfig" endmenu diff --git a/drivers/pmdomain/renesas/Kconfig b/drivers/pmdomain/renesas/Kconfig new file mode 100644 index 000000000000..80bf2cf8b60e --- /dev/null +++ b/drivers/pmdomain/renesas/Kconfig @@ -0,0 +1,109 @@ +# SPDX-License-Identifier: GPL-2.0 +if SOC_RENESAS + +config SYSC_RCAR + bool "System Controller support for R-Car" if COMPILE_TEST + +config SYSC_RCAR_GEN4 + bool "System Controller support for R-Car Gen4" if COMPILE_TEST + +config SYSC_R8A77995 + bool "System Controller support for R-Car D3" if COMPILE_TEST + select SYSC_RCAR + +config SYSC_R8A7794 + bool "System Controller support for R-Car E2" if COMPILE_TEST + select SYSC_RCAR + +config SYSC_R8A77990 + bool "System Controller support for R-Car E3" if COMPILE_TEST + select SYSC_RCAR + +config SYSC_R8A7779 + bool "System Controller support for R-Car H1" if COMPILE_TEST + select SYSC_RCAR + +config SYSC_R8A7790 + bool "System Controller support for R-Car H2" if COMPILE_TEST + select SYSC_RCAR + +config SYSC_R8A7795 + bool "System Controller support for R-Car H3" if COMPILE_TEST + select SYSC_RCAR + +config SYSC_R8A7791 + bool "System Controller support for R-Car M2-W/N" if COMPILE_TEST + select SYSC_RCAR + +config SYSC_R8A77965 + bool "System Controller support for R-Car M3-N" if COMPILE_TEST + select SYSC_RCAR + +config SYSC_R8A77960 + bool "System Controller support for R-Car M3-W" if COMPILE_TEST + select SYSC_RCAR + +config SYSC_R8A77961 + bool "System Controller support for R-Car M3-W+" if COMPILE_TEST + select SYSC_RCAR + +config SYSC_R8A779F0 + bool "System Controller support for R-Car S4-8" if COMPILE_TEST + select SYSC_RCAR_GEN4 + +config SYSC_R8A7792 + bool "System Controller support for R-Car V2H" if COMPILE_TEST + select SYSC_RCAR + +config SYSC_R8A77980 + bool "System Controller support for R-Car V3H" if COMPILE_TEST + select SYSC_RCAR + +config SYSC_R8A77970 + bool "System Controller support for R-Car V3M" if COMPILE_TEST + select SYSC_RCAR + +config SYSC_R8A779A0 + bool "System Controller support for R-Car V3U" if COMPILE_TEST + select SYSC_RCAR_GEN4 + +config SYSC_R8A779G0 + bool "System Controller support for R-Car V4H" if COMPILE_TEST + select SYSC_RCAR_GEN4 + +config SYSC_RMOBILE + bool "System Controller support for R-Mobile" if COMPILE_TEST + +config SYSC_R8A77470 + bool "System Controller support for RZ/G1C" if COMPILE_TEST + select SYSC_RCAR + +config SYSC_R8A7745 + bool "System Controller support for RZ/G1E" if COMPILE_TEST + select SYSC_RCAR + +config SYSC_R8A7742 + bool "System Controller support for RZ/G1H" if COMPILE_TEST + select SYSC_RCAR + +config SYSC_R8A7743 + bool "System Controller support for RZ/G1M" if COMPILE_TEST + select SYSC_RCAR + +config SYSC_R8A774C0 + bool "System Controller support for RZ/G2E" if COMPILE_TEST + select SYSC_RCAR + +config SYSC_R8A774E1 + bool "System Controller support for RZ/G2H" if COMPILE_TEST + select SYSC_RCAR + +config SYSC_R8A774A1 + bool "System Controller support for RZ/G2M" if COMPILE_TEST + select SYSC_RCAR + +config SYSC_R8A774B1 + bool "System Controller support for RZ/G2N" if COMPILE_TEST + select SYSC_RCAR + +endif diff --git a/drivers/soc/renesas/Kconfig b/drivers/soc/renesas/Kconfig index 5a75ab64d1ed..650f4dd96dec 100644 --- a/drivers/soc/renesas/Kconfig +++ b/drivers/soc/renesas/Kconfig @@ -350,109 +350,4 @@ config PWC_RZV2M config RST_RCAR bool "Reset Controller support for R-Car" if COMPILE_TEST -config SYSC_RCAR - bool "System Controller support for R-Car" if COMPILE_TEST - -config SYSC_RCAR_GEN4 - bool "System Controller support for R-Car Gen4" if COMPILE_TEST - -config SYSC_R8A77995 - bool "System Controller support for R-Car D3" if COMPILE_TEST - select SYSC_RCAR - -config SYSC_R8A7794 - bool "System Controller support for R-Car E2" if COMPILE_TEST - select SYSC_RCAR - -config SYSC_R8A77990 - bool "System Controller support for R-Car E3" if COMPILE_TEST - select SYSC_RCAR - -config SYSC_R8A7779 - bool "System Controller support for R-Car H1" if COMPILE_TEST - select SYSC_RCAR - -config SYSC_R8A7790 - bool "System Controller support for R-Car H2" if COMPILE_TEST - select SYSC_RCAR - -config SYSC_R8A7795 - bool "System Controller support for R-Car H3" if COMPILE_TEST - select SYSC_RCAR - -config SYSC_R8A7791 - bool "System Controller support for R-Car M2-W/N" if COMPILE_TEST - select SYSC_RCAR - -config SYSC_R8A77965 - bool "System Controller support for R-Car M3-N" if COMPILE_TEST - select SYSC_RCAR - -config SYSC_R8A77960 - bool "System Controller support for R-Car M3-W" if COMPILE_TEST - select SYSC_RCAR - -config SYSC_R8A77961 - bool "System Controller support for R-Car M3-W+" if COMPILE_TEST - select SYSC_RCAR - -config SYSC_R8A779F0 - bool "System Controller support for R-Car S4-8" if COMPILE_TEST - select SYSC_RCAR_GEN4 - -config SYSC_R8A7792 - bool "System Controller support for R-Car V2H" if COMPILE_TEST - select SYSC_RCAR - -config SYSC_R8A77980 - bool "System Controller support for R-Car V3H" if COMPILE_TEST - select SYSC_RCAR - -config SYSC_R8A77970 - bool "System Controller support for R-Car V3M" if COMPILE_TEST - select SYSC_RCAR - -config SYSC_R8A779A0 - bool "System Controller support for R-Car V3U" if COMPILE_TEST - select SYSC_RCAR_GEN4 - -config SYSC_R8A779G0 - bool "System Controller support for R-Car V4H" if COMPILE_TEST - select SYSC_RCAR_GEN4 - -config SYSC_RMOBILE - bool "System Controller support for R-Mobile" if COMPILE_TEST - -config SYSC_R8A77470 - bool "System Controller support for RZ/G1C" if COMPILE_TEST - select SYSC_RCAR - -config SYSC_R8A7745 - bool "System Controller support for RZ/G1E" if COMPILE_TEST - select SYSC_RCAR - -config SYSC_R8A7742 - bool "System Controller support for RZ/G1H" if COMPILE_TEST - select SYSC_RCAR - -config SYSC_R8A7743 - bool "System Controller support for RZ/G1M" if COMPILE_TEST - select SYSC_RCAR - -config SYSC_R8A774C0 - bool "System Controller support for RZ/G2E" if COMPILE_TEST - select SYSC_RCAR - -config SYSC_R8A774E1 - bool "System Controller support for RZ/G2H" if COMPILE_TEST - select SYSC_RCAR - -config SYSC_R8A774A1 - bool "System Controller support for RZ/G2M" if COMPILE_TEST - select SYSC_RCAR - -config SYSC_R8A774B1 - bool "System Controller support for RZ/G2N" if COMPILE_TEST - select SYSC_RCAR - endif # SOC_RENESAS From patchwork Fri Sep 15 09:19:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 723443 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8054FEE6450 for ; Fri, 15 Sep 2023 09:21:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233656AbjIOJVy (ORCPT ); Fri, 15 Sep 2023 05:21:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233655AbjIOJVw (ORCPT ); Fri, 15 Sep 2023 05:21:52 -0400 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1A5E2121 for ; Fri, 15 Sep 2023 02:21:26 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2bfbd7d49e7so30482991fa.1 for ; Fri, 15 Sep 2023 02:21:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769685; x=1695374485; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=VKisBqk8Z2ap1nSKbct53Lj3iZDRshdX+0gS7XeCa7I=; b=cBAxrWMImUdlcroirPosqGC/rKOEGd/g+yMgI1Y7OYLmZzy+8JkKHF8i3OrT9fBPBd AX8bHqdoFEkrhiwgIF8PqRVVnJf2+YjQ2kGVBdMsJJIm/b3muUx1PX1QyWZGouIdkWGx z/1nFXZJ/v7QLq3Do7yR5vABMhqNwSSAmE7RMx44gaI0FW8r2CT5ujAqK555O2uyIufH q8iaqQTnraBEbfZI8EgS/a/Ng/bNXRXnjN60JrPMvrkr2Dbu+TZbPDF6Pg8mLd1ZGrvU 16QX6LGraVKvprjmMihEMoJ9GAyBY+hvxMbAprcydthgRkZNljEehDRgIR0R0OKCmy32 jtxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769685; x=1695374485; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VKisBqk8Z2ap1nSKbct53Lj3iZDRshdX+0gS7XeCa7I=; b=w5VgXLMnlxLH+uV2nJt0j6fcQontgPNdC849s+1H/t5al2C1gy8Jh4r/hh7VvagkrK jYBV4X5nQmV1wggtSzO3HCrdysjkhGYJG7xUvfJZyaRBUR40DtsT08BcsihS1TUEsZYe FtogSlS3EAxKTw4U7RPrHjTpIfmV/37KzzGV1+a0hvLkd9Eh0i0FmzeOwO4BYcul+wrx x9XGR3ryFkwNN132rl2OVSZqVnjnJCB803T4DcWYQxp4kAWRtrqpM+szSBUz7rhUQgQo CMvd6L8j7Vj+HqNdHZTZYLV98WMyEKB1icPdLmR46klBmyLPJw/VIPm0ySCsQh78PenR ZMHA== X-Gm-Message-State: AOJu0Yw1Gu+m4egnS+yoWV0M3sWrfDbPV14mAGySb7TDPqQWl9SdCTkf 1I07RF3KBl8aF9HbQr1WAkjNyA== X-Google-Smtp-Source: AGHT+IGwwqHwyBASzYObjimxH00Ydcl+lAjOoi91ePvVUL0yYYiPtovN11NZd4EAB/QxxEpm7+DHfg== X-Received: by 2002:a2e:8055:0:b0:2bc:39f5:ecb4 with SMTP id p21-20020a2e8055000000b002bc39f5ecb4mr1074596ljg.25.1694769685101; Fri, 15 Sep 2023 02:21:25 -0700 (PDT) Received: from uffe-tuxpro14.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id p8-20020a2e7408000000b002b9ec22d9fasm639376ljc.29.2023.09.15.02.21.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:24 -0700 (PDT) From: Ulf Hansson To: Arnd Bergmann , Olof Johansson Cc: Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Heiko Stuebner , linux-rockchip@lists.infradead.org Subject: [PATCH v2 10/17] pmdomain: rockchip: Move Kconfig option to the pmdomain subsystem Date: Fri, 15 Sep 2023 11:19:56 +0200 Message-Id: <20230915092003.658361-11-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230915092003.658361-1-ulf.hansson@linaro.org> References: <20230915092003.658361-1-ulf.hansson@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The Kconfig option belongs closer to the corresponding implementation, hence let's move it from the soc subsystem to the pmdomain subsystem. Cc: Heiko Stuebner Cc: Signed-off-by: Ulf Hansson --- drivers/pmdomain/Kconfig | 1 + drivers/pmdomain/rockchip/Kconfig | 16 ++++++++++++++++ drivers/soc/rockchip/Kconfig | 12 ------------ 3 files changed, 17 insertions(+), 12 deletions(-) create mode 100644 drivers/pmdomain/rockchip/Kconfig diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index 0a75a17f2f3a..8afe69251dd2 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -9,5 +9,6 @@ source "drivers/pmdomain/imx/Kconfig" source "drivers/pmdomain/mediatek/Kconfig" source "drivers/pmdomain/qcom/Kconfig" source "drivers/pmdomain/renesas/Kconfig" +source "drivers/pmdomain/rockchip/Kconfig" endmenu diff --git a/drivers/pmdomain/rockchip/Kconfig b/drivers/pmdomain/rockchip/Kconfig new file mode 100644 index 000000000000..b0d70f1a8439 --- /dev/null +++ b/drivers/pmdomain/rockchip/Kconfig @@ -0,0 +1,16 @@ +# SPDX-License-Identifier: GPL-2.0-only +if ARCH_ROCKCHIP || COMPILE_TEST + +config ROCKCHIP_PM_DOMAINS + bool "Rockchip generic power domain" + depends on PM + select PM_GENERIC_DOMAINS + help + Say y here to enable power domain support. + In order to meet high performance and low power requirements, a power + management unit is designed or saving power when RK3288 in low power + mode. The RK3288 PMU is dedicated for managing the power of the whole chip. + + If unsure, say N. + +endif diff --git a/drivers/soc/rockchip/Kconfig b/drivers/soc/rockchip/Kconfig index aff2f7e95237..785f60c6f3ad 100644 --- a/drivers/soc/rockchip/Kconfig +++ b/drivers/soc/rockchip/Kconfig @@ -22,18 +22,6 @@ config ROCKCHIP_IODOMAIN necessary for the io domain setting of the SoC to match the voltage supplied by the regulators. -config ROCKCHIP_PM_DOMAINS - bool "Rockchip generic power domain" - depends on PM - select PM_GENERIC_DOMAINS - help - Say y here to enable power domain support. - In order to meet high performance and low power requirements, a power - management unit is designed or saving power when RK3288 in low power - mode. The RK3288 PMU is dedicated for managing the power of the whole chip. - - If unsure, say N. - config ROCKCHIP_DTPM tristate "Rockchip DTPM hierarchy" depends on DTPM && m From patchwork Fri Sep 15 09:19:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 723860 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5BE6BEE6453 for ; Fri, 15 Sep 2023 09:21:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233680AbjIOJV4 (ORCPT ); Fri, 15 Sep 2023 05:21:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233673AbjIOJVx (ORCPT ); Fri, 15 Sep 2023 05:21:53 -0400 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06AD8271D for ; Fri, 15 Sep 2023 02:21:27 -0700 (PDT) Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2b962535808so30852661fa.0 for ; Fri, 15 Sep 2023 02:21:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769686; x=1695374486; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=lxVrkiCAkoIq59ofHyv2OHqXSOCmWARXvwgAt/o802g=; b=Gx6kcamkcQfFh1/lEF6b1MwtdgJcqz8lXI/AqDOhLDIiJD1AT+0J/OsgIQ9sZf03zq quD8mjm0tQUGg8PgzsiwzRg0dTPRV0uOT8jaqAtxE+iGMagMfVZBLcHJeml5MzZO0eUP LhAIu7viUH8YIWEch5EE0yjo0sx8HlTkgpKJwf0ciJE0ylUP+Uw+RDV6g0XgYqjy6Uyi Cllf+UAqm3+veHcqVm/nY2KFkyK+7KXYKyloG/G/wWZofJveOXGjW9FP6PbKcmwYkHZr wLKV+OfHsEupWjzhx45w4PBkd5V3nEm1pS99Q7iURKYmcmGO3OH9vYbn9Be+o7tKu6jP LEDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769686; x=1695374486; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lxVrkiCAkoIq59ofHyv2OHqXSOCmWARXvwgAt/o802g=; b=D82TK/3hFkXczw57DWjMLyNC6eJ3k3qCEIrtpt8+oadNl/9SUWJ8m+dXnEASb+0gjQ c5RSVxRxQpXU4nbD49JxOqbWdxc2fKQ/oGDwTNWxynCCZAHJ/aBy9PJaQA8oAs7VLtxF mutnf5f43mgzvG+WUtFfahwi3WaTE6XtWz9fig6b5fEARYLqQqvO7w3rTiV2+TFbFgTV 0kINfPNHOGjACYEBaFmNitejqu5hektvFoXG1kAyNFj+cpfcyYSFXQ3EFuQOVUbsf0A/ hcNvFsXtJGIuNakp4fxjIENSDEyR90rqjxzJSYzrxk3lLV+w1AvYvvuJqlOObBKvIR69 bVZQ== X-Gm-Message-State: AOJu0YyzvE0Pas1ytyE+b3lDmsK5Fpj1ahc+dBN5Tt0QPWZ8EBKx0NOK am/nZy79hMmoCK/mxFOFNbXUwA== X-Google-Smtp-Source: AGHT+IELGUxnnw8NcjpWERdHd/HFBh9WJ0OdjTLN86Kk7Wo+a3UlN/uFXOriKAm42ZCQmu0toMURCQ== X-Received: by 2002:a05:651c:1033:b0:2bc:d7d6:258f with SMTP id w19-20020a05651c103300b002bcd7d6258fmr907223ljm.35.1694769686215; Fri, 15 Sep 2023 02:21:26 -0700 (PDT) Received: from uffe-tuxpro14.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id p8-20020a2e7408000000b002b9ec22d9fasm639376ljc.29.2023.09.15.02.21.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:25 -0700 (PDT) From: Ulf Hansson To: Arnd Bergmann , Olof Johansson Cc: Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Alim Akhtar , linux-samsung-soc@vger.kernel.org Subject: [PATCH v2 11/17] pmdomain: samsung: Move Kconfig option to the pmdomain subsystem Date: Fri, 15 Sep 2023 11:19:57 +0200 Message-Id: <20230915092003.658361-12-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230915092003.658361-1-ulf.hansson@linaro.org> References: <20230915092003.658361-1-ulf.hansson@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The Kconfig option belongs closer to the corresponding implementation, hence let's move it from the soc subsystem to the pmdomain subsystem. Cc: Krzysztof Kozlowski Cc: Alim Akhtar Cc: Signed-off-by: Ulf Hansson --- drivers/pmdomain/Kconfig | 1 + drivers/pmdomain/samsung/Kconfig | 8 ++++++++ drivers/soc/samsung/Kconfig | 4 ---- 3 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 drivers/pmdomain/samsung/Kconfig diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index 8afe69251dd2..4a411e0985c3 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -10,5 +10,6 @@ source "drivers/pmdomain/mediatek/Kconfig" source "drivers/pmdomain/qcom/Kconfig" source "drivers/pmdomain/renesas/Kconfig" source "drivers/pmdomain/rockchip/Kconfig" +source "drivers/pmdomain/samsung/Kconfig" endmenu diff --git a/drivers/pmdomain/samsung/Kconfig b/drivers/pmdomain/samsung/Kconfig new file mode 100644 index 000000000000..0debfe36b00a --- /dev/null +++ b/drivers/pmdomain/samsung/Kconfig @@ -0,0 +1,8 @@ +# SPDX-License-Identifier: GPL-2.0 +if SOC_SAMSUNG + +config EXYNOS_PM_DOMAINS + bool "Exynos PM domains" if COMPILE_TEST + depends on (ARCH_EXYNOS && PM_GENERIC_DOMAINS) || COMPILE_TEST + +endif diff --git a/drivers/soc/samsung/Kconfig b/drivers/soc/samsung/Kconfig index 7a8f291e7704..27ec99af77e3 100644 --- a/drivers/soc/samsung/Kconfig +++ b/drivers/soc/samsung/Kconfig @@ -48,10 +48,6 @@ config EXYNOS_PMU_ARM_DRIVERS bool "Exynos PMU ARMv7-specific driver extensions" if COMPILE_TEST depends on EXYNOS_PMU -config EXYNOS_PM_DOMAINS - bool "Exynos PM domains" if COMPILE_TEST - depends on (ARCH_EXYNOS && PM_GENERIC_DOMAINS) || COMPILE_TEST - config SAMSUNG_PM_CHECK bool "S3C2410 PM Suspend Memory CRC" depends on PM && (ARCH_S3C64XX || ARCH_S5PV210) From patchwork Fri Sep 15 09:19:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 723442 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0688AEE644B for ; Fri, 15 Sep 2023 09:21:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233759AbjIOJV7 (ORCPT ); Fri, 15 Sep 2023 05:21:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233528AbjIOJVx (ORCPT ); Fri, 15 Sep 2023 05:21:53 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E678268A for ; Fri, 15 Sep 2023 02:21:28 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2bce552508fso29094741fa.1 for ; Fri, 15 Sep 2023 02:21:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769687; x=1695374487; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=mpRw/Nyqv1IAu9jwP5IM347QJfNRDr51sp+Cv/OMBfc=; b=SH9X43qnHeskIjZ2SgxFVuck39O+WrSLhSeQXBMS0//VVc0ZY/W+C4khywK6yL1Pog DgZs9GsjUi6+5blfodqdD+RRNlqIxdEQR9GzfG9FwFEjCI3oLFJk4VaCjhuaYneoaJkT MP9pJ6hp6taJ365htH6KfOOLo/KhshshFuX3ugY1n77a3Ul2HBEskEzq3EG6xTmxWeLq Y1ZmNREaWN0mYlJnaRCuN+4A5cXDTQp1OL2ijhyEE2UC8ZKREZnJoihrSXfTQ/xU3j4O 8rd2HRrWwLHP1xej7HSmGR7V+legSzLzdrEsAGq86c0kqilwgu3IGIbzAvkUfRXudvvv Kymg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769687; x=1695374487; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mpRw/Nyqv1IAu9jwP5IM347QJfNRDr51sp+Cv/OMBfc=; b=EeQORMGV12b946TP2L1nlcAhuqeKod0PefnWQNce8LsoyxXwId1zePZuYWIpIMOJxA cuxZSfWrtrMnnO95gqL2zfr5BTXkDMVHU0kRRdXtjaIpvOmmqkxzGlEsp1fNXUgOjWO7 JX7Y0YWFQ0MYiFbivJ5pn2OBhcorbZzeT6EiL71UfA77BO17uh5OhztK7XQETOjEwKLB qceWVRs0d2bT1ryw2XWVkhJAj24+BsQFpaydLPeccfCQd9oRE5qqIlDMeqHq9zxwW/eA 5prDvOeuDKtXOs2rh+qCrUCGF3PEanyWWU5fc6jlh/cVYejyrSvfEoE+RZIACc2FRnXn G3Sw== X-Gm-Message-State: AOJu0YzKROlF8L9tkX2yIsWwd+3G2TNss8BImdvWFYuqArGhIRoDtMQ+ 8gn3TqdSWUejMQ/ahstPU3ZAbA== X-Google-Smtp-Source: AGHT+IFfEfbuyQGDwmyo+FnzogD3H8gVtamynxzaP2uvT5VpEjahjrgz4DFCThndBuMm73k/8MK1VQ== X-Received: by 2002:a2e:92d0:0:b0:2bf:645b:6afb with SMTP id k16-20020a2e92d0000000b002bf645b6afbmr1015294ljh.21.1694769687139; Fri, 15 Sep 2023 02:21:27 -0700 (PDT) Received: from uffe-tuxpro14.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id p8-20020a2e7408000000b002b9ec22d9fasm639376ljc.29.2023.09.15.02.21.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:26 -0700 (PDT) From: Ulf Hansson To: Arnd Bergmann , Olof Johansson Cc: Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Linus Walleij Subject: [PATCH v2 12/17] pmdomain: st: Add a Kconfig option for the ux500 power domain Date: Fri, 15 Sep 2023 11:19:58 +0200 Message-Id: <20230915092003.658361-13-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230915092003.658361-1-ulf.hansson@linaro.org> References: <20230915092003.658361-1-ulf.hansson@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org We shouldn't really use the CONFIG_ARCH_U8500 option directly, but rather have our own dedicated Kconfig option, so let's add that. Cc: Linus Walleij Reviewed-by: Linus Walleij Signed-off-by: Ulf Hansson --- drivers/pmdomain/Kconfig | 1 + drivers/pmdomain/st/Kconfig | 5 +++++ drivers/pmdomain/st/Makefile | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 drivers/pmdomain/st/Kconfig diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index 4a411e0985c3..08f8a3aa9805 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -11,5 +11,6 @@ source "drivers/pmdomain/qcom/Kconfig" source "drivers/pmdomain/renesas/Kconfig" source "drivers/pmdomain/rockchip/Kconfig" source "drivers/pmdomain/samsung/Kconfig" +source "drivers/pmdomain/st/Kconfig" endmenu diff --git a/drivers/pmdomain/st/Kconfig b/drivers/pmdomain/st/Kconfig new file mode 100644 index 000000000000..a77a70211f61 --- /dev/null +++ b/drivers/pmdomain/st/Kconfig @@ -0,0 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0-only +config UX500_PM_DOMAIN + bool "ST-Ericsson ux500 Power Domain" + depends on ARCH_U8500 || COMPILE_TEST + default ARCH_U8500 diff --git a/drivers/pmdomain/st/Makefile b/drivers/pmdomain/st/Makefile index 8fa5f9855460..6d8b617eb834 100644 --- a/drivers/pmdomain/st/Makefile +++ b/drivers/pmdomain/st/Makefile @@ -1,2 +1,2 @@ # SPDX-License-Identifier: GPL-2.0-only -obj-$(CONFIG_ARCH_U8500) += ste-ux500-pm-domain.o +obj-$(CONFIG_UX500_PM_DOMAIN) += ste-ux500-pm-domain.o From patchwork Fri Sep 15 09:19:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 723859 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F0C23EE6447 for ; Fri, 15 Sep 2023 09:22:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233775AbjIOJWD (ORCPT ); Fri, 15 Sep 2023 05:22:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233592AbjIOJVx (ORCPT ); Fri, 15 Sep 2023 05:21:53 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF2A51FE1 for ; Fri, 15 Sep 2023 02:21:29 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2bb9a063f26so30566691fa.2 for ; Fri, 15 Sep 2023 02:21:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769688; x=1695374488; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dHEtnEQv2A2ReqGymUlGz3D//oT7Ku2G1Pe4mdOxqdo=; b=rXeqFgqtZ1prGJynVHnLiYul3PCLdeCYfhz517PPzNtxLPom8L3xFI2Et6PD8M/CX5 y8OF2SxmiWQaQ96aQAsdLPHexlQ4v8P9RzMZJgkR4iP+kyQLAA1VnihbmHpXydLBiBk+ 92P/6i2q5UjWZRAaaV+gvlkUCjeipiFBf39N9dmTjiKRZrYStTvLAxB7Ee4WCLO0/9KK /7S/BAmW7TaLEzB5Lpx71Df2kyLxhKpFCS3tllSrUQ/M6bmtg4ws1bEoQcyM39KSlTb9 M2yW1HdmEbWeJfCRIVluZBreugARBv/aJRjH/xPcLr6u6aoZgenjshAaYeN8bPvdvWu+ A6kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769688; x=1695374488; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dHEtnEQv2A2ReqGymUlGz3D//oT7Ku2G1Pe4mdOxqdo=; b=YS1+k6AseXt8wwcHCCmd46jZJFTt+sxr2mqP8mprx73zM6GBP6CFhSmYYYHzVMJFJZ YYEReflJK9aGL0NDugPsNjbJ9z6wOw/NZMqRHiCADQVM8Cog74vGioxkAKOnh/HD574F ovDBH7br/sJ6lNeKcrT/isKw3xt8rvYfIijuDCt2G67+EdfxuAwHnc+uARyjCq5bmaE+ ZI/gl2AUDx5XGm1ZfdRMswAZtprIQ4QDkj3XHMQOGEs6ymGDkyP8dHLiMGsnGMHDLMvs Wl6l3S32jmRPUT5Yc/hKaDhY0zfYHQAoU3kzSk22VWVi1bLqwtgV1hA73Y+YZAZBsOnE vrKA== X-Gm-Message-State: AOJu0YwkuS6zGBqRC09mxeTrrHwNVZ+5ga0/BonTUo/u0SiTIstYybid P13pniK9hQnSfK90+xiBH7s0MUjgyfWCLL/GiAe55A== X-Google-Smtp-Source: AGHT+IFK61Er9cAcjOdJ5f7iHl2FE/MjGgnLPUym9+O2jTbIqzOzp8XbomK6ZbZehZ/PX8+bbXKy5w== X-Received: by 2002:a2e:3e0e:0:b0:2b6:bc30:7254 with SMTP id l14-20020a2e3e0e000000b002b6bc307254mr981025lja.13.1694769688005; Fri, 15 Sep 2023 02:21:28 -0700 (PDT) Received: from uffe-tuxpro14.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id p8-20020a2e7408000000b002b9ec22d9fasm639376ljc.29.2023.09.15.02.21.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:27 -0700 (PDT) From: Ulf Hansson To: Arnd Bergmann , Olof Johansson Cc: Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Walker Chen , Conor Dooley Subject: [PATCH v2 13/17] pmdomain: starfive: Move Kconfig file to the pmdomain subsystem Date: Fri, 15 Sep 2023 11:19:59 +0200 Message-Id: <20230915092003.658361-14-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230915092003.658361-1-ulf.hansson@linaro.org> References: <20230915092003.658361-1-ulf.hansson@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The Kconfig belongs closer to the corresponding implementation, hence let's move it from the soc subsystem to the pmdomain subsystem. Cc: Walker Chen Cc: Conor Dooley Acked-by: Conor Dooley Signed-off-by: Ulf Hansson --- MAINTAINERS | 3 +-- drivers/pmdomain/Kconfig | 1 + drivers/{soc => pmdomain}/starfive/Kconfig | 0 drivers/soc/Kconfig | 1 - 4 files changed, 2 insertions(+), 3 deletions(-) rename drivers/{soc => pmdomain}/starfive/Kconfig (100%) diff --git a/MAINTAINERS b/MAINTAINERS index 6b491ebcf790..40744fefed3d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -20515,7 +20515,7 @@ M: Walker Chen M: Changhuang Liang S: Supported F: Documentation/devicetree/bindings/power/starfive* -F: drivers/pmdomain/starfive/jh71xx-pmu.c +F: drivers/pmdomain/starfive/ F: include/dt-bindings/power/starfive,jh7110-pmu.h STARFIVE SOC DRIVERS @@ -20523,7 +20523,6 @@ M: Conor Dooley S: Maintained T: git https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux.git/ F: Documentation/devicetree/bindings/soc/starfive/ -F: drivers/soc/starfive/ STARFIVE TRNG DRIVER M: Jia Jie Ho diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index 08f8a3aa9805..2286c36076db 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -12,5 +12,6 @@ source "drivers/pmdomain/renesas/Kconfig" source "drivers/pmdomain/rockchip/Kconfig" source "drivers/pmdomain/samsung/Kconfig" source "drivers/pmdomain/st/Kconfig" +source "drivers/pmdomain/starfive/Kconfig" endmenu diff --git a/drivers/soc/starfive/Kconfig b/drivers/pmdomain/starfive/Kconfig similarity index 100% rename from drivers/soc/starfive/Kconfig rename to drivers/pmdomain/starfive/Kconfig diff --git a/drivers/soc/Kconfig b/drivers/soc/Kconfig index 8b46da40f107..10a9ff84ff41 100644 --- a/drivers/soc/Kconfig +++ b/drivers/soc/Kconfig @@ -23,7 +23,6 @@ source "drivers/soc/renesas/Kconfig" source "drivers/soc/rockchip/Kconfig" source "drivers/soc/samsung/Kconfig" source "drivers/soc/sifive/Kconfig" -source "drivers/soc/starfive/Kconfig" source "drivers/soc/sunxi/Kconfig" source "drivers/soc/tegra/Kconfig" source "drivers/soc/ti/Kconfig" From patchwork Fri Sep 15 09:20:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 723858 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C131CEE6450 for ; Fri, 15 Sep 2023 09:22:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233562AbjIOJWG (ORCPT ); Fri, 15 Sep 2023 05:22:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233700AbjIOJVx (ORCPT ); Fri, 15 Sep 2023 05:21:53 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A9172102 for ; Fri, 15 Sep 2023 02:21:30 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2bfc5218dd8so29978501fa.2 for ; Fri, 15 Sep 2023 02:21:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769689; x=1695374489; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=JuZx/GEW25gG646YvVI9ekfBTZl9JZLAF7Xs48rC/qQ=; b=IJjT8vy3KXgaSwnc25Fw68yp7QjBX057yNx20TPUc795dnKZqyInQQwtiOwA92nT/o SYn70PksHZaQXe48doWAuOXXHzL+0HbCURjIijRXB1MIvN2mVRMo336eN9orF0Cd2M/d Wjsp6Oaw+vxixUNeoTkwexOSIfIHGH/emXKN5MCXrrnqDx+iVGAKQPmFumsjEX+A5Tq2 RzchKReROrHYzXcfR2eHA22Scj3VSczY+Wnay3aBEA9BY0eJAXakDC1C6XJvxAJ5yl4F nQUpZhwtOvoXlZk+zzc2LExwQWZHpQlrD/UXwc4Z3M1v9EMDtdFabvYg0t43ACgIMnBp LpDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769689; x=1695374489; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JuZx/GEW25gG646YvVI9ekfBTZl9JZLAF7Xs48rC/qQ=; b=leoWqPb9Uc5zKNEchukgMdvPKWmPUZIN1LgOAG16kLpbUrVF7lzyQoAEvnAdH2DYXj dLp2clpdgE0UVaLvDtuq8/fuFljSmI76bKcXpkAYDOqjzaj2uVlDKl4J+R4m6AL/N5rf 0VvbjuuVlsxNCuvHJp/Aw9b1MooI93qdjbtqyxy0TKzaCRrnt7BnKhOY2FNNW8ZNJKUS IhSliWiupdHiQzlCOW1TwBFvUf41o+Tf1U0Drmu/aWVHEYBSc+V3TlEk0ydEmQn+mE1l g9aT8Pk7OP9u8Pbi6VIKuugK6Q0uMXgb52WVHd8DEmZbm/Ou6o81HZjuk08ed0nW+SG7 1MIA== X-Gm-Message-State: AOJu0YwxN0N9pol0W2lCwDK8aa2lpQrznXly5hBAhl5YGimFgWDzmyYb FRWIgdLGAlyHIlObMO7Q+lx0sg== X-Google-Smtp-Source: AGHT+IEVb+rybmAw/IHW2BTXH8tfpMjLEmySPO9nsUGKFLlub7WqeGnWblxKCQk1yld1rt/N2pe2jA== X-Received: by 2002:a2e:93c2:0:b0:2bc:da4a:4649 with SMTP id p2-20020a2e93c2000000b002bcda4a4649mr1078194ljh.22.1694769689024; Fri, 15 Sep 2023 02:21:29 -0700 (PDT) Received: from uffe-tuxpro14.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id p8-20020a2e7408000000b002b9ec22d9fasm639376ljc.29.2023.09.15.02.21.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:28 -0700 (PDT) From: Ulf Hansson To: Arnd Bergmann , Olof Johansson Cc: Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , linux-sunxi@lists.linux.dev Subject: [PATCH v2 14/17] pmdomain: sunxi: Move Kconfig option to the pmdomain subsystem Date: Fri, 15 Sep 2023 11:20:00 +0200 Message-Id: <20230915092003.658361-15-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230915092003.658361-1-ulf.hansson@linaro.org> References: <20230915092003.658361-1-ulf.hansson@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The Kconfig option belongs closer to the corresponding implementation, hence let's move it from the soc subsystem to the pmdomain subsystem. Cc: Chen-Yu Tsai Cc: Jernej Skrabec Cc: Samuel Holland Cc: Acked-by: Jernej Skrabec Signed-off-by: Ulf Hansson --- drivers/pmdomain/Kconfig | 1 + drivers/pmdomain/sunxi/Kconfig | 10 ++++++++++ drivers/soc/sunxi/Kconfig | 9 --------- 3 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 drivers/pmdomain/sunxi/Kconfig diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index 2286c36076db..10c3bc2e2444 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -13,5 +13,6 @@ source "drivers/pmdomain/rockchip/Kconfig" source "drivers/pmdomain/samsung/Kconfig" source "drivers/pmdomain/st/Kconfig" source "drivers/pmdomain/starfive/Kconfig" +source "drivers/pmdomain/sunxi/Kconfig" endmenu diff --git a/drivers/pmdomain/sunxi/Kconfig b/drivers/pmdomain/sunxi/Kconfig new file mode 100644 index 000000000000..17781bf8d86d --- /dev/null +++ b/drivers/pmdomain/sunxi/Kconfig @@ -0,0 +1,10 @@ +# SPDX-License-Identifier: GPL-2.0-only + +config SUN20I_PPU + bool "Allwinner D1 PPU power domain driver" + depends on ARCH_SUNXI || COMPILE_TEST + depends on PM + select PM_GENERIC_DOMAINS + help + Say y to enable the PPU power domain driver. This saves power + when certain peripherals, such as the video engine, are idle. diff --git a/drivers/soc/sunxi/Kconfig b/drivers/soc/sunxi/Kconfig index c5070914fc6a..8aecbc9b1976 100644 --- a/drivers/soc/sunxi/Kconfig +++ b/drivers/soc/sunxi/Kconfig @@ -19,12 +19,3 @@ config SUNXI_SRAM Say y here to enable the SRAM controller support. This device is responsible on mapping the SRAM in the sunXi SoCs whether to the CPU/DMA, or to the devices. - -config SUN20I_PPU - bool "Allwinner D1 PPU power domain driver" - depends on ARCH_SUNXI || COMPILE_TEST - depends on PM - select PM_GENERIC_DOMAINS - help - Say y to enable the PPU power domain driver. This saves power - when certain peripherals, such as the video engine, are idle. From patchwork Fri Sep 15 09:20:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 723441 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8D3A6EE644C for ; Fri, 15 Sep 2023 09:22:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232830AbjIOJWE (ORCPT ); Fri, 15 Sep 2023 05:22:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233706AbjIOJVy (ORCPT ); Fri, 15 Sep 2023 05:21:54 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FB572729 for ; Fri, 15 Sep 2023 02:21:32 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2b9c907bc68so31614221fa.2 for ; Fri, 15 Sep 2023 02:21:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769690; x=1695374490; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0gMxgrLH8hAqI78TYEwxUv2pVCfDSw58e/K0s6X8qpQ=; b=m9EHb03qwFkHFRxKPPTBlJC1GPblNh5KWKwqCWZWhUQJbXARoxmIhEC+XHs0gbdMUM FjVH9pV5FO4nm/eINjHGt3vMwAry3dsA8RpFnNLRs7PfedJ+ltmoqbEuWYi0T+bPboWu UCNqQF52/gzPm0KnNfN7JiH4icKqEOOs93xU+pSr7UhAb7LqcTuCA+Q61z69BCFv8lrn 7Q5HKTSZAyAaRszXMjUolVIZzPMYY3IvoDJdOVwI5yIslSrTmdE053TGemztbzKyhdZG O+lBcIw+OuoO8mk/adF1vdjt631M9Xg31xwFl5u/4Y4r26uDrb5lt+ggvheP0afYie1m MAFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769690; x=1695374490; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0gMxgrLH8hAqI78TYEwxUv2pVCfDSw58e/K0s6X8qpQ=; b=C2JryhxTfhbENrpOmh8D1G1VbUdaxzzbcn6CnlPveQIJDMoEsEiXAlX51cZhJrj1YU sD/oxlDNmcjYhx4cAhBPrOI4bk/VjbVtyrdrafdX8ZsREcgoxNnWx2PRrIJQ8fps6auo SVuI8VTvH+KSZaDMLDTzqTL6RsXb0sJ4U0qCmElEEWphYwt96NXaNvU2nrEf7zkJAQcP zLLsNLpLvIHVhpvQHvvQXQRQiammxA5M3YACv+lWYoVFTeirii7ND9aqo4yWO6FndUaZ IBCaUOWxtFdDxB6MwtvCLleq5GqoZN/H14oUCq4vJP28Lupwi0z5oykUMGZFj+sxGX2n HxIg== X-Gm-Message-State: AOJu0Yy5xePdFLr3vxN9c92p7vuVAsoO2s4zUDRbh8MNAbAFnhJzliy0 qfsQFiD3cVXUX0zDty/Ep3TLtKExSGZlFJF6egIcHg== X-Google-Smtp-Source: AGHT+IEW7ELR0BC0aaaD7PdqOlQ9YNfd9KQIzAAoLD8DzPpKbNrDvmiROuNK6D31n0onkDPudHUjUg== X-Received: by 2002:a2e:9409:0:b0:2bd:1bca:ebee with SMTP id i9-20020a2e9409000000b002bd1bcaebeemr874287ljh.19.1694769690056; Fri, 15 Sep 2023 02:21:30 -0700 (PDT) Received: from uffe-tuxpro14.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id p8-20020a2e7408000000b002b9ec22d9fasm639376ljc.29.2023.09.15.02.21.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:29 -0700 (PDT) From: Ulf Hansson To: Arnd Bergmann , Olof Johansson Cc: Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Thierry Reding , Jonathan Hunter , Mikko Perttunen , linux-tegra@vger.kernel.org Subject: [PATCH v2 15/17] pmdomain: tegra: Move Kconfig option to the pmdomain subsystem Date: Fri, 15 Sep 2023 11:20:01 +0200 Message-Id: <20230915092003.658361-16-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230915092003.658361-1-ulf.hansson@linaro.org> References: <20230915092003.658361-1-ulf.hansson@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The Kconfig option belongs closer to the corresponding implementation, hence let's move it from the soc subsystem to the pmdomain subsystem. Cc: Thierry Reding Cc: Jonathan Hunter Cc: Mikko Perttunen Cc: Signed-off-by: Ulf Hansson --- drivers/pmdomain/Kconfig | 1 + drivers/pmdomain/tegra/Kconfig | 6 ++++++ drivers/soc/tegra/Kconfig | 5 ----- 3 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 drivers/pmdomain/tegra/Kconfig diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index 10c3bc2e2444..98e04589bef4 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -14,5 +14,6 @@ source "drivers/pmdomain/samsung/Kconfig" source "drivers/pmdomain/st/Kconfig" source "drivers/pmdomain/starfive/Kconfig" source "drivers/pmdomain/sunxi/Kconfig" +source "drivers/pmdomain/tegra/Kconfig" endmenu diff --git a/drivers/pmdomain/tegra/Kconfig b/drivers/pmdomain/tegra/Kconfig new file mode 100644 index 000000000000..13ade6d84696 --- /dev/null +++ b/drivers/pmdomain/tegra/Kconfig @@ -0,0 +1,6 @@ +# SPDX-License-Identifier: GPL-2.0-only + +config SOC_TEGRA_POWERGATE_BPMP + def_bool y + depends on PM_GENERIC_DOMAINS + depends on TEGRA_BPMP diff --git a/drivers/soc/tegra/Kconfig b/drivers/soc/tegra/Kconfig index 6f3098822969..f16beeabaa92 100644 --- a/drivers/soc/tegra/Kconfig +++ b/drivers/soc/tegra/Kconfig @@ -152,11 +152,6 @@ config SOC_TEGRA_PMC select PM_GENERIC_DOMAINS select REGMAP -config SOC_TEGRA_POWERGATE_BPMP - def_bool y - depends on PM_GENERIC_DOMAINS - depends on TEGRA_BPMP - config SOC_TEGRA20_VOLTAGE_COUPLER bool "Voltage scaling support for Tegra20 SoCs" depends on ARCH_TEGRA_2x_SOC || COMPILE_TEST From patchwork Fri Sep 15 09:20:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 723440 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1F1F2EE6447 for ; Fri, 15 Sep 2023 09:22:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233633AbjIOJW2 (ORCPT ); Fri, 15 Sep 2023 05:22:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233529AbjIOJVy (ORCPT ); Fri, 15 Sep 2023 05:21:54 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E2B52735 for ; Fri, 15 Sep 2023 02:21:33 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-5029ace4a28so3618110e87.1 for ; Fri, 15 Sep 2023 02:21:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769691; x=1695374491; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=rSDTY9PIBZaWnuB156Z6IV6vLXbcGWaKRrqSpGIqxY0=; b=hyTxnyJK24Ib1GIRwQExbeJx+HPV2gvn/s1DV5Us+0a4VnsSwC/Peqm6bKqQFpp5Jm uDDFPAs215WbAdA1BkujQqA5Mj1+ehg/gbpkGrXp5/22NB5TlzygAZco5VbK4fHHG3Ce pObLWXqAI+4EQp5dscMzEfe1B5HMDX980kkTadmsX46Juj3G6c7K2sOGsEyIrqA6V+RG to4HzSf7Mt2i3/tMbWu1lLR1XbDhP3ReMYLnsqyaYHXV5zOq0j5GO6EYCxH2FrGxqJJK XdNh6M5BnwVi2b6zia5KFvsk1lca4w2eny12DCObBBDPiHH/8ncT4W5v1x/Uwom41pNQ idZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769691; x=1695374491; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rSDTY9PIBZaWnuB156Z6IV6vLXbcGWaKRrqSpGIqxY0=; b=IjMfb5f1jSqcGuy8R+RZdPjobwljLp6aR9HRWRToSZIFWkKfxPL9ZVw1MuawiZAdhi nwsT2iL90l8T+8qAnnxak/gIpdB82NhrCXLQ5tA2ydoGggF+8U6trljng4woYOoKM0b0 a5My6pnG4g+JZtBN+f0x1DQOIkg+R7ZZyAvqf1qkLpwia601iDqHeBJOSzdydSv4/dsI tjhAEmXlPaJ3pmH6TvhzMB8pSpBVRej1rx8UIjZDKzvJOFo0t/tsWQlJhMDuPJs+GrMg n6cQPCZZRZYACfJi/+WuesX2Ab6bDVeCRFfoqvd8tL81tzX0GVLpqZKI91p/IePvB5s0 j1Cw== X-Gm-Message-State: AOJu0YylyO6ZZ0G8laQJie3phE9bx1jBeNxopjyKEWjQ/E9K0gSy6Zjx 2eABd4OPW233lpKdLHij/UcBeQ== X-Google-Smtp-Source: AGHT+IE8ou11tW8HL58ljba8dxgaBkkR87BS3tgnZFYHGFtichyS2uz30CZsvntAaczYxD65pJiO/g== X-Received: by 2002:a05:6512:39cc:b0:4fd:d254:edc6 with SMTP id k12-20020a05651239cc00b004fdd254edc6mr1290975lfu.26.1694769691466; Fri, 15 Sep 2023 02:21:31 -0700 (PDT) Received: from uffe-tuxpro14.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id p8-20020a2e7408000000b002b9ec22d9fasm639376ljc.29.2023.09.15.02.21.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:30 -0700 (PDT) From: Ulf Hansson To: Arnd Bergmann , Olof Johansson Cc: Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Nishanth Menon , Santosh Shilimkar , Tero Kristo , Tony Lindgren Subject: [PATCH v2 16/17] pmdomain: ti: Move and add Kconfig options to the pmdomain subsystem Date: Fri, 15 Sep 2023 11:20:02 +0200 Message-Id: <20230915092003.658361-17-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230915092003.658361-1-ulf.hansson@linaro.org> References: <20230915092003.658361-1-ulf.hansson@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The TI_SCI_PM_DOMAINS Kconfig option belongs closer to its corresponding implementation, hence let's move it from the soc subsystem to the pmdomain subsystem. While at it, let's also add a Kconfig option the omap_prm driver, rather than using ARCH_OMAP2PLUS directly. Cc: Nishanth Menon Cc: Santosh Shilimkar Cc: Tero Kristo Cc: Tony Lindgren Signed-off-by: Ulf Hansson Reviewed-by: Dhruva Gole --- drivers/pmdomain/Kconfig | 1 + drivers/pmdomain/ti/Kconfig | 22 ++++++++++++++++++++++ drivers/pmdomain/ti/Makefile | 2 +- drivers/soc/ti/Kconfig | 12 ------------ 4 files changed, 24 insertions(+), 13 deletions(-) create mode 100644 drivers/pmdomain/ti/Kconfig diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index 98e04589bef4..33bfec9c4f7a 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -15,5 +15,6 @@ source "drivers/pmdomain/st/Kconfig" source "drivers/pmdomain/starfive/Kconfig" source "drivers/pmdomain/sunxi/Kconfig" source "drivers/pmdomain/tegra/Kconfig" +source "drivers/pmdomain/ti/Kconfig" endmenu diff --git a/drivers/pmdomain/ti/Kconfig b/drivers/pmdomain/ti/Kconfig new file mode 100644 index 000000000000..67c608bf7ed0 --- /dev/null +++ b/drivers/pmdomain/ti/Kconfig @@ -0,0 +1,22 @@ +# SPDX-License-Identifier: GPL-2.0-only + +config OMAP2PLUS_PRM + bool + depends on ARCH_OMAP2PLUS + default ARCH_OMAP2PLUS + +if SOC_TI + +config TI_SCI_PM_DOMAINS + tristate "TI SCI PM Domains Driver" + depends on TI_SCI_PROTOCOL + depends on PM_GENERIC_DOMAINS + help + Generic power domain implementation for TI device implementing + the TI SCI protocol. + + To compile this as a module, choose M here. The module will be + called ti_sci_pm_domains. Note this is needed early in boot before + rootfs may be available. + +endif diff --git a/drivers/pmdomain/ti/Makefile b/drivers/pmdomain/ti/Makefile index 69580afbb436..af6cd056c158 100644 --- a/drivers/pmdomain/ti/Makefile +++ b/drivers/pmdomain/ti/Makefile @@ -1,3 +1,3 @@ # SPDX-License-Identifier: GPL-2.0 -obj-$(CONFIG_ARCH_OMAP2PLUS) += omap_prm.o +obj-$(CONFIG_OMAP2PLUS_PRM) += omap_prm.o obj-$(CONFIG_TI_SCI_PM_DOMAINS) += ti_sci_pm_domains.o diff --git a/drivers/soc/ti/Kconfig b/drivers/soc/ti/Kconfig index 2cae17b65fd9..1a93001c9e36 100644 --- a/drivers/soc/ti/Kconfig +++ b/drivers/soc/ti/Kconfig @@ -50,18 +50,6 @@ config WKUP_M3_IPC to communicate and use the Wakeup M3 for PM features like suspend resume and boots it using wkup_m3_rproc driver. -config TI_SCI_PM_DOMAINS - tristate "TI SCI PM Domains Driver" - depends on TI_SCI_PROTOCOL - depends on PM_GENERIC_DOMAINS - help - Generic power domain implementation for TI device implementing - the TI SCI protocol. - - To compile this as a module, choose M here. The module will be - called ti_sci_pm_domains. Note this is needed early in boot before - rootfs may be available. - config TI_K3_RINGACC tristate "K3 Ring accelerator Sub System" depends on ARCH_K3 || COMPILE_TEST From patchwork Fri Sep 15 09:20:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 723857 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2FBFDEE644C for ; Fri, 15 Sep 2023 09:22:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233849AbjIOJW2 (ORCPT ); Fri, 15 Sep 2023 05:22:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233664AbjIOJVz (ORCPT ); Fri, 15 Sep 2023 05:21:55 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51CAE2D40 for ; Fri, 15 Sep 2023 02:21:34 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2bfc14e6d03so23199811fa.1 for ; Fri, 15 Sep 2023 02:21:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769692; x=1695374492; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Q0LzjuzekaO+LUgw0Z4oAojZpLU0XF+vjTLwwFv3zjw=; b=NdaXwJnFVUFa38OvyPFChy9sHK627CnYfVGHB552a42PtP6LBEh3HSGIhCvYztIeN8 CVny+EBzs6prYpUClFiG48OtZAtCBjKXM8oUSDSKrgFoL2g6d40EBehA8I4eHSHIdi5p 2l9zBOFjCCHgAZP+Cab412gBdqlFSRsX3/CHSFsOMxqoFNP3RwUXdVG5Em2SpV7V3vV3 e1uow4AjIzl8AHB09FAGwG64PCCE2hHe3IZ4Fp3vI+jtRJFBxeg+IulK8T7bI9j7Rtwx kJ+pIiVdkGAjrVe+kHK6v9cJCdfUZB/3WAoi7atOM8rGOW/kj0e0UmOJTA0p3uf1ASZB fcwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769692; x=1695374492; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Q0LzjuzekaO+LUgw0Z4oAojZpLU0XF+vjTLwwFv3zjw=; b=M/3G3VkblGB18cN9zAm5s1OqxF+YKk58fOusSp3g+t0tOMkIgFCobeJ2fxGOX1lm6n ecmUmIZ2YKBpBasSqYc7gruGGM61dmHco+X07g8hYc60DIf3yfb7+mgIWFQjSnQc8L70 lm11R8zecWXNbFyKM5I7cP5fC/WKT6IdQpCPGgCSGu6Sn9QFfmG5+CuoBqRMS7pQBWdB RPSUj+Zb504uXBQUAdRUdVjFQQONbFGnhwPeK5tSw4UP0RSv7T3tgVgagRZJFraspvMn nra4JbCt3bYuObZZlvx2SkqKZAsctzvNhUMnuWUIk6c4Cxr+8Ts98RfHiOXeU8NNfzPK Cjow== X-Gm-Message-State: AOJu0YzAH/5w5fCUxZuflBSeOxhYCv+SpOmg2i5Q3pEwu4eATh5hf3PS QLhI8sxs+F6+i7FjpdrQ951a/w== X-Google-Smtp-Source: AGHT+IGlhxclDokFJJoDCsB2E+IRV6YNT97EznA5CVX9FoIK3dQoYlmtjn1XPSwMiiENDAOdee/EAQ== X-Received: by 2002:a2e:a17a:0:b0:2bb:c19b:710c with SMTP id u26-20020a2ea17a000000b002bbc19b710cmr415223ljl.5.1694769692670; Fri, 15 Sep 2023 02:21:32 -0700 (PDT) Received: from uffe-tuxpro14.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id p8-20020a2e7408000000b002b9ec22d9fasm639376ljc.29.2023.09.15.02.21.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:31 -0700 (PDT) From: Ulf Hansson To: Arnd Bergmann , Olof Johansson Cc: Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Michal Simek Subject: [PATCH v2 17/17] pmdomain: xilinx: Move Kconfig option to the pmdomain subsystem Date: Fri, 15 Sep 2023 11:20:03 +0200 Message-Id: <20230915092003.658361-18-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230915092003.658361-1-ulf.hansson@linaro.org> References: <20230915092003.658361-1-ulf.hansson@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The Kconfig option belongs closer to the corresponding implementation, hence let's move it from the soc subsystem to the pmdomain subsystem. Cc: Michal Simek Signed-off-by: Ulf Hansson --- drivers/pmdomain/Kconfig | 1 + drivers/pmdomain/xilinx/Kconfig | 10 ++++++++++ drivers/soc/xilinx/Kconfig | 9 --------- 3 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 drivers/pmdomain/xilinx/Kconfig diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index 33bfec9c4f7a..c98c5bf75a14 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -16,5 +16,6 @@ source "drivers/pmdomain/starfive/Kconfig" source "drivers/pmdomain/sunxi/Kconfig" source "drivers/pmdomain/tegra/Kconfig" source "drivers/pmdomain/ti/Kconfig" +source "drivers/pmdomain/xilinx/Kconfig" endmenu diff --git a/drivers/pmdomain/xilinx/Kconfig b/drivers/pmdomain/xilinx/Kconfig new file mode 100644 index 000000000000..5242753d848a --- /dev/null +++ b/drivers/pmdomain/xilinx/Kconfig @@ -0,0 +1,10 @@ +# SPDX-License-Identifier: GPL-2.0 + +config ZYNQMP_PM_DOMAINS + bool "Enable Zynq MPSoC generic PM domains" + default y + depends on PM && ZYNQMP_FIRMWARE + select PM_GENERIC_DOMAINS + help + Say yes to enable device power management through PM domains + If in doubt, say N. diff --git a/drivers/soc/xilinx/Kconfig b/drivers/soc/xilinx/Kconfig index 8a755a5c8836..49d69d6e18fe 100644 --- a/drivers/soc/xilinx/Kconfig +++ b/drivers/soc/xilinx/Kconfig @@ -16,15 +16,6 @@ config ZYNQMP_POWER If in doubt, say N. -config ZYNQMP_PM_DOMAINS - bool "Enable Zynq MPSoC generic PM domains" - default y - depends on PM && ZYNQMP_FIRMWARE - select PM_GENERIC_DOMAINS - help - Say yes to enable device power management through PM domains - If in doubt, say N. - config XLNX_EVENT_MANAGER bool "Enable Xilinx Event Management Driver" depends on ZYNQMP_FIRMWARE