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>
14 lines
396 B
Plaintext
14 lines
396 B
Plaintext
# Copyright (c) 2018, Cue Health Inc
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config PWM_NRFX
|
|
bool "nRF PWM nrfx driver"
|
|
default y
|
|
depends on DT_HAS_NORDIC_NRF_PWM_ENABLED
|
|
select NRFX_PWM0 if HAS_HW_NRF_PWM0
|
|
select NRFX_PWM1 if HAS_HW_NRF_PWM1
|
|
select NRFX_PWM2 if HAS_HW_NRF_PWM2
|
|
select NRFX_PWM3 if HAS_HW_NRF_PWM3
|
|
help
|
|
Enable support for nrfx Hardware PWM driver for nRF52 MCU series.
|