Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a878300a authored by Kiran Gunda's avatar Kiran Gunda Committed by Chetan C R
Browse files

regulator: spm_regulator: Add snapshot of spm_regulator driver



This is snapshot of the spm_regulator driver as of
msm-4.14 'commit 89909bd394e299cbe ("Merge "clk:
qcom: gcc-sdm429w: Update plls for SDM429W"")'.

Also replace the __invoke_psci_fn_smc wrapper with arm_smccc_smc as
__invoke_psci_fn_smc is no longer available.

Change-Id: Ia6ded6dc21ecff2114ddd20e26706d9196239956
Signed-off-by: default avatarKiran Gunda <kgunda@codeaurora.org>
parent bae5f2ad
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -1086,6 +1086,16 @@ config REGULATOR_RPM_SMD
	  be used on systems which contain an RPM which communicates with the
	  application processor over SMD.

config REGULATOR_SPM
	bool "SPM regulator driver"
	depends on SPMI
	help
	  Enable support for the SPM regulator driver which is used for
	  setting voltages of processor supply regulators via the SPM module
	  found inside chips of Qualcomm Technologies Inc. The SPM regulator
	  driver can be used on QTI SoCs where the APSS processor cores are
	  supplied by their own PMIC regulator.

config REGULATOR_STUB
	tristate "Stub Regulator"
	help
+1 −0
Original line number Diff line number Diff line
@@ -137,6 +137,7 @@ obj-$(CONFIG_REGULATOR_WM8400) += wm8400-regulator.o
obj-$(CONFIG_REGULATOR_WM8994) += wm8994-regulator.o

obj-$(CONFIG_REGULATOR_REFGEN) += refgen.o
obj-$(CONFIG_REGULATOR_SPM) += spm-regulator.o
obj-$(CONFIG_REGULATOR_RPMH) += rpmh-regulator.o
obj-$(CONFIG_REGULATOR_STUB) += stub-regulator.o

+1351 −0

File added.

Preview size limit exceeded, changes collapsed.

+17 −0
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0-only */
/* Copyright (c) 2013-2014, 2020, The Linux Foundation. All rights reserved.
 */

#ifndef _LINUX_REGULATOR_SPM_H
#define _LINUX_REGULATOR_SPM_H

#include <linux/err.h>
#include <linux/init.h>

#ifdef CONFIG_REGULATOR_SPM
int __init spm_regulator_init(void);
#else
static inline int __init spm_regulator_init(void) { return -ENODEV; }
#endif

#endif