drivers: pwm: Update drivers to use devicetree Kconfig symbol
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>
This commit is contained in:
parent
aae701d2c1
commit
885087b328
24 changed files with 52 additions and 45 deletions
|
@ -5,6 +5,7 @@
|
|||
|
||||
config PWM_SAM0_TCC
|
||||
bool "Atmel SAM0 MCU Family TCC PWM Driver"
|
||||
depends on SOC_FAMILY_SAM0
|
||||
default y
|
||||
depends on DT_HAS_ATMEL_SAM0_TCC_PWM_ENABLED
|
||||
help
|
||||
Enable PWM driver for Atmel SAM0 MCUs using the TCC timer/counter.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue