drivers: peci: Update Kconfig

* Utilize DT_HAS_<COMPAT>_ENABLED for devicetree based drivers

Signed-off-by: Kumar Gala <galak@kernel.org>
This commit is contained in:
Kumar Gala 2022-08-11 22:32:46 -05:00 committed by Fabio Baltieri
parent 961df14f39
commit 210044b788
2 changed files with 4 additions and 3 deletions

View file

@ -5,7 +5,8 @@
config PECI_ITE_IT8XXX2
bool "ITE IT8XXX2 PECI driver"
depends on SOC_IT8XXX2
default y
depends on DT_HAS_ITE_IT8XXX2_PECI_ENABLED
select PECI_INTERRUPT_DRIVEN
help
Enable the ITE IT8XXX2 PECI IO driver.

View file

@ -5,7 +5,7 @@
config PECI_XEC
bool "XEC Microchip PECI driver"
depends on SOC_FAMILY_MEC
default $(dt_compat_enabled,${DT_COMPAT_ST_PECI_XEC})
default y
depends on DT_HAS_MICROCHIP_XEC_PECI_ENABLED
help
Enable the Microchip XEC PECI IO driver.