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,7 +5,8 @@
config PWM_GECKO
bool "GECKO MCU PWM driver"
depends on SOC_FAMILY_EXX32
default y
depends on DT_HAS_SILABS_GECKO_PWM_ENABLED
select SOC_GECKO_TIMER
help
This option enables the PWM driver for EXX32 GECKO family of