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: 13385011 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E05D8EDE9A5 for ; Thu, 14 Sep 2023 11:18:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Bcu70Emi8KT9p5FNSIfRwmTJpArqySjLUTs4IEXq5qY=; b=U8q27ntgKbj6b0 qo0BiG6w/4HrhWLT2hdDswrJ/sKbfW6vdIcDSIg+Nefp4HCMIH87mutlg9/T3y1wOzXP42k9ZXHXJ 4zRT8M7njCN9/ibRixLfD3I06eFeXDsFP9wCQLliNOdOvXRXbswtjRVkFiSFxuYWQh2HIIY4LqnjO JV4elh/DEoMjLlmI9cyyP9FDQuzHTjOmL+deDePryhInVJ1T3xtwqElMPRwokHVuMvFuxD80Aw4TK lOCRYLpJmklmAF8mF61Y0kXug5HmG/xu+khPbe3KxgZk8W+jHCJ5KfHMV23DniyHV3hKaLzzBEO68 OsyX5zTZj43zq7NToJmg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qgkMC-008DT9-0O; Thu, 14 Sep 2023 11:18:00 +0000 Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qgkM9-008DS1-18 for linux-arm-kernel@lists.infradead.org; Thu, 14 Sep 2023 11:17:58 +0000 Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-502b0d23f28so1403695e87.2 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=lists.infradead.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=JFOJzqn/Y4FQljA4j9ORrJVEUSEAnNovrhn4+wqTFEjdvHFhXtbj2tzdq4uOb4xhS3 5hJ+ZTK4O6nroTccWEHOKy8YeJFfFE53MvgeCudblN2pglXCPs53CIBdKT4NrvGiS1CD FrWoAXpXQrQMgT0jKhaFNIh5rPnw5A4yJ9p136MlRaf/8a2x/CDZ8lnQwd51kzHmuD4Z GTk6Vp5mbQwUVWReVjdH52JXCExlX2jtON9PYgxFvB+aCI5XBIH0EdYJkA+SzFF4gnxO FYz4CgjGhoN3sqk3EdI6gJA6zJYAknQm6BOwh63jbz1oD78kG6bt1vo+0n6OxpB/OwkU dxIw== 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=u2ISiC5oToWrU1JovQhMH7amTHbJr4wlJ1GjpYL4sS8HbOQ0jC3uxSYP1Ke7Dg0vFw A6u3Nt3wIflTWa2XlyjVyXq1MJphVeZQhsq/m06wz8XYL5+FcrwGUYavXAEcVrwxdYxy AVl3Z3y+c+KmoxoOMvjjUUqq/7Ao02oorc8zdCsPDPU3C300twEfqUFDZyQVflYGLh+h r367j7z+lCo+JfsvGvCGHaE+RntnwaTLql60zsIM/bvXOKDof6u+NZzEAAkVNxyWwlZY JxjoqXPdmKcBdPm/crYqgtP6EIYNyNsrJbySzvY8ddy+rFD8gqy0x+EUgzIVLBDuL2Zt 1Vlw== X-Gm-Message-State: AOJu0YyG8Y622xqBu8pIDN2m4t19skfM8iuEcZwK0/kayzr+FTsKk56w SiTyRfs4eQJlNbOzSnu/g9Z7hQ== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230914_041757_405200_B25FD763 X-CRM114-Status: GOOD ( 18.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 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