zephyr/drivers/dac/Kconfig
Maureen Helm 9eef764c65 drivers: dac: Refactor drivers to use shared init priority
Refactors all of the DAC drivers to use a shared driver class
initialization priority configuration, CONFIG_DAC_INIT_PRIORITY, to
allow configuring DAC drivers separately from other devices. This is
similar to other driver classes like I2C and SPI.

The default is set to CONFIG_KERNEL_INIT_PRIORITY_DEVICE to preserve the
existing default initialization priority for most drivers. The
exceptions are dacx0508, dacx3608, and mcp4725 drivers which have
dependencies on SPI or I2C drivers and must therefore initialize later
than the default device priority.

Signed-off-by: Maureen Helm <maureen.helm@intel.com>
2021-10-27 10:58:33 +02:00

48 lines
860 B
Plaintext

# DAC configuration options
# Copyright (c) 2020 Libre Solar Technologies GmbH
# SPDX-License-Identifier: Apache-2.0
#
# DAC options
#
menuconfig DAC
bool "DAC drivers"
help
Enable DAC (Digital to Analog Converter) driver configuration.
if DAC
module = DAC
module-str = DAC
source "subsys/logging/Kconfig.template.log_config"
config DAC_SHELL
bool "Enable DAC shell"
default y
depends on SHELL
help
Enable DAC related shell commands.
config DAC_INIT_PRIORITY
int "DAC init priority"
default KERNEL_INIT_PRIORITY_DEVICE
help
DAC driver device initialization priority.
source "drivers/dac/Kconfig.mcux"
source "drivers/dac/Kconfig.stm32"
source "drivers/dac/Kconfig.sam"
source "drivers/dac/Kconfig.sam0"
source "drivers/dac/Kconfig.dacx0508"
source "drivers/dac/Kconfig.dacx3608"
source "drivers/dac/Kconfig.mcp4725"
endif # DAC