Merge "regulator: spm_regulator: Add snapshot of spm_regulator driver"

This commit is contained in:
QCTECMDR Service 2024-09-26 08:13:02 -07:00 committed by Gerrit - the friendly Code Review server
commit 63dd7fbea4
4 changed files with 1389 additions and 1 deletions

View file

@ -65,6 +65,16 @@ config REGULATOR_VIRTUAL_CONSUMER
If unsure, say no.
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_USERSPACE_CONSUMER
tristate "Userspace regulator consumer support"
help

View file

@ -198,5 +198,5 @@ obj-$(CONFIG_REGULATOR_STUB) += stub-regulator.o
obj-$(CONFIG_REGULATOR_DEBUG_CONTROL) += debug-regulator.o
obj-$(CONFIG_REGULATOR_QTI_OCP_NOTIFIER) += qti-ocp-notifier.o
obj-$(CONFIG_VIRTIO_REGULATOR) += virtio_regulator.o
obj-$(CONFIG_REGULATOR_SPM) += spm-regulator.o
ccflags-$(CONFIG_REGULATOR_DEBUG) += -DDEBUG

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,18 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/* Copyright (c) 2013-2014, 2021, The Linux Foundation. All rights reserved.
* Copyright (c) 2023, Qualcomm Innovation Center, Inc. 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