Skip to content

Commit 59bd4c3

Browse files
committed
ARM: debug-ll: rework lpc32xx handling
LPC32xx can not yet be configured in a multiplatform kernel, but if we ever get there, enabling one of the LPC32xx platforms while trying to use DEBUG_LL for another platform can default to the wrong UART address, as the options are purely based on the architecture being enabled or not. This changes the logic to use the LPC32xx default addresses only if we have also picked the respective Kconfig symbols introduced here. While we're at it, this also reorders the virtual address as it should be. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Vladimir Zapolskiy <vz@mleia.com>
1 parent d7175a3 commit 59bd4c3

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

‎arch/arm/Kconfig.debug‎

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,14 @@ choice
480480
Say Y here if you want kernel low-level debugging support
481481
on NXP LPC18xx/43xx UART0.
482482

483+
config DEBUG_LPC32XX
484+
bool "Kernel low-level debugging messages via NXP LPC32xx UART"
485+
depends on ARCH_LPC32XX
486+
select DEBUG_UART_8250
487+
help
488+
Say Y here if you want kernel low-level debugging support
489+
on NXP LPC32xx based platforms.
490+
483491
config DEBUG_MESON_UARTAO
484492
bool "Kernel low-level debugging via Meson6 UARTAO"
485493
depends on ARCH_MESON
@@ -1418,7 +1426,7 @@ config DEBUG_UART_PL01X
14181426
config DEBUG_UART_8250
14191427
def_bool ARCH_EBSA110 || (FOOTBRIDGE && !DEBUG_DC21285_PORT) || \
14201428
ARCH_IOP13XX || ARCH_IOP32X || ARCH_IOP33X || ARCH_IXP4XX || \
1421-
ARCH_LPC32XX || ARCH_RPC
1429+
ARCH_RPC
14221430

14231431
# Compatibility options for BCM63xx
14241432
config DEBUG_UART_BCM63XX
@@ -1461,7 +1469,7 @@ config DEBUG_UART_PHYS
14611469
default 0x3e000000 if DEBUG_BCM_KONA_UART
14621470
default 0x4000e400 if DEBUG_LL_UART_EFM32
14631471
default 0x40081000 if DEBUG_LPC18XX_UART0
1464-
default 0x40090000 if ARCH_LPC32XX
1472+
default 0x40090000 if DEBUG_LPC32XX
14651473
default 0x40100000 if DEBUG_PXA_UART1
14661474
default 0x42000000 if DEBUG_GEMINI
14671475
default 0x50000000 if DEBUG_S3C24XX_UART && (DEBUG_S3C_UART0 || \
@@ -1549,9 +1557,9 @@ config DEBUG_UART_VIRT
15491557
default 0xf1c28000 if DEBUG_SUNXI_UART0
15501558
default 0xf1c28400 if DEBUG_SUNXI_UART1
15511559
default 0xf1f02800 if DEBUG_SUNXI_R_UART
1560+
default 0xf4090000 if DEBUG_LPC32XX
15521561
default 0xf4200000 if DEBUG_GEMINI
15531562
default 0xf6200000 if DEBUG_PXA_UART1
1554-
default 0xf4090000 if ARCH_LPC32XX
15551563
default 0xf7000000 if DEBUG_SUN9I_UART0
15561564
default 0xf7000000 if DEBUG_S3C24XX_UART && (DEBUG_S3C_UART0 || \
15571565
DEBUG_S3C2410_UART0)

0 commit comments

Comments
 (0)