aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2015-12-03 11:54:05 -0500
committerArnd Bergmann <arnd@arndb.de>2015-12-15 17:42:03 -0500
commit59bd4c3827f42c19e530326761e7094eaa28aac3 (patch)
tree70d2b89c9c906a1b0f0342348cd3d536c63b4a32
parentd7175a3b79ef55e3f755e956d82b7efcbfbd4701 (diff)
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>
-rw-r--r--arch/arm/Kconfig.debug14
1 files changed, 11 insertions, 3 deletions
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
index d4cac690f365..cff7a32a955e 100644
--- a/arch/arm/Kconfig.debug
+++ b/arch/arm/Kconfig.debug
@@ -480,6 +480,14 @@ choice
480 Say Y here if you want kernel low-level debugging support 480 Say Y here if you want kernel low-level debugging support
481 on NXP LPC18xx/43xx UART0. 481 on NXP LPC18xx/43xx UART0.
482 482
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
483 config DEBUG_MESON_UARTAO 491 config DEBUG_MESON_UARTAO
484 bool "Kernel low-level debugging via Meson6 UARTAO" 492 bool "Kernel low-level debugging via Meson6 UARTAO"
485 depends on ARCH_MESON 493 depends on ARCH_MESON
@@ -1418,7 +1426,7 @@ config DEBUG_UART_PL01X
1418config DEBUG_UART_8250 1426config DEBUG_UART_8250
1419 def_bool ARCH_EBSA110 || (FOOTBRIDGE && !DEBUG_DC21285_PORT) || \ 1427 def_bool ARCH_EBSA110 || (FOOTBRIDGE && !DEBUG_DC21285_PORT) || \
1420 ARCH_IOP13XX || ARCH_IOP32X || ARCH_IOP33X || ARCH_IXP4XX || \ 1428 ARCH_IOP13XX || ARCH_IOP32X || ARCH_IOP33X || ARCH_IXP4XX || \
1421 ARCH_LPC32XX || ARCH_RPC 1429 ARCH_RPC
1422 1430
1423# Compatibility options for BCM63xx 1431# Compatibility options for BCM63xx
1424config DEBUG_UART_BCM63XX 1432config DEBUG_UART_BCM63XX
@@ -1461,7 +1469,7 @@ config DEBUG_UART_PHYS
1461 default 0x3e000000 if DEBUG_BCM_KONA_UART 1469 default 0x3e000000 if DEBUG_BCM_KONA_UART
1462 default 0x4000e400 if DEBUG_LL_UART_EFM32 1470 default 0x4000e400 if DEBUG_LL_UART_EFM32
1463 default 0x40081000 if DEBUG_LPC18XX_UART0 1471 default 0x40081000 if DEBUG_LPC18XX_UART0
1464 default 0x40090000 if ARCH_LPC32XX 1472 default 0x40090000 if DEBUG_LPC32XX
1465 default 0x40100000 if DEBUG_PXA_UART1 1473 default 0x40100000 if DEBUG_PXA_UART1
1466 default 0x42000000 if DEBUG_GEMINI 1474 default 0x42000000 if DEBUG_GEMINI
1467 default 0x50000000 if DEBUG_S3C24XX_UART && (DEBUG_S3C_UART0 || \ 1475 default 0x50000000 if DEBUG_S3C24XX_UART && (DEBUG_S3C_UART0 || \
@@ -1549,9 +1557,9 @@ config DEBUG_UART_VIRT
1549 default 0xf1c28000 if DEBUG_SUNXI_UART0 1557 default 0xf1c28000 if DEBUG_SUNXI_UART0
1550 default 0xf1c28400 if DEBUG_SUNXI_UART1 1558 default 0xf1c28400 if DEBUG_SUNXI_UART1
1551 default 0xf1f02800 if DEBUG_SUNXI_R_UART 1559 default 0xf1f02800 if DEBUG_SUNXI_R_UART
1560 default 0xf4090000 if DEBUG_LPC32XX
1552 default 0xf4200000 if DEBUG_GEMINI 1561 default 0xf4200000 if DEBUG_GEMINI
1553 default 0xf6200000 if DEBUG_PXA_UART1 1562 default 0xf6200000 if DEBUG_PXA_UART1
1554 default 0xf4090000 if ARCH_LPC32XX
1555 default 0xf7000000 if DEBUG_SUN9I_UART0 1563 default 0xf7000000 if DEBUG_SUN9I_UART0
1556 default 0xf7000000 if DEBUG_S3C24XX_UART && (DEBUG_S3C_UART0 || \ 1564 default 0xf7000000 if DEBUG_S3C24XX_UART && (DEBUG_S3C_UART0 || \
1557 DEBUG_S3C2410_UART0) 1565 DEBUG_S3C2410_UART0)