From ccf15490c9c649e313963578960a93d82a89be8f Mon Sep 17 00:00:00 2001 From: ZYH Date: Mon, 19 Feb 2018 15:31:28 +0800 Subject: [PATCH] [Bsp][Tina]Fix uart bug --- bsp/allwinner_tina/drivers/drv_uart.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bsp/allwinner_tina/drivers/drv_uart.c b/bsp/allwinner_tina/drivers/drv_uart.c index 1c48c53dc..8dd7e68be 100644 --- a/bsp/allwinner_tina/drivers/drv_uart.c +++ b/bsp/allwinner_tina/drivers/drv_uart.c @@ -184,16 +184,19 @@ static rt_err_t uart_configure(struct rt_serial_device *serial, struct serial_co if ((rt_uint32_t)(uart->hw_base) == UART0_BASE_ADDR) { bus_gate_clk_enalbe(UART0_GATING); + bus_software_reset_disalbe(UART0_GATING); bus_software_reset_enalbe(UART0_GATING); } else if ((rt_uint32_t)(uart->hw_base) == UART1_BASE_ADDR) { bus_gate_clk_enalbe(UART1_GATING); + bus_software_reset_disalbe(UART1_GATING); bus_software_reset_enalbe(UART1_GATING); } else if ((rt_uint32_t)(uart->hw_base) == UART2_BASE_ADDR) { bus_gate_clk_enalbe(UART2_GATING); + bus_software_reset_disalbe(UART2_GATING); bus_software_reset_enalbe(UART2_GATING); } else