zephyr/drivers/clock_control/Kconfig.pwm
Andriy Gelman 0d1fa268bb drivers: clock_control: Add PWM clock device
Adds a clock control device for a PWM node, allowing the PWM
to be controlled using the clock control API.

It is a similar idea to the device driver in linux:
linux/Documentation/devicetree/bindings/clock/pwm-clock.yaml

Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
2023-11-20 09:18:44 +01:00

19 lines
477 B
Plaintext

# Copyright (c) 2023 Andriy Gelman <andriy.gelman@gmail.com>
# SPDX-License-Identifier: Apache-2.0
config CLOCK_CONTROL_PWM
bool "Generic PWM clock"
default y
depends on DT_HAS_PWM_CLOCK_ENABLED
select PWM
help
Enable generic PWM clock.
config CLOCK_CONTROL_PWM_INIT_PRIORITY
int "Initialization priority of the pwm clock device"
default 51
depends on CLOCK_CONTROL_PWM
help
Initialization priority of the PWM clock device. Must be
lower priority than PWM.