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

Commit 902d61b3 authored by Asha Magadi Venkateshamurthy's avatar Asha Magadi Venkateshamurthy
Browse files

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: default avatarAnirudh Ghayal <aghayal@codeaurora.org>
Signed-off-by: default avatarAsha Magadi Venkateshamurthy <amagad@codeaurora.org>
parent c4266166
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -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
+1 −0
Original line number Diff line number Diff line
@@ -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 −0

File added.

Preview size limit exceeded, changes collapsed.

+24 −0
Original line number Diff line number Diff line
/* 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__ */