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:
Kumar Gala 2022-07-21 16:13:45 -05:00 committed by Kumar Gala
commit 885087b328
24 changed files with 52 additions and 45 deletions

View file

@ -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.