Convert CONFIG_POWER_LTC3676 et al to Kconfig
[platform/kernel/u-boot.git] / drivers / power / pmic / Kconfig
index 92e2ace..d94048d 100644 (file)
@@ -66,6 +66,8 @@ config PMIC_ACT8846
 config PMIC_AXP
        bool "Enable Driver Model for X-Powers AXP PMICs"
        depends on DM_I2C
+       select SYSRESET_CMD_POWEROFF if SYSRESET && CMD_POWEROFF
+       imply CMD_POWEROFF if SYSRESET
        help
          This config enables driver-model PMIC uclass features for
          X-Powers AXP152, AXP2xx, and AXP8xx PMICs.
@@ -126,6 +128,20 @@ config DM_PMIC_FAN53555
          The driver implements read/write operations for use with the FAN53555
          regulator driver and binds the regulator driver to its node.
 
+config SPL_DM_PMIC_FAN53555
+       bool "Enable support for OnSemi FAN53555 in SPL"
+       depends on SPL_DM_REGULATOR && SPL_DM_I2C
+       select SPL_DM_REGULATOR_FAN53555
+       help
+         This config enables implementation of driver-model PMIC
+         uclass features for the FAN53555 regulator. The FAN53555 is
+         a (family of) single-output regulators that supports
+         transitioning between two different output voltages based on
+         an voltage selection pin.
+
+         The driver implements read/write operations for use with the FAN53555
+         regulator driver and binds the regulator driver to its node.
+
 config DM_PMIC_MP5416
        bool "Enable Driver Model for PMIC MP5416"
        help
@@ -142,13 +158,15 @@ config SPL_DM_PMIC_MP5416
 
 config DM_PMIC_PCA9450
        bool "Enable Driver Model for PMIC PCA9450"
+       depends on DM_I2C
        help
          This config enables implementation of driver-model pmic uclass features
          for PMIC PCA9450. The driver implements read/write operations.
 
 config SPL_DM_PMIC_PCA9450
-       bool "Enable Driver Model for PMIC PCA9450"
+       bool "Enable Driver Model for PMIC PCA9450 in SPL"
        depends on SPL_DM_PMIC
+       depends on SPL_DM_I2C
        help
          This config enables implementation of driver-model pmic uclass features
          for PMIC PCA9450 in SPL. The driver implements read/write operations.
@@ -198,10 +216,10 @@ config PMIC_MAX8997
        - MUIC
        - Others
 
-config PMIC_PM8916
-       bool "Enable Driver Model for Qualcomm PM8916 PMIC"
+config PMIC_QCOM
+       bool "Enable Driver Model for Qualcomm generic PMIC"
        ---help---
-       The PM8916 is a PMIC connected to one (or several) processors
+       The Qcom PMIC is connected to one (or several) processors
        with SPMI bus. It has 2 slaves with several peripherals:
        - 18x LDO
        - 4x GPIO
@@ -211,7 +229,7 @@ config PMIC_PM8916
        - Vibrator drivers
        - Others
 
-       Driver binding info: doc/device-tree-bindings/pmic/pm8916.txt
+       Driver binding info: doc/device-tree-bindings/pmic/qcom,spmi-pmic.txt
 
 config PMIC_RK8XX
        bool "Enable support for Rockchip PMIC RK8XX"
@@ -282,6 +300,14 @@ config PMIC_RN5T567
        regulators Real-Time Clock and 4 GPIOs. This driver provides
        register access only.
 
+config SPL_PMIC_RN5T567
+       bool "Enable driver for Ricoh RN5T567 PMIC in SPL"
+       depends on SPL_DM_PMIC
+       ---help---
+       The RN5T567 is a PMIC with 4 step-down DC/DC converters, 5 LDO
+       regulators Real-Time Clock and 4 GPIOs. This driver provides
+       register access only.
+
 config PMIC_TPS65090
        bool "Enable driver for Texas Instruments TPS65090 PMIC"
        ---help---
@@ -351,12 +377,56 @@ config PMIC_TPS65941
        The TPS65941 is a PMIC containing a bunch of SMPS & LDOs.
        This driver binds the pmic children.
 
+config PMIC_TPS65219
+       bool "Enable driver for Texas Instruments TPS65219 PMIC"
+       depends on DM_PMIC
+       help
+       The TPS65219 is a PMIC containing a bunch of SMPS & LDOs.
+       This driver binds the pmic children.
 endif
 
+config PMIC_TPS65217
+       bool "Enable driver for Texas Instruments TPS65217 PMIC"
+       ---help---
+       The TPS65217 is a PMIC containing several LDOs, DC to DC convertors,
+       FETs and a battery charger. This driver provides register access
+       only, and you can enable the regulator/charger drivers separately if
+       required.
+
+config POWER_TPS65218
+       bool "Enable legacy driver for TPS65218 PMIC"
+
+config POWER_TPS62362
+       bool "Enable legacy driver for TPS62362 PMIC"
+
+config SPL_POWER_TPS62362
+       bool "Enable legacy driver for TPS62362 PMIC in SPL"
+       default y if POWER_TPS62362
+       depends on SPL
+
+config SPL_POWER_TPS65910
+       bool "Enable legacy driver for TPS65910 PMIC in SPL"
+       depends on SPL
+
+if POWER_LEGACY || SPL_POWER_LEGACY
+
+config POWER_HI6553
+       bool "Enable legacy driver for HI6553 PMIC"
+
+config POWER_LTC3676
+       bool "Enable legacy driver for LTC3676 PMIC"
+
+config POWER_PFUZE100
+       bool "Enable legacy driver for PFUZE100 PMIC"
+
+config POWER_PFUZE3000
+       bool "Enable legacy driver for PFUZE3000 PMIC"
+
 config POWER_MC34VR500
        bool "Enable driver for Freescale MC34VR500 PMIC"
-       depends on !DM_PMIC
        ---help---
        The MC34VR500 is used in conjunction with the FSL T1 and LS1 series
        SoC. It provides 4 buck DC-DC convertors and 5 LDOs, and it is accessed
        via an I2C interface.
+
+endif