summaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorMichael Pratt <mcpratt@pm.me>2023-12-06 14:29:26 -0500
committerHauke Mehrtens <hauke@hauke-m.de>2024-01-02 22:10:34 +0100
commitbc00c78b4338779ca1b7cd08411f76218d1f3205 (patch)
tree964723808ad5ee5c13ee93c956797510fd13866a /target
parent2e47913c644c59aa25fbac2bc6c4297956406b82 (diff)
downloadopenwrt-bc00c78b4338779ca1b7cd08411f76218d1f3205.tar.gz
openwrt-bc00c78b4338779ca1b7cd08411f76218d1f3205.tar.bz2
openwrt-bc00c78b4338779ca1b7cd08411f76218d1f3205.zip
ramips: lzma-loader: use default uart for rt305x
The rt305x series SOC have two UART devices, and the one at bus address 0x500 is disabled by default. Some boards do not even have a pinout for the first one, so use the same one that the kernel uses at 0xc00 instead. This allows the lzma-loader printing to be visible alongside the kernel log in the same console. Tested-by: Lech Perczak <lech.perczak@gmail.com> # zte,mf283plus Signed-off-by: Michael Pratt <mcpratt@pm.me>
Diffstat (limited to 'target')
-rw-r--r--target/linux/ramips/image/lzma-loader/src/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ramips/image/lzma-loader/src/board.c b/target/linux/ramips/image/lzma-loader/src/board.c
index 9f87cddec7..de02f58b9f 100644
--- a/target/linux/ramips/image/lzma-loader/src/board.c
+++ b/target/linux/ramips/image/lzma-loader/src/board.c
@@ -40,7 +40,7 @@
#define UART_LSR (UART_BASE + 0x14)
#define UART_LSR_MASK UART_LSR_THRE
#elif defined(SOC_RT305X)
-#define UART_BASE KSEG1ADDR(0x10000500)
+#define UART_BASE KSEG1ADDR(0x10000c00)
#define UART_THR (UART_BASE + 0x04)
#define UART_LSR (UART_BASE + 0x1c)
#define UART_LSR_MASK UART_LSR_THRE