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:
parent
76c1fe285b
commit
cd5468ea9b
4 changed files with 5749 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
5713
drivers/regulator/cpr-regulator.c
Normal file
5713
drivers/regulator/cpr-regulator.c
Normal file
File diff suppressed because it is too large
Load diff
25
include/linux/regulator/cpr-regulator.h
Normal file
25
include/linux/regulator/cpr-regulator.h
Normal 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__ */
|
||||
Loading…
Add table
Add a link
Reference in a new issue