regulator: cpr: add snapshot of cpr-regulator driver

This is snapshot of the cpr-regulator driver as of msm-5.15
'commit d21a95cf99287 ("regulator: cpr: add snapshot
of cpr-regulator driver")'.

Change-Id: Ie403d6093db9db5253a9c6536f4ceac96b5260b1
Signed-off-by: Sai Kannan <quic_csaikann@quicinc.com>
This commit is contained in:
Sai Kannan 2023-11-22 13:00:39 +05:30 committed by Sai Kannan Chintakayala
parent 76c1fe285b
commit cd5468ea9b
4 changed files with 5749 additions and 0 deletions

View file

@ -1618,6 +1618,16 @@ config REGULATOR_RPMH
control allows for voting on regulator state between multiple
processors within the SoC.
config REGULATOR_CPR
bool "RBCPR regulator driver for APC"
depends on OF && QCOM_SCM
help
Compile in RBCPR (RapidBridge Core Power Reduction) driver to support
corner vote for APC power rail. The driver takes PTE process voltage
suggestions in efuse as initial settings. It converts corner vote
to voltage value before writing to a voltage regulator API, such as
that provided by spm-regulator driver.
config REGULATOR_RPM_SMD
tristate "RPM SMD regulator driver"
depends on OF

View file

@ -22,6 +22,7 @@ obj-$(CONFIG_REGULATOR_AB8500) += ab8500-ext.o ab8500.o
obj-$(CONFIG_REGULATOR_ACT8865) += act8865-regulator.o
obj-$(CONFIG_REGULATOR_ACT8945A) += act8945a-regulator.o
obj-$(CONFIG_REGULATOR_AD5398) += ad5398.o
obj-$(CONFIG_REGULATOR_CPR) += cpr-regulator.o
obj-$(CONFIG_REGULATOR_ANATOP) += anatop-regulator.o
obj-$(CONFIG_REGULATOR_ARIZONA_LDO1) += arizona-ldo1.o
obj-$(CONFIG_REGULATOR_ARIZONA_MICSUPP) += arizona-micsupp.o

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,25 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2015-2021, The Linux Foundation. All rights reserved.
* Copyright (c) 2023, Qualcomm Innovation Center, Inc. All rights reserved.
*/
#ifndef __REGULATOR_CPR_REGULATOR_H__
#define __REGULATOR_CPR_REGULATOR_H__
#include <linux/init.h>
#ifdef CONFIG_REGULATOR_CPR
int __init cpr_regulator_init(void);
#else
static inline int __init cpr_regulator_init(void)
{
return -ENODEV;
}
#endif /* CONFIG_REGULATOR_CPR */
#endif /* __REGULATOR_CPR_REGULATOR_H__ */