regulator: cpr: add snapshot of cpr-regulator driver

This is snapshot of the cpr-regulator driver as of msm-4.14
'commit a1036c1c5f47a ("msm: v4l2loopback: Add v4l2loopback
header entry")'.

Change-Id: I72bb3bb9051e51415f04446b6451ed573468c527
Signed-off-by: Asha Magadi Venkateshamurthy <amagad@codeaurora.org>
This commit is contained in:
Asha Magadi Venkateshamurthy 2020-12-18 21:31:37 +05:30
parent a81ab23eac
commit 77b26f9649
4 changed files with 5791 additions and 0 deletions

View File

@ -1065,6 +1065,16 @@ config REGULATOR_MEM_ACC
controls delays applied for memory accesses. This driver
configures the power-mode(corner) for the memory accelerator.
config REGULATOR_CPR
bool "RBCPR regulator driver for APC"
depends on OF
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_CPR3
bool "CPR3 regulator core support"
help

View File

@ -137,6 +137,7 @@ obj-$(CONFIG_REGULATOR_WM8400) += wm8400-regulator.o
obj-$(CONFIG_REGULATOR_WM8994) += wm8994-regulator.o
obj-$(CONFIG_REGULATOR_MEM_ACC) += mem-acc-regulator.o
obj-$(CONFIG_REGULATOR_MSM_GFX_LDO) += msm_gfx_ldo.o
obj-$(CONFIG_REGULATOR_CPR) += cpr-regulator.o
obj-$(CONFIG_REGULATOR_CPR3) += cpr3-regulator.o cpr3-util.o
obj-$(CONFIG_REGULATOR_CPR4_MMSS_LDO) += cpr4-mmss-ldo-regulator.o
obj-$(CONFIG_REGULATOR_CPRH_KBSS) += cprh-kbss-regulator.o

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,24 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2015-2020, The Linux Foundation. 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__ */