mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 12:14:06 +00:00
MIPS: boot: Support specifying UART port on Ingenic SoCs
Allow specifying from the config the UART to use on Ingenic SoCs when compressed kernel debugging is enabled. Signed-off-by: Paul Cercueil <paul@crapouillou.net> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
This commit is contained in:
parent
1660710cf5
commit
f92a05b9c0
2 changed files with 10 additions and 2 deletions
|
@ -102,6 +102,14 @@ config DEBUG_ZBOOT
|
|||
to reduce the kernel image size and speed up the booting procedure a
|
||||
little.
|
||||
|
||||
config ZBOOT_INGENIC_UART
|
||||
int "UART to use for compressed kernel debugging"
|
||||
depends on DEBUG_ZBOOT && MACH_INGENIC_SOC
|
||||
default 0
|
||||
range 0 4
|
||||
help
|
||||
Specify the UART that should be used for compressed kernel debugging.
|
||||
|
||||
config SPINLOCK_TEST
|
||||
bool "Enable spinlock timing tests in debugfs"
|
||||
depends on DEBUG_FS
|
||||
|
|
|
@ -19,8 +19,8 @@
|
|||
#endif
|
||||
|
||||
#ifdef CONFIG_MACH_INGENIC
|
||||
#define INGENIC_UART0_BASE_ADDR 0x10030000
|
||||
#define PORT(offset) (CKSEG1ADDR(INGENIC_UART0_BASE_ADDR) + (4 * offset))
|
||||
#define INGENIC_UART_BASE_ADDR (0x10030000 + 0x1000 * CONFIG_ZBOOT_INGENIC_UART)
|
||||
#define PORT(offset) (CKSEG1ADDR(INGENIC_UART_BASE_ADDR) + (4 * offset))
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_CPU_XLR
|
||||
|
|
Loading…
Add table
Reference in a new issue