Skip to content

Commit 1b0840e

Browse files
gmarulldleach02
authored andcommitted
drivers: pwm: nrf_sw: always default to yes
There's no need to add conditions to CONFIG_PWM_NRF_SW, because it is already conditioned to DT status. Right now, if any system uses both normal PWM and "SW PWM", it needs to manually enable the driver Kconfig. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent 0d2f23f commit 1b0840e

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

drivers/pwm/Kconfig.nrf_sw

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
config PWM_NRF_SW
77
bool "Nordic Semiconductor nRF family S/W PWM"
8-
default y if !PWM_NRFX
8+
default y
99
depends on DT_HAS_NORDIC_NRF_SW_PWM_ENABLED
1010
select NRFX_GPIOTE
1111
select NRFX_PPI if HAS_HW_NRF_PPI

samples/bluetooth/mesh_demo/boards/bbc_microbit.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ CONFIG_GPIO=y
55
CONFIG_DISPLAY=y
66
CONFIG_MICROBIT_DISPLAY=y
77
CONFIG_PWM=y
8-
CONFIG_PWM_NRF_SW=y
98

109
CONFIG_BT_RX_STACK_SIZE=1280
1110
CONFIG_BT_CTLR_DUP_FILTER_LEN=0

samples/boards/bbc/microbit/pong/prj.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ CONFIG_GPIO=y
88
CONFIG_DISPLAY=y
99
CONFIG_MICROBIT_DISPLAY=y
1010
CONFIG_PWM=y
11-
CONFIG_PWM_NRF_SW=y
1211

1312
# This feature isn't needed as this sample is intended to be used
1413
# between zephyr devices only.

0 commit comments

Comments
 (0)