power: avs: Add support for CPR (Core Power Reduction)
RBCPR (RapidBridge Core Power Reduction) is a technology to reduce core power on a CPU or a core. It takes voltage suggestions in efuse from product test process as initial settings. It supports "corner" vote mechanism and converts corner value to voltage before writing to a voltage regulator API.
Based on work from codeaurora.org[1].
TODO:
* DT binding documentation
* Hook into regulator notifiers
* Move to efuse API?
* Fill in Kconfig
* s/pr_*/dev_*/
---
This is an RFC mostly to get the code out there so Srini can see how the eeprom API is not being used. There's still some work that needs to be done to finish off this driver, and other work to do in the regulator and OPP frameworks to make it all hook up together behind cpufreq-dt.
drivers/power/avs/Kconfig | 4 + drivers/power/avs/Makefile | 1 + drivers/power/avs/cpr.c | 1843 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 1848 insertions(+) create mode 100644 drivers/power/avs/cpr.c
drivers/power/avs/Kconfig +4 -0
@@ -18,3 +18,7 @@ config ROCKCHIP_IODOMAIN Say y here to enable support io domains on Rockchip SoCs. It is necessary for the io domain setting of the SoC to match the voltage supplied by the regulators. + +config QCOM_CPR + tristate "QCOM CPR" + select PM_OPP
drivers/power/avs/Makefile +1 -0
@@ -1,2 +1,3 @@ obj-$(CONFIG_POWER_AVS_OMAP) += smartreflex.o obj-$(CONFIG_ROCKCHIP_IODOMAIN) += rockchip-io-domain.o +obj-$(CONFIG_QCOM_CPR) += cpr.o
drivers/power/avs/cpr.c new file +1843 -0
1,843 lines not on this page · raw message
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project