clk: qcom: gdsc-regulator: Add snapshot from msm-5.15

Add gdsc-regulator snapshot from msm-5.15 commit 123f6f081248 ("Merge
"spi: spi-msm-geni: clear qn_err flag before transfer"").

Change-Id: I4d8989102564d0a6101bb54eb10055407531d61f
Signed-off-by: Mike Tipton <quic_mdtipton@quicinc.com>
This commit is contained in:
Mike Tipton 2022-03-28 22:57:21 -07:00
parent e798c45c00
commit 9f321957e3
4 changed files with 1086 additions and 0 deletions

View File

@ -689,4 +689,13 @@ config CLK_GFM_LPASS_SM8250
Support for the Glitch Free Mux (GFM) Low power audio
subsystem (LPASS) clocks found on SM8250 SoCs.
config QCOM_GDSC_REGULATOR
tristate "GDSC regulator driver"
depends on COMMON_CLK_QCOM
help
This driver supports globally distributed switch controller (GDSC)
devices in regulator framework.
Say Y if you want to support clients using regulator framework APIs
to control GDSCs.
endif

View File

@ -19,6 +19,8 @@ clk-qcom-y += reset.o
clk-qcom-$(CONFIG_QCOM_GDSC) += gdsc.o
obj-$(CONFIG_COMMON_CLK_QCOM) += clk-dummy.o
obj-$(CONFIG_QCOM_GDSC_REGULATOR) += gdsc-regulator.o
# Keep alphabetically sorted by config
obj-$(CONFIG_APQ_GCC_8084) += gcc-apq8084.o
obj-$(CONFIG_APQ_MMCC_8084) += mmcc-apq8084.o

View File

@ -0,0 +1,16 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2021, The Linux Foundation. All rights reserved.
*/
#ifndef __QCOM_GDSC_DEBUG_H__
#define __QCOM_GDSC_DEBUG_H__
#if IS_ENABLED(CONFIG_QCOM_GDSC_REGULATOR)
void gdsc_debug_print_regs(struct regulator *regulator);
#else
static inline void gdsc_debug_print_regs(struct regulator *regulator)
{ }
#endif
#endif /* __QCOM_GDSC_DEBUG_H__ */

File diff suppressed because it is too large Load Diff