Skip to content

Commit a7305e6

Browse files
Ulf Hanssonrafaeljw
authored andcommitted
PM: AVS: qcom-cpr: Move the driver to the qcom specific drivers
The avs drivers are all SoC specific drivers that doesn't share any code. Instead they are located in a directory, mostly to keep similar functionality together. From a maintenance point of view, it makes better sense to collect SoC specific drivers like these, into the SoC specific directories. Therefore, let's move the qcom-cpr driver to the qcom directory. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Acked-by: Bjorn Andersson <bjorn.andersson@linaro.org> Acked-by: Niklas Cassel <nks@flawful.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent bca815d commit a7305e6

6 files changed

Lines changed: 18 additions & 18 deletions

File tree

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14354,7 +14354,7 @@ L: linux-pm@vger.kernel.org
1435414354
L: linux-arm-msm@vger.kernel.org
1435514355
S: Maintained
1435614356
F: Documentation/devicetree/bindings/power/avs/qcom,cpr.txt
14357-
F: drivers/power/avs/qcom-cpr.c
14357+
F: drivers/soc/qcom/cpr.c
1435814358

1435914359
QUALCOMM CPUFREQ DRIVER MSM8996/APQ8096
1436014360
M: Ilia Lin <ilia.lin@kernel.org>

drivers/power/avs/Kconfig

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
3-
config QCOM_CPR
4-
tristate "QCOM Core Power Reduction (CPR) support"
5-
depends on POWER_AVS && HAS_IOMEM
6-
select PM_OPP
7-
select REGMAP
8-
help
9-
Say Y here to enable support for the CPR hardware found on Qualcomm
10-
SoCs like QCS404.
11-
12-
This driver populates CPU OPPs tables and makes adjustments to the
13-
tables based on feedback from the CPR hardware. If you want to do
14-
CPUfrequency scaling say Y here.
15-
16-
To compile this driver as a module, choose M here: the module will
17-
be called qcom-cpr

drivers/power/avs/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
obj-$(CONFIG_QCOM_CPR) += qcom-cpr.o

drivers/soc/qcom/Kconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,22 @@ config QCOM_COMMAND_DB
2626
resource on a RPM-hardened platform must use this database to get
2727
SoC specific identifier and information for the shared resources.
2828

29+
config QCOM_CPR
30+
tristate "QCOM Core Power Reduction (CPR) support"
31+
depends on ARCH_QCOM && HAS_IOMEM
32+
select PM_OPP
33+
select REGMAP
34+
help
35+
Say Y here to enable support for the CPR hardware found on Qualcomm
36+
SoCs like QCS404.
37+
38+
This driver populates CPU OPPs tables and makes adjustments to the
39+
tables based on feedback from the CPR hardware. If you want to do
40+
CPUfrequency scaling say Y here.
41+
42+
To compile this driver as a module, choose M here: the module will
43+
be called qcom-cpr
44+
2945
config QCOM_GENI_SE
3046
tristate "QCOM GENI Serial Engine Driver"
3147
depends on ARCH_QCOM || COMPILE_TEST

drivers/soc/qcom/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ CFLAGS_rpmh-rsc.o := -I$(src)
33
obj-$(CONFIG_QCOM_AOSS_QMP) += qcom_aoss.o
44
obj-$(CONFIG_QCOM_GENI_SE) += qcom-geni-se.o
55
obj-$(CONFIG_QCOM_COMMAND_DB) += cmd-db.o
6+
obj-$(CONFIG_QCOM_CPR) += cpr.o
67
obj-$(CONFIG_QCOM_GSBI) += qcom_gsbi.o
78
obj-$(CONFIG_QCOM_MDT_LOADER) += mdt_loader.o
89
obj-$(CONFIG_QCOM_OCMEM) += ocmem.o

0 commit comments

Comments
 (0)