zephyr/drivers/clock_control/Kconfig
Gerard Marull-Paretas 4aa31b4526 drivers: clock_control: gd32: initial support
This patch adds a clock control driver for GD32 platforms. It is
important to note that the driver is only able to handle peripheral
clocks, but not "system clocks" (e.g. PLL settings, SYS_CK, etc.).  On
some similar platforms (STM32) this task is embedded in the same clock
driver, performed at init time but with no options to do any
manipulation at runtime via the API calls. The clock control API as-is
is really orthogonal to "system clocks", and it is arguably a bad idea
to embed system clock init code in a clock control driver. It can be
done at SoC level still using Devicetree as a source of hardware
description/initial configuration.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2022-09-06 09:57:25 +02:00

70 lines
1.7 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.litex"
source "drivers/clock_control/Kconfig.rcar"
source "drivers/clock_control/Kconfig.xec"
source "drivers/clock_control/Kconfig.cavs"
source "drivers/clock_control/Kconfig.aspeed"
source "drivers/clock_control/Kconfig.gd32"
endif # CLOCK_CONTROL