drivers: power_domain: Update drivers to use devicetree Kconfig symbol

Update power_domain drivers to use DT_HAS_<compat>_ENABLED Kconfig
symbol to expose the driver and enable it by default based on
devicetree.

We remove one reference in prj.conf that is no longer needed.

Signed-off-by: Kumar Gala <kumar.gala@intel.com>
This commit is contained in:
Kumar Gala 2022-10-31 12:44:57 -05:00 committed by Stephanos Ioannidis
commit d2326fe187
2 changed files with 4 additions and 1 deletions

View file

@ -14,11 +14,15 @@ source "subsys/logging/Kconfig.template.log_config"
config POWER_DOMAIN_GPIO
bool "GPIO controlled power domain"
default y
depends on DT_HAS_POWER_DOMAIN_GPIO_ENABLED
depends on GPIO
depends on TIMEOUT_64BIT
config POWER_DOMAIN_INTEL_ADSP
bool "Use Intel ADSP power gating mechanisms"
default y
depends on DT_HAS_INTEL_ADSP_POWER_DOMAIN_ENABLED
help
Include Intel ADSP power domain control mechanisms

View file

@ -9,5 +9,4 @@ CONFIG_MP_MAX_NUM_CPUS=1
CONFIG_GPIO=y
CONFIG_POWER_DOMAIN=y
CONFIG_POWER_DOMAIN_GPIO=y
CONFIG_ZTEST_NEW_API=y