Add the feature for the flexcomm uart to be able to be a wakeup source from low power modes. To be able to do this on a relevant platform, the DT node for the UART needs to have the wakeup-source property and define a "sleep" clock. The details of handling the sleep clock and default clock are still platform specific but handled by the clock control driver of the platform, so that this code should be able to be applicable to any platform that follows the same DT definition. Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
25 lines
624 B
Plaintext
25 lines
624 B
Plaintext
# MCUXpresso SDK USART
|
|
# Copyright 2017, NXP
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config UART_MCUX_FLEXCOMM
|
|
bool "MCUX FLEXCOMM UART driver"
|
|
default y
|
|
depends on DT_HAS_NXP_LPC_USART_ENABLED
|
|
select SERIAL_HAS_DRIVER
|
|
select SERIAL_SUPPORT_INTERRUPT
|
|
select SERIAL_SUPPORT_ASYNC if \
|
|
DT_HAS_NXP_LPC_DMA_ENABLED
|
|
select PM_POLICY_DEVICE_CONSTRAINTS if PM
|
|
select DMA if UART_ASYNC_API
|
|
select PINCTRL
|
|
help
|
|
Enable the MCUX USART driver.
|
|
|
|
config UART_MCUX_FLEXCOMM_ISR_SUPPORT
|
|
bool
|
|
depends on UART_MCUX_FLEXCOMM
|
|
default y if UART_INTERRUPT_DRIVEN || UART_ASYNC_API
|
|
help
|
|
Enable UART interrupt service routine.
|