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

Commit e3116a70 authored by Umang Agrawal's avatar Umang Agrawal Committed by David Collins
Browse files

regulator: add a regulator driver for the PM8008 PMIC



Qualcomm Technologies, Inc. PM8008 is an I2C controlled PMIC
containing 7 LDO regulators (two N600 and five P300).  Add a
PM8008 regulator driver to support PMIC regulator management
via the regulator framework.

This is a snapshot of the PM8008 regulator driver found in the
msm-4.19 kernel branch with a few small changes.  The most
significant of these was replacing module_platform_driver()
with module_init() and module_exit() to avoid a compilation
error when compiling the driver as a module.

Change-Id: Ie8d96b50558b8dd3084134216dff6393bac16f71
Signed-off-by: default avatarAshay Jaiswal <ashayj@codeaurora.org>
Signed-off-by: default avatarUmang Agrawal <uagrawal@codeaurora.org>
Signed-off-by: default avatarDavid Collins <collinsd@codeaurora.org>
parent f22a034b
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -750,6 +750,15 @@ config REGULATOR_PWM
	  This driver supports PWM controlled voltage regulators. PWM
	  duty cycle can increase or decrease the voltage.

config REGULATOR_QCOM_PM8008
	tristate "Qualcomm Technologies, Inc. PM8008 PMIC regulators"
	depends on MFD_I2C_PMIC
	help
	  This driver provides support for the voltage regulators and top-level
	  chip enablement of Qualcomm Technologies, Inc. PM8008 PMIC chips.
	  When all seven of the PM8008 LDO regulators are disabled, the PM8008
	  is put into a low power state.

config REGULATOR_QCOM_RPM
	tristate "Qualcomm RPM regulator driver"
	depends on MFD_QCOM_RPM
+1 −0
Original line number Diff line number Diff line
@@ -83,6 +83,7 @@ obj-$(CONFIG_REGULATOR_MT6323) += mt6323-regulator.o
obj-$(CONFIG_REGULATOR_MT6358)	+= mt6358-regulator.o
obj-$(CONFIG_REGULATOR_MT6380)	+= mt6380-regulator.o
obj-$(CONFIG_REGULATOR_MT6397)	+= mt6397-regulator.o
obj-$(CONFIG_REGULATOR_QCOM_PM8008) += qcom_pm8008-regulator.o
obj-$(CONFIG_REGULATOR_QCOM_RPM) += qcom_rpm-regulator.o
obj-$(CONFIG_REGULATOR_QCOM_RPMH) += qcom-rpmh-regulator.o
obj-$(CONFIG_REGULATOR_QCOM_SMD_RPM) += qcom_smd-regulator.o
+786 −0

File added.

Preview size limit exceeded, changes collapsed.