]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
power: regulator: qcom-rpmh-regulator: add build infra
authorCaleb Connolly <caleb.connolly@linaro.org>
Mon, 15 Jul 2024 10:08:22 +0000 (12:08 +0200)
committerCaleb Connolly <caleb.connolly@linaro.org>
Thu, 25 Jul 2024 23:28:13 +0000 (01:28 +0200)
Add Kconfig and Makefile entries for this driver now that it can build
for U-Boot.

Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
drivers/power/regulator/Kconfig
drivers/power/regulator/Makefile

index 102ec7bc5f894d906f917762c8854adb37d05633..bc061c20d75eb9996c6e93fa3dcf4c04340ef909 100644 (file)
@@ -216,6 +216,14 @@ config DM_REGULATOR_GPIO
        features for gpio regulators. The driver implements get/set for
        voltage value.
 
+config DM_REGULATOR_QCOM_RPMH
+       bool "Enable driver model for Qualcomm RPMh regulator"
+       depends on DM_REGULATOR && QCOM_RPMH
+       ---help---
+         Enable support for the Qualcomm RPMh regulator. The driver
+         implements get/set api for a limited set of regulators used
+         by u-boot.
+
 config SPL_DM_REGULATOR_GPIO
        bool "Enable Driver Model for GPIO REGULATOR in SPL"
        depends on DM_REGULATOR_GPIO && SPL_GPIO
index f79932d833078ab816a782c5027b3f226b4ddecf..56a527612b7486534719b37616dbb19bc2681ae7 100644 (file)
@@ -21,6 +21,7 @@ obj-$(CONFIG_$(SPL_)DM_REGULATOR_FAN53555) += fan53555.o
 obj-$(CONFIG_$(SPL_)DM_REGULATOR_COMMON) += regulator_common.o
 obj-$(CONFIG_$(SPL_)DM_REGULATOR_FIXED) += fixed.o
 obj-$(CONFIG_$(SPL_)DM_REGULATOR_GPIO) += gpio-regulator.o
+obj-$(CONFIG_DM_REGULATOR_QCOM_RPMH) += qcom-rpmh-regulator.o
 obj-$(CONFIG_$(SPL_TPL_)REGULATOR_RK8XX) += rk8xx.o
 obj-$(CONFIG_DM_REGULATOR_S2MPS11) += s2mps11_regulator.o
 obj-$(CONFIG_REGULATOR_S5M8767) += s5m8767.o