diff --git a/chip/g/uart.c b/chip/g/uart.c index 89d3fa1114..e2cd2193b8 100644 --- a/chip/g/uart.c +++ b/chip/g/uart.c @@ -101,6 +101,7 @@ void uart_init(void) /* Initialize the Cr50 UART */ uartn_init(UARTN); + uartn_enable(UARTN); #ifdef UART_AP uartn_init(UART_AP); diff --git a/chip/g/uartn.c b/chip/g/uartn.c index cda77c819d..64414a339f 100644 --- a/chip/g/uartn.c +++ b/chip/g/uartn.c @@ -25,7 +25,6 @@ static struct uartn_interrupts interrupt[] = { {GC_IRQNUM_UART2_TXINT, GC_IRQNUM_UART2_RXINT}, }; - void uartn_tx_start(int uart) { if (!uart_init_done()) @@ -144,12 +143,6 @@ void uartn_init(int uart) */ GR_UART_FIFO(uart) = 0x63; - /* - * TX enable, RX enable, HW flow control disabled, no - * loopback - */ - uartn_enable(uart); - /* enable RX interrupts in block */ /* Note: doesn't do anything unless turned on in NVIC */ GR_UART_ICTRL(uart) = 0x02; @@ -158,5 +151,4 @@ void uartn_init(int uart) /* Enable interrupts for UART */ uartn_enable_interrupt(uart); #endif - }