drivers: uart: npcx: add asychronous API support
This commit implement the UART asynchronous API mode support. When the API is used, the UART hardware cooperates with the DMA (MDMA) module to handle the the data transfer and receiving. Signed-off-by: Jun Lin <CHLin56@nuvoton.com>
This commit is contained in:
parent
3ba7874cd5
commit
08fedb4a80
5 changed files with 650 additions and 70 deletions
|
@ -376,6 +376,9 @@ struct uart_reg {
|
|||
#define NPCX_UFRS_PSEL_FIELD FIELD(4, 2)
|
||||
#define NPCX_UFRS_PEN 6
|
||||
#define NPCX_UMDSL_FIFO_MD 0
|
||||
#define NPCX_UMDSL_ETD 4
|
||||
#define NPCX_UMDSL_ERD 5
|
||||
|
||||
#define NPCX_UFTSTS_TEMPTY_LVL FIELD(0, 5)
|
||||
#define NPCX_UFTSTS_TEMPTY_LVL_STS 5
|
||||
#define NPCX_UFTSTS_TFIFO_EMPTY_STS 6
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue