blob: 92fa139b4a53d48921350690de9cfb6e46e29a18 [file]
#!/bin/bash
connect_uart_route() {
echo -ne "$1" > /sys/devices/platform/ahb/ahb:apb/1e789000.lpc/1e789098.uart-routing/"$2"
echo -ne "$2" > /sys/devices/platform/ahb/ahb:apb/1e789000.lpc/1e789098.uart-routing/"$1"
}
connect_uart_route "uart1" "uart4"
connect_uart_route "io1" "uart2"
# Enable UART4/ttyS2 flow contorl
stty -F /dev/ttyS2 crtscts