zephyr/drivers/clock_control/Kconfig
Maureen Helm ed9cb841c3 drivers: clock_control: Refactor drivers to use shared init priority
Refactors all of the clock control drivers to use a shared driver class
initialization priority configuration,
CONFIG_CLOCK_CONTROL_INIT_PRIORITY, to allow configuring clock control
drivers separately from other devices. This is similar to other driver
classes like I2C and SPI.

Most drivers previously used CONFIG_KERNEL_INIT_PRIORITY_OBJECTS or
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, therefore the default for this new
option is the lower of the two, which means earlier initialization.

The even lower defaults for STM32 and Arm Beetle are preserved by
SoC-family level overrides.

Signed-off-by: Maureen Helm <maureen.helm@intel.com>
2021-10-19 23:05:25 -04:00

66 lines
1.6 KiB
Plaintext

# Clock controller driver configuration options
# Copyright (c) 2015 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
# Clock controller drivers
#
menuconfig CLOCK_CONTROL
bool "Hardware clock controller support"
help
Enable support for hardware clock controller. Such hardware can
provide clock for other subsystem, and thus can be also used for
power efficiency by controlling their clock. Note that this has
nothing to do with RTC.
if CLOCK_CONTROL
config CLOCK_CONTROL_INIT_PRIORITY
int "Clock control init priority"
default KERNEL_INIT_PRIORITY_OBJECTS
help
Clock control driver device initialization priority.
module = CLOCK_CONTROL
module-str = clock control
source "subsys/logging/Kconfig.template.log_config"
source "drivers/clock_control/Kconfig.nrf"
source "drivers/clock_control/Kconfig.stm32"
source "drivers/clock_control/Kconfig.beetle"
source "drivers/clock_control/Kconfig.lpc11u6x"
source "drivers/clock_control/Kconfig.mcux_ccm"
source "drivers/clock_control/Kconfig.mcux_ccm_rev2"
source "drivers/clock_control/Kconfig.mcux_mcg"
source "drivers/clock_control/Kconfig.mcux_pcc"
source "drivers/clock_control/Kconfig.mcux_scg"
source "drivers/clock_control/Kconfig.mcux_sim"
source "drivers/clock_control/Kconfig.mcux_syscon"
source "drivers/clock_control/Kconfig.npcx"
source "drivers/clock_control/Kconfig.rv32m1"
source "drivers/clock_control/Kconfig.esp32"
source "drivers/clock_control/Kconfig.esp32s2"
source "drivers/clock_control/Kconfig.litex"
source "drivers/clock_control/Kconfig.rcar"
source "drivers/clock_control/Kconfig.xec"
endif # CLOCK_CONTROL