Potin Lai | 1a30877 | 2023-12-13 19:17:12 +0800 | [diff] [blame] | 1 | #!/bin/bash |
2 | |||||
3 | connect_uart_route() { | ||||
4 | echo -ne "$1" > /sys/devices/platform/ahb/ahb:apb/1e789000.lpc/1e789098.uart-routing/"$2" | ||||
5 | echo -ne "$2" > /sys/devices/platform/ahb/ahb:apb/1e789000.lpc/1e789098.uart-routing/"$1" | ||||
6 | } | ||||
7 | |||||
8 | connect_uart_route "uart1" "uart4" | ||||
9 | connect_uart_route "io1" "uart2" |