regulator: Add snapshot of MSM GFX LDO driver
This is a snapshot of MSM GFX LDO regulator driver for SDM660 as of msm-4.14 'commit <90153c60c7b956e9fa> ("Merge "pinctrl-msm: Add irq_set_wake support to msmgpio-dc irqchip")'. Change-Id: Id13b6b601c91aa6c2c2f0e6d820a244144b60437 Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org> Signed-off-by: Asha Magadi Venkateshamurthy <amagad@codeaurora.org>
This commit is contained in:
parent
c4266166e7
commit
902d61b3d8
@ -1074,6 +1074,16 @@ config REGULATOR_REFGEN
|
||||
it used by various PHY blocks found inside of the SoC. It supports
|
||||
enable/disable control.
|
||||
|
||||
config REGULATOR_MSM_GFX_LDO
|
||||
tristate "MSM GFX LDO Regulator"
|
||||
depends on OF
|
||||
help
|
||||
This driver supports the MSM GFX (Graphics) LDO regulator. The
|
||||
GFU core is either powered by an internal MSM LDO or by BHS.
|
||||
Typically the lower voltage corners are powered by LDO and
|
||||
the higher ones by BHS. This driver allows for configuration of
|
||||
the rail between the LDO/BHS as well as the LDO voltage.
|
||||
|
||||
config REGULATOR_RPMH
|
||||
tristate "Qualcomm Technologies, Inc. Legacy RPMh regulator driver"
|
||||
depends on QCOM_RPMH
|
||||
|
@ -136,6 +136,7 @@ obj-$(CONFIG_REGULATOR_WM8350) += wm8350-regulator.o
|
||||
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_REFGEN) += refgen.o
|
||||
obj-$(CONFIG_REGULATOR_SPM) += spm-regulator.o
|
||||
obj-$(CONFIG_REGULATOR_RPMH) += rpmh-regulator.o
|
||||
|
1636
drivers/regulator/msm_gfx_ldo.c
Normal file
1636
drivers/regulator/msm_gfx_ldo.c
Normal file
File diff suppressed because it is too large
Load Diff
24
include/linux/regulator/msm-ldo-regulator.h
Normal file
24
include/linux/regulator/msm-ldo-regulator.h
Normal file
@ -0,0 +1,24 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2015-2020, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef __MSM_LDO_REGULATOR_H__
|
||||
#define __MSM_LDO_REGULATOR_H__
|
||||
|
||||
/**
|
||||
* enum msm_ldo_supply_mode - supported operating modes by this regulator type.
|
||||
* Use negative logic to ensure BHS mode is treated as the safe default by the
|
||||
* the regulator framework. This is necessary since LDO mode can only be enabled
|
||||
* when several constraints are satisfied. Consumers of this regulator are
|
||||
* expected to request changes in operating modes through the use of
|
||||
* regulator_allow_bypass() passing in the desired LDO supply mode.
|
||||
* %BHS_MODE: to select BHS as operating mode
|
||||
* %LDO_MODE: to select LDO as operating mode
|
||||
*/
|
||||
enum msm_ldo_supply_mode {
|
||||
BHS_MODE = false,
|
||||
LDO_MODE = true,
|
||||
};
|
||||
|
||||
#endif /* __MSM_LDO_REGULATOR_H__ */
|
Loading…
Reference in New Issue
Block a user