zephyr/drivers/power_domain/Kconfig
Gerard Marull-Paretas 48b201cc53 device: make device dependencies optional
Device dependencies are not always required, so make them optional via
CONFIG_DEVICE_DEPS. When enabled, the gen_device_deps script will run so
that dependencies are collected and part of the final image. Related
APIs will be also made available. Since device dependencies are used in
just a few places (power domains), disable the feature by default. When
not enabled, a second linking pass will not be required.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2023-06-21 09:32:05 +02:00

32 lines
709 B
Plaintext

# Copyright (c) 2022, CSIRO.
# SPDX-License-Identifier: Apache-2.0
menuconfig POWER_DOMAIN
bool "Power domain drivers"
help
Include drivers for power domains in system config
if POWER_DOMAIN
module = POWER_DOMAIN
module-str = power_domain
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
select DEVICE_DEPS
config POWER_DOMAIN_INTEL_ADSP
bool "Use Intel ADSP power gating mechanisms"
default y
depends on DT_HAS_INTEL_ADSP_POWER_DOMAIN_ENABLED
select DEVICE_DEPS
help
Include Intel ADSP power domain control mechanisms
endif