kinetis:[lp]serial remove ttype & do cache ops
This commit is contained in:
parent
7a7a01153b
commit
22580584d2
@ -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…
Reference in New Issue
Block a user