[openwrt/openwrt] ramips: lzma-loader: use default uart for rt305x
LEDE Commits
lede-commits at lists.infradead.org
Fri Jan 5 14:36:12 PST 2024
hauke pushed a commit to openwrt/openwrt.git, branch openwrt-23.05:
https://git.openwrt.org/9cd589bd79aa94050261abd02f652eabed9396e0
commit 9cd589bd79aa94050261abd02f652eabed9396e0
Author: Michael Pratt <mcpratt at pm.me>
AuthorDate: Wed Dec 6 14:29:26 2023 -0500
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 at gmail.com> # zte,mf283plus
Signed-off-by: Michael Pratt <mcpratt at pm.me>
(cherry picked from commit bc00c78b4338779ca1b7cd08411f76218d1f3205)
Signed-off-by: Lech Perczak <lech.perczak at gmail.com>
---
target/linux/ramips/image/lzma-loader/src/board.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
More information about the lede-commits
mailing list