Skip to content

Commit

Permalink
[c906 firmware] delete risc-v core init UART GPIO
Browse files Browse the repository at this point in the history
  • Loading branch information
YuzukiTsuru committed Dec 25, 2023
1 parent 3d3b872 commit a3b235b
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions board/100ask-t113i/load_c906/c906_firmware/src/sys/sys-uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a3b235b

Please sign in to comment.