Hello @RoyKang
Digging a little in this topic, I found the imx_uart_start_rx(struct uart_port *port) , and I saw in that function is configured the UART to works like DMA or without DMA.
If DMA is not enabled:
ucr1 |= UCR1_RRDYEN;
ucr2 |= UCR2_ATEN;
RRDYEN: Receiver Ready Interrupt Enable. Enables/Disables the RRDY interrupt when the RxFIFO contains data. The fill level in the RxFIFO at which an interrupt is generated is controlled by the RXTL bits. When RRDYEN is negated, the receiver ready interrupt is disabled.
- 0 Disables the RRDY interrupt.
- 1 Enables the RRDY interrupt.
ATEN: Aging Timer Enable. This bit is used to enable the aging timer interrupt (triggered with AGTIM).
- 0 AGTIM interrupt disabled
- 1 AGTIM interrupt enabled
One can try to enable BKEN in UCR4.
BKEN: BREAK Condition Detected Interrupt Enable. Enables/Disables the BRCD bit to generate an interrupt.
- 0 Disable the BRCD interrupt
- 1 Enable the BRCD interrupt
Best regards,
Salas.