diff options
| author | Rasmus Villemoes <[email protected]> | 2022-05-03 10:58:06 +0200 |
|---|---|---|
| committer | Jaehoon Chung <[email protected]> | 2022-06-14 11:20:50 +0900 |
| commit | 752bea3ca4d095e4da948c643fc6d6ea7427c773 (patch) | |
| tree | dc112c26e725ac0a8a257742f7f2a5303a4d1094 | |
| parent | 92a8bc6b419f548230f10a924db2b3ef10a5edad (diff) | |
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 <[email protected]>
Reviewed-by: Jaehoon Chung <[email protected]>
| -rw-r--r-- | drivers/power/pmic/Kconfig | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/power/pmic/Kconfig b/drivers/power/pmic/Kconfig index bb3960020dd..66b16b06e0b 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. |
