diff options
Diffstat (limited to 'chip/mt_scp/mt8195/uart.c')
-rw-r--r-- | chip/mt_scp/mt8195/uart.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chip/mt_scp/mt8195/uart.c b/chip/mt_scp/mt8195/uart.c index 78e7903e08..e8d29cf311 100644 --- a/chip/mt_scp/mt8195/uart.c +++ b/chip/mt_scp/mt8195/uart.c @@ -16,4 +16,12 @@ void uart_init_pinmux(void) { +#if UARTN == 0 + SCP_UART_CK_SEL |= UART0_CK_SEL_VAL(UART_CK_SEL_26M); + SCP_SET_CLK_CG |= CG_UART0_MCLK | CG_UART0_BCLK | CG_UART0_RST; + + /* set AP GPIO102 and GPIO103 to alt func 5 */ + AP_GPIO_MODE12_CLR = 0x77000000; + AP_GPIO_MODE12_SET = 0x55000000; +#endif } |