Browse Source

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 <[email protected]> # zte,mf283plus
Signed-off-by: Michael Pratt <[email protected]>
Michael Pratt 1 year ago
parent
commit
bc00c78b43
1 changed files with 1 additions and 1 deletions
  1. 1 1
      target/linux/ramips/image/lzma-loader/src/board.c

+ 1 - 1
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