885087b328
Update pwm drivers to use DT_HAS_<compat>_ENABLED Kconfig symbol to expose the driver and enable it by default based on devicetree. We remove 'depend on' Kconfig for symbols that would be implied by the devicetree node existing. Signed-off-by: Kumar Gala <galak@kernel.org>
19 lines
450 B
Plaintext
19 lines
450 B
Plaintext
# SiFive Freedom PWM configuration options
|
|
|
|
# Copyright (c) 2018 SiFive Inc.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
menuconfig PWM_SIFIVE
|
|
bool "SiFive Freedom PWM driver"
|
|
default y
|
|
depends on DT_HAS_SIFIVE_PWM0_ENABLED
|
|
help
|
|
Enable the PWM driver for the SiFive Freedom platform
|
|
|
|
config PWM_SIFIVE_INIT_PRIORITY
|
|
int "Init Priority"
|
|
default KERNEL_INIT_PRIORITY_DEVICE
|
|
depends on PWM_SIFIVE
|
|
help
|
|
SiFive PWM Driver Initialization Priority
|