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 driver taken from msm-5.15 as of 'commit 3e47359ac15c ("regulator: qcom_pm8008-regulator: add support for PMIC PM8010")'. While at it, add other minor fixes, like replacing the regulator_get_drvdata with rdev_get_drvdata. Change-Id: I2178a8caa4028bf795640ef6c1653a9697b7f3d2 Signed-off-by: Rakesh Kota <quic_kotarake@quicinc.com>
This commit is contained in:
parent
8d835ee836
commit
6933dc2b27
@ -1000,6 +1000,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
|
||||
|
@ -107,6 +107,7 @@ obj-$(CONFIG_REGULATOR_MT6380) += mt6380-regulator.o
|
||||
obj-$(CONFIG_REGULATOR_MT6397) += mt6397-regulator.o
|
||||
obj-$(CONFIG_REGULATOR_MTK_DVFSRC) += mtk-dvfsrc-regulator.o
|
||||
obj-$(CONFIG_REGULATOR_QCOM_LABIBB) += qcom-labibb-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
|
||||
|
1175
drivers/regulator/qcom_pm8008-regulator.c
Normal file
1175
drivers/regulator/qcom_pm8008-regulator.c
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user