mirror of
https://github.com/apache/nuttx.git
synced 2026-09-09 18:36:37 +00:00
kinetis:[lp]serial remove ttype & do cache ops
This commit is contained in:
parent
7a7a01153b
commit
22580584d2
2 changed files with 6 additions and 2 deletions
|
|
@ -847,7 +847,6 @@ static int kinetis_dma_setup(struct uart_dev_s *dev)
|
|||
config.flags = EDMA_CONFIG_LINKTYPE_LINKNONE | EDMA_CONFIG_LOOPDEST;
|
||||
config.ssize = EDMA_8BIT;
|
||||
config.dsize = EDMA_8BIT;
|
||||
config.ttype = EDMA_PERIPH2MEM;
|
||||
config.nbytes = 1;
|
||||
#ifdef CONFIG_KINETIS_EDMA_ELINK
|
||||
config.linkch = NULL;
|
||||
|
|
@ -860,6 +859,9 @@ static int kinetis_dma_setup(struct uart_dev_s *dev)
|
|||
|
||||
priv->rxdmanext = 0;
|
||||
|
||||
up_invalidate_dcache((uintptr_t)priv->rxfifo,
|
||||
(uintptr_t)priv->rxfifo + RXDMA_BUFFER_SIZE);
|
||||
|
||||
/* Enable receive DMA for the UART */
|
||||
|
||||
regval = kinetis_serialin(priv, KINETIS_LPUART_BAUD_OFFSET);
|
||||
|
|
|
|||
|
|
@ -956,7 +956,6 @@ static int up_dma_setup(struct uart_dev_s *dev)
|
|||
config.flags = EDMA_CONFIG_LINKTYPE_LINKNONE | EDMA_CONFIG_LOOPDEST;
|
||||
config.ssize = EDMA_8BIT;
|
||||
config.dsize = EDMA_8BIT;
|
||||
config.ttype = EDMA_PERIPH2MEM;
|
||||
config.nbytes = 1;
|
||||
#ifdef CONFIG_KINETIS_EDMA_ELINK
|
||||
config.linkch = NULL;
|
||||
|
|
@ -969,6 +968,9 @@ static int up_dma_setup(struct uart_dev_s *dev)
|
|||
|
||||
priv->rxdmanext = 0;
|
||||
|
||||
up_invalidate_dcache((uintptr_t)priv->rxfifo,
|
||||
(uintptr_t)priv->rxfifo + RXDMA_BUFFER_SIZE);
|
||||
|
||||
/* Enable receive DMA for the UART */
|
||||
|
||||
regval = up_serialin(priv, KINETIS_UART_C5_OFFSET);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue