mirror of
https://github.com/torvalds/linux.git
synced 2026-08-02 05:12:01 +02:00
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:
parent
e798c45c00
commit
9f321957e3
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
16
drivers/clk/qcom/gdsc-debug.h
Normal file
16
drivers/clk/qcom/gdsc-debug.h
Normal 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__ */
|
||||
1059
drivers/clk/qcom/gdsc-regulator.c
Normal file
1059
drivers/clk/qcom/gdsc-regulator.c
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user