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: 139547 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp314702vqi; Thu, 14 Sep 2023 05:35:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFAFhZPD/Hnd1zp+51hA2q8b78R+7ghCFdz9wfZGJRANSfG35owM0nuXROUJnYtqDTZspBi X-Received: by 2002:a17:902:654e:b0:1bc:4f04:17f4 with SMTP id d14-20020a170902654e00b001bc4f0417f4mr2140787pln.30.1694694913559; Thu, 14 Sep 2023 05:35:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694694913; cv=none; d=google.com; s=arc-20160816; b=HZ6JvIwbDbktqQNfCwDsKxUdm/UAxgjD1wtG14NiXeOf/B4Vm12Ym/1gVqLaIwrYSO T8IVChs7AsZ93xOyM2cNw05atkPGojjzjEloOHkzAI+/jOVZgVa1qMip56Nraqp3NCVa egDe08zFTwjbNx/j4xnWHxYX9igBuBlyqMDNA2l6Hy3Z+Lx/facoj1sPHpC+IkdekdgD q6gCM1fqwFWEosrgUcgUFAoBHkfvduFRrNP0mutLt654iq4tQg45eB/gctQhJ3ej2daF 3RXrr8GqSot5C4XF4AGMdWzZHj7Kq6Ls+KxY5UmdRorpeVNRKiJCVt9ObTAMM9dEjZSc NB2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=U0VQhcoNLNdF2hx3KPbex70/0qm7FIzVv2M9Uuzf9Fw=; fh=o1HUTk00v7b1nzuZpOYRkddvpHwpc2a4AJGNxDLxW4Y=; b=DDN4sbU0V1eNBtG/aDpFmTGTroU3uV9QKpcV6l7eWxe2HhVInd+SW1fp8sZzVi2dJ5 eV0cI+yvoIy5u1z28m89B5gJrDfr36f35Rw20dBi3fHtL80kl8ISXHLe1qcTFiyi63Ax KtxiEwyVRq9zuaSZ77TnLAzj4yxLIAanwyxV4WM5jJCARtTIHyKbhHRmMJbuDX07ymQX r+/PnNob1g4f5FPYVA8/YGFkvldKJrAbXar/DCX0RPiz1nwKK6vwMuJyELLJ//Ca2K5Z t6MhSgCKRQl4yfsev4cs2Ojc4nThv8yWkB5n/B6ejy3gRIrNhVnGeWpyMcQoVnWJv4ex dIqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="UI2/jrQE"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id s1-20020a170902ea0100b001b9eb349549si1682511plg.630.2023.09.14.05.35.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 05:35:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="UI2/jrQE"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 5B45681BC4BD; Thu, 14 Sep 2023 04:18:40 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236171AbjINLSL (ORCPT + 35 others); Thu, 14 Sep 2023 07:18:11 -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 S237643AbjINLSC (ORCPT ); Thu, 14 Sep 2023 07:18:02 -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 AA5892113 for ; Thu, 14 Sep 2023 04:17:57 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-502e0b7875dso1439495e87.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=T7wbRXmENdkQvlec4PQe6axWhZw0EUIhNxmJK9IP2dPvy+vbMMlipkaD7Gzp/kBJ/C V+XJh578cTwQKJsTgXzLrI9PtiZYa2HS9fefiEWq2J7Zzpv39zKIawYEXoi3Foa+RCpd +p5uYRFPmgGfdXpDNg0Zu4vPAPkHT21lcRBe+hsERreRzIQPNLsww54fFCy9SgoXPLVC CMWNkaGrHBnZ1xiuC+KJ7WKFccgBAv7syrifvSzhoEwGRUX0Kr61ocEAaSykT6RU6Ewo 4vHIRy+iqHYS28REuVf0aLkVPhrwHArUMBQIRnZ3zYAUzDZsfDfoNlpN/zqf43kpSWVm eUeA== X-Gm-Message-State: AOJu0YxjEKqqDYkbvuVABYU1JxMhCUgMtAu3rluUuaoE5o40nfpIUQu+ DcxKc5mYyXj2MxfVBToI+0dAfQ== 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-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 14 Sep 2023 04:18:40 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777016413761983719 X-GMAIL-MSGID: 1777016413761983719 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 Acked-by: Konrad Dybcio Reviewed-by: Bjorn Andersson --- 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