From: Rasmus Villemoes Date: Tue, 3 May 2022 08:58:06 +0000 (+0200) Subject: pmic: pca9450: add DM_I2C dependencies in Kconfig X-Git-Tag: baikal/mips/sdk5.9~3^2~25^2 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=18ea14f71584b494ff9ef3e32a9515276968a05c;p=uboot.git pmic: pca9450: add DM_I2C dependencies in Kconfig The pca9450 driver uses dm_i2c_{read,write}, which are (unsurprisingly) only available with DM_I2C. Make sure one can't create an unbuildable .config by adding proper dependencies. While here, append "in SPL" to the prompt for the SPL_ variant so it doesn't read the same as the one for the non-SPL_ variant. Signed-off-by: Rasmus Villemoes Reviewed-by: Jaehoon Chung --- diff --git a/drivers/power/pmic/Kconfig b/drivers/power/pmic/Kconfig index bb3960020d..66b16b06e0 100644 --- a/drivers/power/pmic/Kconfig +++ b/drivers/power/pmic/Kconfig @@ -158,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.