Skip to content

Commit 0dc7a7b

Browse files
committed
[nrf fromlist] drivers: serial: nrfx_uarte: Add runtime PM
Add runtime PM to the driver. When asynchronous or interrupt driven API is used, there are 3 independent paths for enabling the device: RX, TX and TX poll_out. TX poll_out requires special handling because number of poll_out calls does not need to much number of TXSTOPPED interrupts. To handle that special flag is added. For standard RX and TX is simpler. Upstream PR: zephyrproject-rtos/zephyr#75462 Signed-off-by: Krzysztof Chruściński <[email protected]>
1 parent bf96c5a commit 0dc7a7b

File tree

2 files changed

+261
-192
lines changed

2 files changed

+261
-192
lines changed

drivers/serial/Kconfig.nrfx_uart_instance

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ config UART_$(nrfx_uart_num)_NRF_ASYNC_LOW_POWER
6868
depends on HAS_HW_NRF_UARTE$(nrfx_uart_num)
6969
depends on UART_ASYNC_API
7070
depends on UART_NRFX_UARTE_LEGACY_SHIM
71+
depends on !PM_DEVICE
7172
default y
7273
help
7374
When enabled, UARTE is enabled before each TX or RX usage and disabled

0 commit comments

Comments
 (0)