From patchwork Thu Sep 14 11:15: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: 723463 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 12D04EDE9A5 for ; Thu, 14 Sep 2023 11:16:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233007AbjINLQI (ORCPT ); Thu, 14 Sep 2023 07:16:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232865AbjINLQI (ORCPT ); Thu, 14 Sep 2023 07:16:08 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7EF41FCE for ; Thu, 14 Sep 2023 04:16:03 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-501eec0a373so1371647e87.3 for ; Thu, 14 Sep 2023 04:16:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694690161; x=1695294961; 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=NwwwwfCX71CGPY+4m/B/8JB1FGVXzFuLpjf50GP33WM=; b=mrUrG3F5waGhxnAVEni2chuXNhbBacCWpm1UWN9GnGnGIyjKEIl9AMhz3vaVIYfqAU 52UAQCtuRDCrY27EghvtvGI7DKS72gloiMmBMm7hM9s+Jos4TLPaIWS58eFxEpcu6D3e NPN98y71v6LNGg7L2YVGtg6aQvFswLdsbsiJIyd+i/pHklzD+03pCjJ2bh4sXC8b/URT zL/v74Bi4RrsIqzhhJjn/asE9gPXKZlQzSH3DVoBrcObsPNsbL4VGHKhAoZalyyv/w70 NcZZv/M90AXS7pxXdRSJ03YU0lpG0jmgxSh8oXAgMQd090wXs8YBf3WWkP6G1uabZJ3a m+ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694690161; x=1695294961; 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=NwwwwfCX71CGPY+4m/B/8JB1FGVXzFuLpjf50GP33WM=; b=PEAlazUGNiam+tJST06FMviadwQRCIhk5T6YVtn1tw9JbRB3VYIFSfLno2qJ0h7F1K OLHVVfA6GMb24hBlZ1+ODA5Wt7s61ETGZI5jF4JB20htLWS/D0ZJ//UkCVhHPTzXevRT ykI+C16WAstyLZagXCNRqsdja6lhwCkjJ7qvZszQWgErADrKGTO3BbqZi5Xo5FQOE/Xy J8jLf+B626KSIOxc0izfwUYQ/MUUci/C15PrtddYtwlF7PZobf6gd+VcfNv2kRMfTmOi IsBdpAv91p8dHlwqEX9swvZZ8mVIrugqN2gLM6ATQ8yUCk+EL2jj5vnIN8fzYyyE+DVc 4JOw== X-Gm-Message-State: AOJu0YxTqlL9TiPdUzh3u9cpPqBvgnamqgwz19DIWu5E/r4RksStO41l hLhX48j2Xbe59uwQps2oc1fl7g== X-Google-Smtp-Source: AGHT+IGNDq1+kGv5ZTcP0wVAqFgUnsmaefZprk/wPO9nW3ABND+2s7KXW5rp8cCLBWwqxo4DDvNGnA== X-Received: by 2002:a05:6512:20cc:b0:500:75e5:a2f0 with SMTP id u12-20020a05651220cc00b0050075e5a2f0mr3775138lfr.51.1694690160982; Thu, 14 Sep 2023 04:16:00 -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 d25-20020ac244d9000000b00500ba43a43asm236197lfm.86.2023.09.14.04.16.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 04:16:00 -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 Subject: [PATCH 01/17] pmdomain: Prepare to move Kconfig files into the pmdomain subsystem Date: Thu, 14 Sep 2023 13:15:54 +0200 Message-Id: <20230914111554.586438-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: 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..045c469cb438 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -175,6 +175,8 @@ source "drivers/soundwire/Kconfig" source "drivers/soc/Kconfig" +source "drivers/genpd/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..c32a76b51840 --- /dev/null +++ b/drivers/pmdomain/Kconfig @@ -0,0 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0-only +menu "Power Domains Support" + +endmenu From patchwork Thu Sep 14 11:16:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 723462 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 4E97BEDE9A5 for ; Thu, 14 Sep 2023 11:16:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233550AbjINLRC (ORCPT ); Thu, 14 Sep 2023 07:17:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233502AbjINLRB (ORCPT ); Thu, 14 Sep 2023 07:17:01 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C1E91FC9 for ; Thu, 14 Sep 2023 04:16:57 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2bf5bf33bcdso13365891fa.0 for ; Thu, 14 Sep 2023 04:16:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694690215; x=1695295015; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=/G1B8RoYbQaDFpfisBrFB3z+4poKkBaELSKoZJGIn6w=; b=kDPjxEbUjfBYNY+SmO94i+Teo8670DzQFrQm8VVDAzyYEYuG49ZNt2ws4wn8+X3KaC /qQhlTtVGzdTnCpSZCgIXBzldv8cszJAnODIalYsxdBNMwJQoNGgJaG+xxNOcoafBap1 P4TOBgI/kR9uRzmmu0XDsp/oogRXFMnc6/gAydh3W3AFl8IskJAB8SC1UpQg5qQbs3Kr PuoJOScm6IXlEVyLDdOAvkMqxEzusP9HoNaBK8/1MO2aVGR3NgCYLt74xHCp0A3mqqOt 3qsHnUCfBDHXeSXYOPmr9yFPDuBYCk2PnPlsszt6F25nIIXdXjwnAywgd/waj+lg+zwK fISQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694690215; x=1695295015; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/G1B8RoYbQaDFpfisBrFB3z+4poKkBaELSKoZJGIn6w=; b=Rq1gWzRK/8xSwgXC3q9kVIGmIbpCWgvZEgghAhImgiPaid3PoGC+WIxmsdIq10KVzW Me+jFOC3kQPr6YAdqFfTZ5g+IKUBTGOAP8UVMZp/n7e97dvSAnckWWCDXI3CP8oEOTam Z9eMTwpe3zqD6Qu9Q0AU2jmXEI+wcg37zaMmuTCVDEK/kmmEosU4JQ39oOblJfD3Vpfl QK/WL7teasj+bzFjhGutcitI3TJqAK6P1nRYWqV8im+XAJDs0qYTcWcVpUNkh0T6mmDO SKZjeyAXXpzYsLhKr32Zh01L6hMm9Ou/P9Vqad6lWw3zk19ih6aCdQ0GtcqUYu96vzDb o0ag== X-Gm-Message-State: AOJu0YwcTNDzBTqQZ+o56cVzrhL7WeCKJMmstFowAqOV4cDBVzbjhxnk IJG8EmGC3tEzbKiAIAnO9mfqLQ== X-Google-Smtp-Source: AGHT+IHxEMstyuzhFSypoWAtvEF01jbwfbhJStwXMTx9dgfqeYevn8iU1RhTH/B+foBI07WzfihwHw== X-Received: by 2002:a05:6512:70f:b0:500:b96a:6f59 with SMTP id b15-20020a056512070f00b00500b96a6f59mr3746522lfs.56.1694690215249; Thu, 14 Sep 2023 04:16:55 -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 g15-20020a19ee0f000000b004ff7250fa02sm234277lfb.179.2023.09.14.04.16.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 04:16:54 -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 02/17] pmdomain: actions: Move Kconfig file to the pmdomain subsystem Date: Thu, 14 Sep 2023 13:16:50 +0200 Message-Id: <20230914111650.586477-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 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 c32a76b51840..8acb10bcdec9 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -1,4 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-only menu "Power Domains Support" +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 Thu Sep 14 11:17: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: 722953 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 1E392EDE9A5 for ; Thu, 14 Sep 2023 11:17:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233910AbjINLRN (ORCPT ); Thu, 14 Sep 2023 07:17:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233625AbjINLRM (ORCPT ); Thu, 14 Sep 2023 07:17:12 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E38891FCE for ; Thu, 14 Sep 2023 04:17:07 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-502e6d632b6so1020097e87.0 for ; Thu, 14 Sep 2023 04:17:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694690226; x=1695295026; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=JMk7fcL+OM7TMTCrC+x1UWkNtvLf41klCSKq8e0KE7Y=; b=GmqdCGshZlWFY58PPp8zx1oeSt2zroYraJhpBBpM+i57p3/7W2vIvdi2CGgcSVWyeV nOEH84ulKPZNM2FvOZTI0H/L/0mE71ISAjUkorXep7l0JIopurLfyf8H+F8OLkQhPoQT BU3XzLd7Zp2/EKn+NmT2BuDYFxCHeVkMsMQsST06vYn0DtOD77T8TWbPFt9ZDNcZteiz g9o9j5NeNmg93dv7094v0x0tfOqWH3M2TaaP3A9vXa7I1eRKh2G/RQRSdUBxc9y0DWg4 cxj52aGb+50cLlhPTJvL5S2r+oPxuviUWaAwGfhf54NkwtglVCoTwk0hJai+kub/EGIi hkKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694690226; x=1695295026; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=JMk7fcL+OM7TMTCrC+x1UWkNtvLf41klCSKq8e0KE7Y=; b=HQ9rRo9bmK+EsXUfwt2RBePbSgylmKEMwQqt2aZIw5AFhBbSXIG4WInO1sBy7jGecS ieQvYHFkWeLZf7nnjSS3VqJa0w9PRUpb+xeb7XloSV6V6g0mcY0buHY9UI6VVWjtXfEn 3canc3hblfd+ybp8JI0j6vX1lArruScPD+PES/9J87W3ZMgCWEtymrDaiCdx+HWhCZWx gzPJFVnz04pKBeMNfZY7j0Hm8DaMvO0L28djvHqqfBVXTkjkkvax87qUv+SKWSWQfb2v UBm2XzItrZ6aQi2ISgDn1dJy6j2phBv1q9sHjVFICruzZvJyiB9RsIjs0cpWa2YreDjp DaFg== X-Gm-Message-State: AOJu0Yy47YrTfp1fqDIiSASNQOV/dOmfD04E9/NHFnpObMPHlT9nqBPK MVMLrLkBxXoCBCMlcC45fZsOkQ== X-Google-Smtp-Source: AGHT+IEHCRZ8RnlKrel3ZKeQ/pul7iLzreILlx20wrdZdHBApccysL2Xr01SwAAI3n4m5UV7sCVJ3Q== X-Received: by 2002:a19:6918:0:b0:4fb:9f93:365f with SMTP id e24-20020a196918000000b004fb9f93365fmr3772353lfc.38.1694690226095; Thu, 14 Sep 2023 04:17:06 -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 c5-20020a197605000000b004edc72be17csm235958lff.2.2023.09.14.04.17.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 04:17:05 -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 03/17] pmdomain: amlogic: Move Kconfig options to the pmdomain subsystem Date: Thu, 14 Sep 2023 13:17:02 +0200 Message-Id: <20230914111702.586501-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 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: 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 8acb10bcdec9..07d2f8165abe 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -2,5 +2,6 @@ menu "Power Domains Support" 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..ee1affffbce6 --- /dev/null +++ b/drivers/pmdomain/amlogic/Kconfig @@ -0,0 +1,39 @@ +# SPDX-License-Identifier: GPL-2.0-only +menu "Amlogic Power 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 Thu Sep 14 11:17:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 723461 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 3BDA5EDE9A5 for ; Thu, 14 Sep 2023 11:17:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236416AbjINLRX (ORCPT ); Thu, 14 Sep 2023 07:17:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232865AbjINLRW (ORCPT ); Thu, 14 Sep 2023 07:17:22 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDA771FC9 for ; Thu, 14 Sep 2023 04:17:17 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-50079d148aeso1432197e87.3 for ; Thu, 14 Sep 2023 04:17:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694690236; x=1695295036; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=i01ZwhFKlrFFwp2TeTntBDNdPU8fSl314WlanHljcec=; b=opMpVPzsFDWclZZqyZYNinrucsgVFWEDpzLsA/VLI+R4CQ/lypGcn87+7dNbWoa6OY PmQScH1I3vth8ih6qJqy6+TWRTV9EYiXrzAoEDdsQKZ/cUKot3EaOWZihv9gbmaL88GI jrxOPOs/aGrEr1J8XBY9/SpIDwgDETv7CLMBylhCRzk1YDKidjOn2s1l6vSjvnrV6Hlk 7NeLePvxvM3NVZ4VBVl+y7ljlj/QfjJdlKvIzzgxEKinJE9DrYqYZiigAh338mvwlIEC HXXw2iC8yaHlXOigfoFf/HhawxtGA8Iimpg/mOd/GVvY95dZjt5kfVYAflOzxfar8mG/ C2Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694690236; x=1695295036; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=i01ZwhFKlrFFwp2TeTntBDNdPU8fSl314WlanHljcec=; b=Odq0GCOHuDlnNBNmguf7D1d/xSsO+7n61laOYakaYBS9s3TUPxLu3c1C39ZQIYGNho MoPe8Jbjq/etcbL9FdxMte7kmoU9+ccCdtLIMzNwv5J7A7C6U9Hx7I4SLZ1qN+bS+4xr r791fPzNhxkA6WUz0ALQpjcnvrxKSk9ICJ0uKJlr7WcBwGLhUoOVCzjXUJdW24nFYjlI RkpjFGMInkFUXM107rprJk3iE1x3prS1I8c0H2b9FvravN4pD66aD0AO4see4q144Tj9 CnWe+Bv62ofIOpC66PlQ10h6LSeAvOJyMOGH8KV8zX1cASF9GR/BaV2M+y8i4askqGIU 3jkg== X-Gm-Message-State: AOJu0YzN8/Hof9Ke/gf3TqQ6aFjoN9XSzFu43wTNh1et63t2RWM4+F1f +YxUaQv9YktH5Mox4eNIZDfrlf1ldOKu+RskS8cdqw== X-Google-Smtp-Source: AGHT+IGDjoyTHtzNmJttlaj3jNDjN0HhiwRNEyZ8rwnvs9ZEjBQwpDBAiyBTONV+SlXcQ/a1Fasksw== X-Received: by 2002:a05:6512:312c:b0:4fe:7dcc:3dc1 with SMTP id p12-20020a056512312c00b004fe7dcc3dc1mr4103999lfd.44.1694690236028; Thu, 14 Sep 2023 04:17: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 a28-20020ac2521c000000b005008cd93961sm233024lfl.192.2023.09.14.04.17.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 04:17:15 -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 04/17] pmdomain: apple: Move Kconfig option to the pmdomain subsystem Date: Thu, 14 Sep 2023 13:17:12 +0200 Message-Id: <20230914111712.586522-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 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 --- 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 07d2f8165abe..55a9ca191849 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -3,5 +3,6 @@ menu "Power Domains Support" 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 Thu Sep 14 11:17:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 722952 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 37A6CEDE9A7 for ; Thu, 14 Sep 2023 11:17:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236455AbjINLRc (ORCPT ); Thu, 14 Sep 2023 07:17:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230141AbjINLRc (ORCPT ); Thu, 14 Sep 2023 07:17:32 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F8871FD0 for ; Thu, 14 Sep 2023 04:17:28 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-502b0d23f28so1402839e87.2 for ; Thu, 14 Sep 2023 04:17:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694690246; x=1695295046; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=V3mbgmnyoTrMzfffrRfxAP2RkuD6rjug1WQEvOx/n/U=; b=wWKnfGgixpdGbd7X4MXR4aRd1/BE+XkIMHECkIOmxY0LaUEJeZA+TEbJ0RchFFATaC xna2aBnr2EcZ+f9EXthRf3c0v52ZunDaY6zMaGFfl7RfH/obvvBLUmUFYHBwAKudpwrU Ny57VzA3zRQkhuBdNRXG/Y1BN3zeUv7HbR2j2iKYUj36+TrR2/kKECUJsbYDKQco/pPH z1c8ZfH1hrLh+CZ6L/OpG0B2iHgWF8B1kqq859qpO70GbZhWxk6xKcMcXXdkME+Ov7Bf VDKBbUEnCMD29LOMe5g997FNuvDAryZOuvWHNaRZVqHibUNsKoQ+Z8Uw2bvuBNNbK3Kp 1nww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694690246; x=1695295046; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=V3mbgmnyoTrMzfffrRfxAP2RkuD6rjug1WQEvOx/n/U=; b=uJ4AafI318h38tWYXHM3+CPMyGhKO1B6pug6F7Xs39eQ4IwQ8sddEwMSMis3whOSNi Mc9moljQqSzyohlVdD0FZV0sx5s0vqLRJDxx8QyTBaOGjsBPR4uNbiVWg1P8a31WCAGL OewT6UDN/D3L6qbWs6xZsza5MLwLY7OCzXADUdoFgytxFKvXywpQ9Y8zLsy7mnrLXY2r 5HAF6VCWxF9mEUcK2L82HQqtUEiXv39hGxYjp5JnfYMuNtuTO9UQfi1GSUU2Pkiq+E3q Vsb4A5sUMnDXevOI/7y+d6mx3/Z2c6UyT7yiL/CCFjBawKqjxHsstR3ANd1lg32MNRoc Eybw== X-Gm-Message-State: AOJu0Yxl18K0flYG12+iWQ8p7+8/PojgKIgvuY3XTT4FH9qEoEnsIC/t sbM9itYQI70SoNj8nE0cc76J6g== X-Google-Smtp-Source: AGHT+IEJ5kh0s85nneZdUyXZTaobo6Y9st5U7pZU2uaiIVoFsmea5woLy3l43yDv/hY8fs+c1T43FA== X-Received: by 2002:a05:6512:1585:b0:500:bf33:3add with SMTP id bp5-20020a056512158500b00500bf333addmr6038147lfb.47.1694690246319; Thu, 14 Sep 2023 04:17: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 r9-20020a056512102900b004fe48d0b639sm237143lfr.83.2023.09.14.04.17.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 04:17: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, Florian Fainelli , Ray Jui , Scott Branden , linux-mips@vger.kernel.org, linux-rpi-kernel@lists.infradead.org Subject: [PATCH 05/17] pmdomain: bcm: Move Kconfig options to the pmdomain subsystem Date: Thu, 14 Sep 2023 13:17:21 +0200 Message-Id: <20230914111721.586543-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 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 55a9ca191849..a0569a44ff4b 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -4,5 +4,6 @@ menu "Power Domains Support" 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..a4ee960b4749 --- /dev/null +++ b/drivers/pmdomain/bcm/Kconfig @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: GPL-2.0-only +menu "Broadcom Power 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 Thu Sep 14 11:17:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 723460 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 E003EEDE9A5 for ; Thu, 14 Sep 2023 11:17:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233007AbjINLRx (ORCPT ); Thu, 14 Sep 2023 07:17:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237579AbjINLRs (ORCPT ); Thu, 14 Sep 2023 07:17:48 -0400 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEC1F2113 for ; Thu, 14 Sep 2023 04:17:36 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2bf8b9c5ca0so12676961fa.0 for ; Thu, 14 Sep 2023 04:17:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694690255; x=1695295055; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=FEe0O9FNWF0PRk2EeQvO8Dbf6wLGmNuQMW1XScp3I4I=; b=rpAyaVGodUaz2/bGnt6kIKtrWgpC2AGCyh3ku0tzkccjJtLq659+/+B5u91rxbTx6B ufjuGzoRpaNLNBZdScqnxeOxbTis3oHh8oRqy+1iOaJslLWTjv2ut4TDVUeUradUEBQw IgdubF4ZYEgXQmt1GwVbKQlvE2B7Y8/6OvP1wCH4FHeovCuqqdcoqX2oQeAUjGaZOGvO o4GmUDfO9XArDOOIBIvvXAMLGk6XJ0AtZXVoW+uvkOLtBVNldVOfpLWDW/F+x4XtfW93 PA+4l09bjgZdWABTSPlwmAHlt7HqtjQkP3w9NU0QsBEpRlwCTlJ/BDvrBQPsIMqhjqqF dqLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694690255; x=1695295055; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=FEe0O9FNWF0PRk2EeQvO8Dbf6wLGmNuQMW1XScp3I4I=; b=vJVcaBZ1ut4FL52Iks3At6ZohqEhEhp7I/QmcKQvD7OB5lYhTXGOGpkuEcE20BNHg5 v0/lKRP90FYAH+KIxJgMfA3tbaHPR8RncF2f2+jB0hpwg+bjyGKoqO6wFK7/MHxm3dJP UtVik4jeZ+KfET4nlFYpJ3oGUAXIvVRBBkzlBa8VMrjpBEulzHxrX8+BJkf3jqHWPGgt zs8J4fc+u3pS9rtGg49IWo/dqOcdYhUQxW5CnBiN2B5K5Ld7J1uFneN310l4B8JQJGQU vouZIqyQff/osoo94greLDljjgNdIKE594FN4W1T13pqElDW5+fHV67XFDiiY/ovi+dR GSKw== X-Gm-Message-State: AOJu0YwYXlO3gUmGScRePbEzIIqMeV40Xpt7XRCrwh1WuF/qUlVEnVB0 w/OHLFXZ/8h3amoqwgIIs+4mDA== X-Google-Smtp-Source: AGHT+IGaEOK/RpuGALw8XgYDXCUZMKnfRxZ33kxqHOwpa09VEzdpFcREoV9i67p91oXBarsERZBEbA== X-Received: by 2002:a2e:b045:0:b0:2b9:3883:a765 with SMTP id d5-20020a2eb045000000b002b93883a765mr4950619ljl.31.1694690254937; Thu, 14 Sep 2023 04:17:34 -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 h13-20020a2eb0ed000000b002b9e65912cesm226190ljl.140.2023.09.14.04.17.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 04:17:34 -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 06/17] pmdomain: imx: Move Kconfig options to the pmdomain subsystem Date: Thu, 14 Sep 2023 13:17:31 +0200 Message-Id: <20230914111731.586564-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 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: Shawn Guo --- 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 a0569a44ff4b..8a02523b62ce 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..ef964df0f856 --- /dev/null +++ b/drivers/pmdomain/imx/Kconfig @@ -0,0 +1,29 @@ +# SPDX-License-Identifier: GPL-2.0-only +menu "i.MX Power 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 Thu Sep 14 11:17:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 722951 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 852CBEDE9A4 for ; Thu, 14 Sep 2023 11:18:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237282AbjINLSF (ORCPT ); Thu, 14 Sep 2023 07:18:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237870AbjINLRx (ORCPT ); Thu, 14 Sep 2023 07:17:53 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83B8A1FF6 for ; Thu, 14 Sep 2023 04:17:48 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-501cba1ec0aso1410475e87.2 for ; Thu, 14 Sep 2023 04:17:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694690267; x=1695295067; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=mRH6OrUr+z0cZQpLuLGyuJMctqYD163Kr9u2QpwLYcY=; b=Y4MC9Gb+imfY85bDzmArSXAPidOsPoh6Ba8jQmmjr/W3XCmitVnzuvZ3v8cc3b3ejY E4zA4etgS85hJMWUrMyqLcOGm2Y0YVeC6JRwwRLFFgDCjHxiWV9s/eHa4rbXCYYUWUUa KK0h24KcZLwCxLe2GDkHNuChmFdFJVQN5DCx3EU9p9KTKRBHZHkQswVcN7AEeiQF4+UJ Ewnaiw+HVxDMWc6nINGSvJ6/GG3EzB8MmYXcFh5GoFrT/6gimzg/fYv+PixbuB7aBvX3 IUYdXwKVWgm7dCEUDpSxVCstMvUW+Jdhqi68mXg7GMYauEVjsEr71wqAZvQ0bRDH0BX1 yF2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694690267; x=1695295067; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=mRH6OrUr+z0cZQpLuLGyuJMctqYD163Kr9u2QpwLYcY=; b=XEOVq2xSaFEHPOg+fAypR1ZfN53KgdYUQJn7G29D0buq0tyvKAGInU7O3Daz32ABqt qht2rIkH7MZB5E0sIpptHXMf1o/zMMO0oztk1dayymW13VvUoUC2SK6Wp4T+/lc5vCnx iD9SjsTf/g9UDixDAIWos/oUNmQA+AL02AvYutGS+Up7dt+DOt3O+GjVxHA4pVelOcZP 9LWU5pHoM+ez1WJyQqvn2fK5qdCulDNGQ/BvAJCNT6+qd6tPSwSK9Z2A0y7z+JLRC+AW wXrpppE9QmcdThuWS/jJWXY53SimO90q/uIbzEMpoL97kTmfkMJqO6ueWGrgvXVL1vlE JFCQ== X-Gm-Message-State: AOJu0YydVmuKCl45AfE7syuQa62xVim31u+U/iZbMu9q3lfUS4Q079Nz NFDhcHc4lQGs+3W1WOgv0Vbc9Q== X-Google-Smtp-Source: AGHT+IG+zvfdRoCHg863MO1oc+o242dOyN3OArQ0YkCJDQaEF6fm8SXbA4YZWUC5fkXlYy9dpmXDxA== X-Received: by 2002:a19:4316:0:b0:4f8:5cde:a44f with SMTP id q22-20020a194316000000b004f85cdea44fmr4020739lfa.10.1694690266851; Thu, 14 Sep 2023 04:17:46 -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 q12-20020ac2510c000000b0050092263a20sm236630lfb.6.2023.09.14.04.17.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 04:17:46 -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 07/17] pmdomain: mediatek: Move Kconfig options to the pmdomain subsystem Date: Thu, 14 Sep 2023 13:17:44 +0200 Message-Id: <20230914111744.586593-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 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 8a02523b62ce..5929f2d31588 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..184011b51615 --- /dev/null +++ b/drivers/pmdomain/mediatek/Kconfig @@ -0,0 +1,29 @@ +# SPDX-License-Identifier: GPL-2.0-only + +menu "MediaTek Power 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 Thu Sep 14 11:17: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: 723459 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 E62F1EDE9A5 for ; Thu, 14 Sep 2023 11:18:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237779AbjINLSK (ORCPT ); Thu, 14 Sep 2023 07:18:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237644AbjINLSC (ORCPT ); Thu, 14 Sep 2023 07:18:02 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8F8E2112 for ; Thu, 14 Sep 2023 04:17:57 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-502e0b7875dso1439496e87.0 for ; Thu, 14 Sep 2023 04:17:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694690276; x=1695295076; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=U0VQhcoNLNdF2hx3KPbex70/0qm7FIzVv2M9Uuzf9Fw=; b=UI2/jrQExavD+yFADzOdKG84ojUmC3d+lagDmIGjgUlMWUs/v3C6kVD8X8fWbnnptc 5TCsbYmwMB3ZxWkVlDc+O0UBqrsOwtjUhzpQlcND479rsJGTtJJ3KFn8pbxfC6+ntLYx fyOtFYYG/vU1XcS+9L0s4pK1w1HmLp2+quXlv6eNo7hivW2fxVrqd9FbqRIDH3SXDXxC DdmoLW5uJ5gCHMcTkz+yALuYKKw59UFLi+TNgLDEMGr0kOn7MrCrKwELO3F9XRx2L5OH ocOImPRVvmnEpKuNpD/fqIgYrYsr2vMeMTGobzZT6is5tnVqOaO1ZUcgmyNA/LJ7s93Z wEcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694690276; x=1695295076; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=U0VQhcoNLNdF2hx3KPbex70/0qm7FIzVv2M9Uuzf9Fw=; b=k8TU/nWjp9z5u+hmv6hkLVW+rjiRCO3s6ItH5UMaHA1n5dJtACp9+3N0Rd7FFhfNH9 URT8Xc19I8HHKaWxu2v2CP1Oxuw0jGn4JNL9W9K2Ofney9bfzmMwRwnqafKxLJYRnnSm LjKEIU5BUIVJrneW+49Hdkqanuv8aO/0U0ovG5SrTGu3Yleql+HQQBf6s0ux4TMAczzE Yv8hZrmLggKbLyr3rvAn2HEMfE+zNGrOwhoGO3T6bFn2qGXhKCbnha//hYmpUJ0m+LRz ygxrUsPHg8v2udTSMoueX8tmU6PqshCme8QyU1sG/FJ5rnNeTq5ohFdBrmavypcnWSDg 5G/g== X-Gm-Message-State: AOJu0Yx+24fLZ2WsLmAH7nomW8SDb+G7MG8y2Kmeq0xnKFq6GATptpvl mR5JL9e+VkjaKJOXKtgRHAzmyA== X-Google-Smtp-Source: AGHT+IFzbzNrbUhVTufPQvnBjGY+RhRHGIrGu01HNr1LOR9JVppeqQfxnWwuIVvHuE5VImtOF16wYA== X-Received: by 2002:a05:6512:3e26:b0:500:9524:f733 with SMTP id i38-20020a0565123e2600b005009524f733mr4664580lfv.20.1694690275954; Thu, 14 Sep 2023 04:17:55 -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 d27-20020ac25edb000000b0050234d02e64sm240423lfq.15.2023.09.14.04.17.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 04:17:55 -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 08/17] pmdomain: qcom: Move Kconfig options to the pmdomain subsystem Date: Thu, 14 Sep 2023 13:17:53 +0200 Message-Id: <20230914111753.586627-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 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: 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 5929f2d31588..d7b554c5c384 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..c67308337805 --- /dev/null +++ b/drivers/pmdomain/qcom/Kconfig @@ -0,0 +1,41 @@ +# SPDX-License-Identifier: GPL-2.0-only +menu "Qualcomm Power 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 Thu Sep 14 11:18: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: 722950 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 4C7BDEDE9A6 for ; Thu, 14 Sep 2023 11:18:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237286AbjINLSS (ORCPT ); Thu, 14 Sep 2023 07:18:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237616AbjINLSK (ORCPT ); Thu, 14 Sep 2023 07:18:10 -0400 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8ED1A2100 for ; Thu, 14 Sep 2023 04:18:06 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2bce552508fso11917491fa.1 for ; Thu, 14 Sep 2023 04:18:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694690285; x=1695295085; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=w6tggu3w0rnURlQWc2TjYOylJS7t75MUFO6fIbxQowU=; b=xgHp/SHvYIO414qHUQ4ByVJKxM8dlkynGgzmmWVpXTDfOYLc/FOktPIT6Oc6eWFg9W noqE8bL3WWv/0Bb4wb1+HlmkZgVES0kKpnXKk4/lq/+CHq0zs1lMHJo/w0U4016YamXM V3spEJRp6RpqjRH7LlIZibpPQ0Oz3VV7mLXcHTMJM9ltilR2rIoAOnXOH91lES1rTM0N r+eVPFIu120858EFpcGaKcnsd9lQmbVhR/ajwx0tNp6wdocCHcdmepUp6QlAft8kVTui u/9u0KxbNvPZGVo8JDjSPG7RXB8xaBWBQ71xO37Gl7uGnC7os/ic6nuhLderreqENqrF aPIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694690285; x=1695295085; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=w6tggu3w0rnURlQWc2TjYOylJS7t75MUFO6fIbxQowU=; b=Qqe1JlINS/egsHT+M41xD/LsmfocAlhrHxvy0ENWTksIOj2Jx0kkUJySVeMWx1idQO ZEGuOz9KKIrmNiJ+2zZp0M0s2Mikr3aYGY0NmEXKFEJjkc59IS5puqGZw3uK28KNy7Jd UTq5z3rssiZfTi6L+fhKtM7My0T6wR+ni8dG7rugOzl1WfxoGTwLTt8wSKn5eTvEQamj dvTocUTXldpg7GqbdIEI8hwbPjSc9YhZFvlyfx5TH23wN9XETk36565ubAsEwpRgLGVq Ol8MCQTPUmI3YpIK75YKL9Uiw0ODyVuQweTozmLFqyNbsUADvs21/FlBoKSquPhRrzeo 0xFw== X-Gm-Message-State: AOJu0Yzv/SJXxshP1j4QAcMWmyvh+dwjNDk0o7CvFWWzX4c4cH615Plh 0fnIBDh1ehRVOSzpMgPNZ6bWyw== X-Google-Smtp-Source: AGHT+IFFVQfYZxgU51JniE1rKigE/3fz3t0WhNHu29fyri1xMYFqe7wzn52XOTD5PaH+1d9DT+vqDA== X-Received: by 2002:a2e:90c6:0:b0:2bb:97af:f37a with SMTP id o6-20020a2e90c6000000b002bb97aff37amr5113252ljg.28.1694690284896; Thu, 14 Sep 2023 04:18:04 -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 p19-20020a2e9a93000000b002b70a64d4desm241807lji.46.2023.09.14.04.18.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 04:18:04 -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 09/17] pmdomain: renesas: Move Kconfig options to the pmdomain subsystem Date: Thu, 14 Sep 2023 13:18:01 +0200 Message-Id: <20230914111801.586648-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 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: 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 d7b554c5c384..e8181782751c 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 Thu Sep 14 11:18:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 723458 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 7EA99EDE9A4 for ; Thu, 14 Sep 2023 11:18:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237415AbjINLS0 (ORCPT ); Thu, 14 Sep 2023 07:18:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237106AbjINLSU (ORCPT ); Thu, 14 Sep 2023 07:18:20 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 853591FE3 for ; Thu, 14 Sep 2023 04:18:16 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-5029e4bfa22so1399975e87.3 for ; Thu, 14 Sep 2023 04:18:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694690295; x=1695295095; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ZgTaOHBfImHk+QFs8F8yB4KkJMugQjfBX2V5uwaw/P0=; b=aTDeko3H2cmVPoDR2YSNl/lLrq7jQ3bzHNc+p6e+gwAxlePJpTicNa0KixqyDLCUEt myiUyZWwdMUdgCEL//tSW90A7TushNqjjkK3GESAmQ65a+W6s1x5/hxYAP3LsYoIzyas sj4JfWklOIGvByy9PxA8OvM/XKAuhOVePFoqxiRvAl55EEAsrbpY1/0Gn4/d93MFW8Jv QN8rxgmyF3rqIQACnpqLFzb60ggP1RryZYRgREBg0C32Ec8VufRyocxgFQfz7cRaHHZY qFOYz+QFGyxn6CWTZjvRPG03cbYn+t3pWEgisFwYFS0Z2kdRNHKIf5bcp6Kgt4V6sAzk R08A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694690295; x=1695295095; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZgTaOHBfImHk+QFs8F8yB4KkJMugQjfBX2V5uwaw/P0=; b=UCadxYMNWqQJpf+97xzgVdCjN3Ou72ouUWSm2bqUnVJsusx3e4SvtydpAUYt3d3wv3 B70I+v399MK06Qd8jEwc8h9kRaW72udet2KjSv7zCPpevkaPtIPKgkbrn0ogzZm+5W1E 88xUmTtxfBqrTXP1CHFKVtjbH022256zlgyp3xt0eZg9+K4JZG456S9MCL2Lp+oUIwhU XOEzyFW5iXzmK2VKD3fIfEYNJxaxEdNMoGwwluFDStVChVL/w23g1vetG0gE9Sj3Pxid /bBWcNjBa1yVFUVk79/5faRgAmxFvTyO6VLbKP1EslHhGttUXfIjMglr5vZUAb49pfgH ssMg== X-Gm-Message-State: AOJu0YzRUqDyuswc2O1rwcGd73tOvb101t2jtv95uZImqjqGDsVTDWE6 2t225KRGlfeUdalbWFoLP9eOYA== X-Google-Smtp-Source: AGHT+IHQhK+nElK2gIDtqvOYyMwT+vSbvR3SdvfQ2bS1iSqYmdY9eUO8VZUnxX/es08eft+TEf1dEg== X-Received: by 2002:a19:651d:0:b0:500:76aa:b962 with SMTP id z29-20020a19651d000000b0050076aab962mr3733875lfb.15.1694690294671; Thu, 14 Sep 2023 04:18:14 -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 d20-20020ac24c94000000b004fb9536bc99sm233052lfl.169.2023.09.14.04.18.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 04:18:14 -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 10/17] pmdomain: rockchip: Move Kconfig option to the pmdomain subsystem Date: Thu, 14 Sep 2023 13:18:11 +0200 Message-Id: <20230914111811.586668-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 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 Acked-by: Heiko Stuebner --- 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 e8181782751c..74066c5daa37 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 Thu Sep 14 11:18:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 722949 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 82B78EDE9A4 for ; Thu, 14 Sep 2023 11:18:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237799AbjINLSm (ORCPT ); Thu, 14 Sep 2023 07:18:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237644AbjINLSe (ORCPT ); Thu, 14 Sep 2023 07:18:34 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E80B212D for ; Thu, 14 Sep 2023 04:18:25 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-502d9ce31cbso1371039e87.3 for ; Thu, 14 Sep 2023 04:18:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694690304; x=1695295104; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=dxUofEX7JvW4d1sce0CQyOiNxdylns5iYNZqQoeIs6k=; b=jt2dV+xCcdsHan5nRusfwoJ2jmHu2siafSZKt52McWqoJyFf5L/I6uL12536fu2trV zfSXXW86lz62V5ed3JYSmxQ0jpivpOGB/Uo/3VPQ+zZHzMq4hChJp8VTj4VZnfM79/bm cMpUtAv+eq6ysfzY9ByNyxS2fZ5+gveqftCF7UvPJofuIpbez2+Y27WAhbeI2lXU+Pia wiCIgQVxPT9MVS4qm8JUzhexDWMznxMkDifQYVrN7mCTnpkM68NHq+5Bjst99khUDKX9 +9h9MZP02GlNARGn3dq88xuzLteLfhxNXzARlHRcGO7a3UeaV7qqTvt04FE2TjkwZ1HG oQ7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694690304; x=1695295104; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=dxUofEX7JvW4d1sce0CQyOiNxdylns5iYNZqQoeIs6k=; b=lB+BMCwcGJLSjSkwmUvyLt1+x7HVQ6ft++oOzhFp/kf/5PPS2DurmfPdrbsmlDzhGf YO5oRl6dUFVBuvN89Aiek1rxl76PDODSuuukLXcdzho1jbvrY3UQwlJgCmvA6R51QZag bm4uwZYK44ZQFbubmC7K19G1xEfV08P6ZzV6kA1TncImcJtFyLy6bFWJdcllF+gN6UEV nUrK1cslsvoh7iQ+kd8qnaH4e85SR+RLV3LbCOhBeTrLaaWaKFobh+yrzaHlFOGgiOjg tsE4/hQmdmEX6qVVuSiNAlWteGZIq6xi6N/hD5DNyflwlM9mr469YkslHeFvGl7d+oKH bBJg== X-Gm-Message-State: AOJu0YwFUuiNKrHKA4ZdHZocK57OgSvvA4zr4c6NfvwUAnYTaH0T0ih3 FC+9b17eYrDwcGFctI1hC6n2+g== X-Google-Smtp-Source: AGHT+IECyQHUqtnFN9/j9xE0JHalnzMd/YBsRnoVECOTPF6IR0x4USQA3KdxsBpACd9No4jnwUmqcA== X-Received: by 2002:a05:6512:20cc:b0:500:bfcb:1bf6 with SMTP id u12-20020a05651220cc00b00500bfcb1bf6mr3670193lfr.57.1694690303682; Thu, 14 Sep 2023 04:18: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 r10-20020ac252aa000000b004fb9c625b4asm231711lfm.210.2023.09.14.04.18.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 04:18: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, Krzysztof Kozlowski , Alim Akhtar , linux-samsung-soc@vger.kernel.org Subject: [PATCH 11/17] pmdomain: samsung: Move Kconfig option to the pmdomain subsystem Date: Thu, 14 Sep 2023 13:18:19 +0200 Message-Id: <20230914111819.586688-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 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 74066c5daa37..1e2c5f531638 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 Thu Sep 14 11:18: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: 723457 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 087FFEDE9A5 for ; Thu, 14 Sep 2023 11:19:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233502AbjINLTJ (ORCPT ); Thu, 14 Sep 2023 07:19:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236171AbjINLTF (ORCPT ); Thu, 14 Sep 2023 07:19:05 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DC001FE0 for ; Thu, 14 Sep 2023 04:19:00 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-50091b91a83so1337711e87.3 for ; Thu, 14 Sep 2023 04:19:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694690338; x=1695295138; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=iylS42xIwfKwNaPXWAAIowhde9V6LPMJgFO7eJ5XP8Y=; b=a1LjuLWdYSF4u6aaxpQYCUktao2jdIXeOBsPUdR7nVLkHvR5xhHITwYmwI51H4zJP7 D/NzTVyJPQSvVTi+13oBIajLwBsHIfblZMBEhj57TUMUdmFOMgbDjHCXk1/EUbG5Rw6U OU/iUw8R1L+IC0t20/2r8cbRoH7v/xzQRSh4odDdeMlahpX8zrFULkTZG0F4ulZKAgLW Bxbp8UUfiQEqTsVC0EjVctIcTK1ZULmiddmk2wO1tcr53Xrhi4EdkP4MDgGuB8PdCi4Y pxjdD16Z1cDfeeGswlDWsFSQOtApNGO9aEQgT2epyj5m2B5kcYSoBgWitQwTvwmBmn2R z/cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694690338; x=1695295138; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=iylS42xIwfKwNaPXWAAIowhde9V6LPMJgFO7eJ5XP8Y=; b=HP/K99zj8eN5fqhA7ouNDQMjXgA/HZ6VwdM2frBW2dyhoTlLRoRs56xUOBk20d5e5L uY7yakDG1dJRCdlttffY4ziD4CiVB2xCFfr7qoTFJ2Uj5eCI6GyReCZjqEWbZB6AvR+P 03kkjpoaULmgipLm/xMtNoLE8CWlyyImrGyzqf0SM3eC0PtrtuGz5+jNz4T+Fm6RKvWN qzgPo8+NZElB3gsxelTSy5lBQZu917FJ0dpujZHoKNdCpL/3mkU+IuhQbR/E3aKMaJer oypnXPas6U7ihrRvexsMDWVM/4QpJSJB1vUr7njL+vdV6qsYJqGgPDN1dPTr389FC9rr xigA== X-Gm-Message-State: AOJu0YyQZqrbT9ga8r2xBxTGTVTQAMjIQgaJzlANkmJOnutKHhfhVn4U cZUviFI11l1fLDue8DzsU7w1VA== X-Google-Smtp-Source: AGHT+IH2zQb2iOtho5IVrl2r1apG7cvFkXqz2DHfQwHHBvuWKPs6io8VlsMrHsY2rYku1hB8rETSoA== X-Received: by 2002:ac2:5b1b:0:b0:501:bc0b:6118 with SMTP id v27-20020ac25b1b000000b00501bc0b6118mr3988441lfn.50.1694690338693; Thu, 14 Sep 2023 04:18:58 -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 v13-20020a056512048d00b00501c6d78f11sm233222lfq.298.2023.09.14.04.18.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 04:18:58 -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 12/17] pmdomain: st: Add a Kconfig option for the ux500 power domain Date: Thu, 14 Sep 2023 13:18:55 +0200 Message-Id: <20230914111855.586724-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 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 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 1e2c5f531638..cfe9ea754062 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 Thu Sep 14 11:19:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 722948 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 66659EDE9A5 for ; Thu, 14 Sep 2023 11:19:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236413AbjINLTO (ORCPT ); Thu, 14 Sep 2023 07:19:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236986AbjINLTN (ORCPT ); Thu, 14 Sep 2023 07:19:13 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D9351FCA for ; Thu, 14 Sep 2023 04:19:09 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-50091b91a83so1337941e87.3 for ; Thu, 14 Sep 2023 04:19:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694690347; x=1695295147; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=re3ccXgEY4PCpIWQZxRpCI/lf6THlIYVapQUmLrOGD0=; b=wqE0GRHlt8eWjBA5A4IbiXHm0duWqWvTSJYXXuA4U8GHec3+k+3HKM9SK65k2RuLGc 36EYV9KaHiFoGV3YrH5SPDopWEmbs1wNVKBYUs47x3xK6S9cL4oOxm+Us0LrlEUZ3M3D XH9+fvBJYrokpqL+JWUFkRrQ3KjRi+60iImfGcGFft30yM8CXxUJQu/9OGc3PQke/Ivs YtEhTXQLu/cTfVxqwyOuHcdWcvDx6wrjmsPnpcsObeASpcpGp0fa4Q2kXyICuU2lXlLg 683/09SwfbTW60K4uHMySTtODWWE40Z2cnQBXfoI90rzDw9bWaT8eJPpfwfDTPXDwxUi 5W/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694690347; x=1695295147; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=re3ccXgEY4PCpIWQZxRpCI/lf6THlIYVapQUmLrOGD0=; b=W7cImVu3Lgt0FrsAR8RBC9XyKFnLSj/SZcmtL4WTYBzJXGUNLoj2MfeTX4uSqQIuVH hdoL0FocpEBzI9UkCDPZwi29DXlt1lvCp3GRYt3o0zJ390r8O0f8J0EwqeaCImNWEELt 0viZL5caswHrby3SXvjGpAWgix27o7aZfRHKyzbbSp/1cppsSUrtFr3tIFt04FKKt/Jo cuCq/tODRI4f9U2PbVtBDwdJJ3B+MU/GbrwXgfG2t//0v1q4K1uwxLicWZmbrlK1CQUR /hrHf+iov5xhs6RR6NB58oivrjFtbAKSyVfbPJOcIgdz4iUYQ/diomoxXoTvbJnc5JLz paqg== X-Gm-Message-State: AOJu0Yyo9HWqPU6tH379KUVCIawnhMyrquuOtUe1+aUh5OQEm0u26LuV IXiSOqR31DYz9JJ758a4tUqmMw== X-Google-Smtp-Source: AGHT+IFMIk+ZnIOfvzIXcwK0L67jrQVRTEsaCfy623g2MVHPfq9rLx8+/oZMJ+vnLz8E9Es/1EIlYg== X-Received: by 2002:a05:6512:12d4:b0:500:c5df:1872 with SMTP id p20-20020a05651212d400b00500c5df1872mr4961180lfg.44.1694690347245; Thu, 14 Sep 2023 04:19:07 -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 x5-20020a19f605000000b0050089b26ea1sm230413lfe.276.2023.09.14.04.19.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 04:19:06 -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 13/17] pmdomain: starfive: Move Kconfig file to the pmdomain subsystem Date: Thu, 14 Sep 2023 13:19:04 +0200 Message-Id: <20230914111904.586744-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 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 Signed-off-by: Ulf Hansson --- MAINTAINERS | 2 +- drivers/pmdomain/Kconfig | 1 + drivers/{soc => pmdomain}/starfive/Kconfig | 0 drivers/soc/Kconfig | 1 - 4 files changed, 2 insertions(+), 2 deletions(-) rename drivers/{soc => pmdomain}/starfive/Kconfig (100%) diff --git a/MAINTAINERS b/MAINTAINERS index 6b491ebcf790..b8eae18f0fb1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -20523,7 +20523,7 @@ 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/ +F: drivers/pmdomain/starfive/ STARFIVE TRNG DRIVER M: Jia Jie Ho diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index cfe9ea754062..67049ebf7265 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 Thu Sep 14 11:19:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 723456 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 22CB8EDE9A4 for ; Thu, 14 Sep 2023 11:19:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230512AbjINLTX (ORCPT ); Thu, 14 Sep 2023 07:19:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237440AbjINLTW (ORCPT ); Thu, 14 Sep 2023 07:19:22 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7497E1FDE for ; Thu, 14 Sep 2023 04:19:16 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-501bd7711e8so1382627e87.1 for ; Thu, 14 Sep 2023 04:19:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694690355; x=1695295155; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=/kiVpD+HqGq1+e/c8vvIDGsaa2qWD6QDzovb4cVyxMw=; b=cUZMz+CTOEsrdBDAsEjVLxnSVZkBODraJGmOXdSUtIRrTY4zr7ivH6Nf8bJmAA2h5b rJwmjLTWMKcDYfEQ5w1ln2LVZUxDnTVgRFjy0zp7HoPrY+1j3CssxZ1ViLPOVv6H7Wuj psQmZQphOFtnwkR0K+107pjUMGg1S1qwFU/8ykkkNFY2CWdtEH0Re1Jkj5TEI7H+UCNz el63Ow86/TxiY3lHyikrO9L7RoTfFZ19SIOy/Or2DQfbkYsV0Euoj9kX8WZhx4eYLSV+ q5vDU+jqrTdqiNpU+EXiXIs1ZNkaxuPkxXOizi+buABFiSFiT2b2KDlHbkGkm3MnVWfm 0S1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694690355; x=1695295155; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/kiVpD+HqGq1+e/c8vvIDGsaa2qWD6QDzovb4cVyxMw=; b=KQO9alLiiegKLjbolodweoPYVzAcq5ok2cVqPwdn4Nlrrarzj8cuwvqHkFKzxWa35U QBf8I0cVtxk6EnbiDEOG7rbjYe1A8LsGIQDcU4xCyGdLTAkDqEgbANXzRwXuooK2L7M5 w+uoY3sngl+J75LSF6NgF67PVaN5o+MHk/hpYA8GNDPauHxVXRgc1DzIMrQEmI1PHe+7 bi8GUwYHD4et2DsJ+3J4UeMhG4Rat5PZdXlsipjXLWeZzQbb19Sv5tVC0DyuS9FINTvk mlpb0lKYaMEI1C7SQEyvkLKQ6lAlvmZRnpIWXPRvkaNMI+h3ILkPgCPGXhYk6yZE9BfT ZcMA== X-Gm-Message-State: AOJu0Yx4CKZgrGEgQ3iTNQ/IA5txt5Q+C32trFBfE38mjaqARZa4UuXU G27NNGod3fUP9sDhioL4krNcIA== X-Google-Smtp-Source: AGHT+IFqkXKsu67+BKk6H70B+cKDioBZ+IuAUNUhmOS/mLfep1SUOlJkgAmyyCuS8EBH4ZwvZ6equA== X-Received: by 2002:a05:6512:3c93:b0:500:c3d1:4d60 with SMTP id h19-20020a0565123c9300b00500c3d14d60mr5381224lfv.24.1694690355165; Thu, 14 Sep 2023 04:19:15 -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 c5-20020a197605000000b004edc72be17csm236671lff.2.2023.09.14.04.19.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 04:19:14 -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 14/17] pmdomain: sunxi: Move Kconfig option to the pmdomain subsystem Date: Thu, 14 Sep 2023 13:19:12 +0200 Message-Id: <20230914111912.586764-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 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: 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 67049ebf7265..39f358f27f2e 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 Thu Sep 14 11:19:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 722947 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 16CD0EDE9A4 for ; Thu, 14 Sep 2023 11:19:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237440AbjINLTa (ORCPT ); Thu, 14 Sep 2023 07:19:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237397AbjINLT2 (ORCPT ); Thu, 14 Sep 2023 07:19:28 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 920501FDE for ; Thu, 14 Sep 2023 04:19:24 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-501be2d45e0so1434180e87.3 for ; Thu, 14 Sep 2023 04:19:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694690363; x=1695295163; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=MVq5zLi24ZjH2OBzcFU65XomWHmUtYcghlhLwRhU2bo=; b=vhOgmzhifgFSWfL9HAibpY55pIQoA2n7U3cebe7lpR5TwuatE18gZqulXK0/qQcH05 aqciOiGhJRrPUt4iNvLNwZSo2/NVF3xJWI37xigaJFSRdDCkJx7TjScGoJRyuAf7rhMn J8m9QigCdjAwTxl2cBh2dvzhGpxoY3KGHEAiz/c0PEnDLn9iUqiuYBog+AzbnHFp1gPd 7DNPPBoYlmt6R7pMtyCefKnie0QMvaw9TTwGny3cMNQWCnZtiZXYPosKhA7oQgGOlTw+ VIYOx2cLG/UpJxlKySbMuET18ABnxudJyx9NFwiyji7xzOkS2l1vxbSKhYccokdc0yj4 kyXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694690363; x=1695295163; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MVq5zLi24ZjH2OBzcFU65XomWHmUtYcghlhLwRhU2bo=; b=ZfDDQSqt65XKjH6UJBTc6bMq0ACCcFQ5hah8x36x+Iyd5JJX5OvotWVusYDEYSlX5I bVQmug0Dch1FX4fq69+b2uLT10Y6i0mcdtkuXcmE+1hZ+VNTZQXKPTOg1LvRCCtF4PPd Imc1Lsn0lR+8Y8nXqAJXIqpg/1uerjtEJSsyFLxkWMJEF6ocW1O2E9PmYes7eKtFOVk6 H9ZcXE+O9xt1CqJcAOw5WJePtyrYIIeIaXUkcE7mE0ckd/o05ukNbzeAFWvUi0M+roDs X6AyOItJV7MThKkxQwRig83RGHZb/Jw+kKG/Nk4QumTlH3WBNe8EQq/1IgHbeGHo75hh lmwg== X-Gm-Message-State: AOJu0Yyha799jQPuA7P2LT5GH/1BwiWqBBvXXdNXQNObWAuOBT9Nh/Kb yWR2Gu5wr3d/UsOl9E+jMWjLcw== X-Google-Smtp-Source: AGHT+IEKoLQ14tXcZedXg+7ur2HyspF1KFVJqKExrXMlRMnh2zk12sEOw6eQcPmi901vqUO7zuS5Qw== X-Received: by 2002:ac2:4c54:0:b0:500:7e70:ddf5 with SMTP id o20-20020ac24c54000000b005007e70ddf5mr5312397lfk.43.1694690362925; Thu, 14 Sep 2023 04:19: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 p14-20020ac246ce000000b004fdc0e37ecfsm232938lfo.227.2023.09.14.04.19.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 04:19: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, Thierry Reding , Jonathan Hunter , Mikko Perttunen , linux-tegra@vger.kernel.org Subject: [PATCH 15/17] pmdomain: tegra: Move Kconfig option to the pmdomain subsystem Date: Thu, 14 Sep 2023 13:19:19 +0200 Message-Id: <20230914111919.586784-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 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 39f358f27f2e..08a7d43cb884 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 Thu Sep 14 11:19:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 723455 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 A5B12EDE9A5 for ; Thu, 14 Sep 2023 11:19:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237455AbjINLTk (ORCPT ); Thu, 14 Sep 2023 07:19:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237583AbjINLTi (ORCPT ); Thu, 14 Sep 2023 07:19:38 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7AE81FFA for ; Thu, 14 Sep 2023 04:19:32 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-500c37d479aso1376388e87.2 for ; Thu, 14 Sep 2023 04:19:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694690371; x=1695295171; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=3KM4mPZd+qqdQiD2rn9oFHhMiK2AO9uYvTlNg8D3ph0=; b=kAgjV/Sm0ZJSSeejx+pR8ZEO/9Fd8I/D6ClkZeHK3sNo+G4royQctIHKTkx7HrraWV V3xTAbM4Hag0T+X6s0fKjH0WZkthWTzcQjE6l5/wDoSBgkh9ghJCSiVw2ZlGt3Zy8t+2 DOHPVU1VidAAQJJrU1uyLsF2TQma0whIXf2zTObP+bwnWzRry8CmzfoKkJPnkjpNGfGd Tp/Qt6NrPbl0UKijaWnY8pVhhMeIWzW1bz2VAwe5ItpLAUeNtvTD+D1UD90lixJES7RY NGVwuk9fY2poHF600kvotrdB2ga/c3O2+D4r64IC7TMagKG5SX5MGQ7Vt2pmE8s0eIsh OWQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694690371; x=1695295171; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3KM4mPZd+qqdQiD2rn9oFHhMiK2AO9uYvTlNg8D3ph0=; b=hIJgRJCYi2MTH89mNW3DxG/irLk7G/5MIuterlOyIndnthvxy1UFf9MPom60X3xMmz jaxsc470H0J1VFykwi5oWmDDUtHWIzHulRk7ztGDzqmS/EkPBR/2pNpbAqzGc118h8Lj 5TjT/zqcJOOacjhSrLEkGR23W1PqfhSP7V7wJBE8efO4Nh3DOaucel2/tCmWjPPKdWIx AOl9JHdKj8F9esEodHE8S6lBph+VVHwT5x3FL1NoSW5gmb4gjsemwqbygPp3FHGA7WQ/ KMuHWO5LG5fgizaoKZCWryxjcstCFroK7lMxc//nMfmj1wAtxlIXUEs/EfvamCcClG6B aDvA== X-Gm-Message-State: AOJu0YwB1/pYHcR6YnpjZCA42rEzNIGdIpVqIauCYpQTwIArgdM1Q8MH wTSL0DMBzc2Zx0iBAcsmxsuT5Q== X-Google-Smtp-Source: AGHT+IECqMBho28Duuu16/mg7efrXmaic13mRC0RWXhvTwikNjeVVVzG7pitDe8XRgpx3IGrnF79yA== X-Received: by 2002:a05:6512:e83:b0:4fd:faf0:6591 with SMTP id bi3-20020a0565120e8300b004fdfaf06591mr5084981lfb.10.1694690371089; Thu, 14 Sep 2023 04:19: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 u19-20020ac25193000000b004fe5688b5dcsm233315lfi.150.2023.09.14.04.19.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 04:19: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 16/17] pmdomain: ti: Move and add Kconfig options to the pmdomain subsystem Date: Thu, 14 Sep 2023 13:19:28 +0200 Message-Id: <20230914111928.586804-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 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 --- 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 08a7d43cb884..785d177b0ad7 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 Thu Sep 14 11:19:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 722946 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 AE453EDE9A4 for ; Thu, 14 Sep 2023 11:19:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237576AbjINLTv (ORCPT ); Thu, 14 Sep 2023 07:19:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237725AbjINLTp (ORCPT ); Thu, 14 Sep 2023 07:19:45 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0BFB1FE2 for ; Thu, 14 Sep 2023 04:19:40 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2b9c907bc68so13035571fa.2 for ; Thu, 14 Sep 2023 04:19:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694690379; x=1695295179; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=I4AQYXVW3A30PqnsD+M8aOCxVdHOXHi6IQ/sQ09Z4ts=; b=SqYtQeHzlacr2wpiqn440sVP1PVzzsY4bkjJHouszGG/BR5JhH4zngeUCZq56VjSU4 TjvK2KloOmpvNhfx1w02TBpE+8/5XJC2P+/2/v1QPHqfyRbZetz5KY07R81oECuqqZqP fNP5yZM1Kwj+U0F8x+TwFC8L3kq5/502DPtvo247+mBHRf3r4mI9EnKwUAzJLS3QG8X3 fyAYkoCS//w/TaQSSPD4Z+b0t/vFFRTz2Lb4FhkPjU1SsWEFy5bVhOhzV25tIt0J8By4 uMtvSRisJH/6DJHt7G5bMPGumVGkrhNvJsfCcGMrZt2Tzsi3PoOBwpm0ECxsu0eicED+ 6XKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694690379; x=1695295179; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=I4AQYXVW3A30PqnsD+M8aOCxVdHOXHi6IQ/sQ09Z4ts=; b=LXrKDggnRvCxn/tDGKIOb/T+Uu+xt/P66yjrex69DFPZCDQDpEALU9HwkCbras7k3p roE1WAza7Kuj1IQP4FbiVMDLLkYjf8h61cQp51obBZMiIaBhj+IytxjH0CCZA9VuSRR3 TqTLJHj0012BrcIE4Tk5kButdkCxM8JPUmsrEWllecmaG8D9j3kaiKdrfMadCO9peGEx 1XEBT5eN4gJcWOUVbARR8WMOAdU+8ueU6JCWSYjJYqIN/JtK6QZOtnCDAJRvbaic4Z/M 2Gg704LNmuOS1/M+JJBIUeOWphcf/ZnPc9BuB5/zl1fFK1P887HLx78LL3DBMGtvExB8 Z7KQ== X-Gm-Message-State: AOJu0YwqJCw+jQgrBz/1YBwa/vZ1qIUWSm55YcH9s9ROhMwTsjs6PRa1 ew9U9um5OXWT0EMvqRmUHy6gsQ== X-Google-Smtp-Source: AGHT+IE3SErW6Lewr5rbpUuacMhs7ikzrG/xi+QG4UxR8L4l4rUK7dvv+mXMyalbYMVAoJaNPiKf7Q== X-Received: by 2002:a2e:9154:0:b0:2bc:efa4:2c32 with SMTP id q20-20020a2e9154000000b002bcefa42c32mr4690301ljg.37.1694690378945; Thu, 14 Sep 2023 04:19:38 -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 y15-20020a2e978f000000b002bce38190a3sm237679lji.34.2023.09.14.04.19.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 04:19:38 -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 17/17] pmdomain: xilinx: Move Kconfig option to the pmdomain subsystem Date: Thu, 14 Sep 2023 13:19:36 +0200 Message-Id: <20230914111936.586824-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 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 785d177b0ad7..dca0899cd210 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