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