From a3b235ba394f333e6949f5fb5b2ec52048744efa Mon Sep 17 00:00:00 2001 From: YuzukiTsuru Date: Mon, 25 Dec 2023 19:10:55 +0800 Subject: [PATCH] [c906 firmware] delete risc-v core init UART GPIO --- .../load_c906/c906_firmware/src/sys/sys-uart.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/board/100ask-t113i/load_c906/c906_firmware/src/sys/sys-uart.c b/board/100ask-t113i/load_c906/c906_firmware/src/sys/sys-uart.c index 5e35d102..e5a49bfd 100644 --- a/board/100ask-t113i/load_c906/c906_firmware/src/sys/sys-uart.c +++ b/board/100ask-t113i/load_c906/c906_firmware/src/sys/sys-uart.c @@ -12,17 +12,7 @@ void sys_uart_init() { virtual_addr_t addr; u32_t val; - /* Config GPIOE2 and GPIOE3 to txd0 and rxd0 */ - addr = 0x020000c0 + 0x0; - val = read32(addr); - val &= ~(0xf << ((2 & 0x7) << 2)); - val |= ((0x6 & 0xf) << ((2 & 0x7) << 2)); - write32(addr, val); - - val = read32(addr); - val &= ~(0xf << ((3 & 0x7) << 2)); - val |= ((0x6 & 0xf) << ((3 & 0x7) << 2)); - write32(addr, val); + /* GPIO Configed by SyterKit */ /* Open the clock gate for uart0 */ addr = 0x0200190c;