Skip to content

Commit 0045c0d

Browse files
committed
ARM: debug-ll: rework footbridge handling
Footbridge has two debug ports that are handled a bit differently: The 8250 port uses the normal debug/8250.S implementation that is shared with a lot of other platforms, but it relies on the DEBUG_UART_8250 option to be turned on automatically instead of being selected by DEBUG_FOOTBRIDGE_COM1 as we do for most other platforms. I'm changing this to use a 'select' and change the dependency to the debug symbol rather than the platform symbol for consistency. The DC21285 UART has a separate top-level option, and relies on the traditional include/mach/debug-macro.S method. With the s3c64xx multiplatform series queued up for 4.5, it is now the last one that does this, so by moving this file to include/debug/dc21285.S, we can get all platforms to do things the same way. Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 parent 59bd4c3 commit 0045c0d

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

‎arch/arm/Kconfig.debug‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ choice
274274
config DEBUG_FOOTBRIDGE_COM1
275275
bool "Kernel low-level debugging messages via footbridge 8250 at PCI COM1"
276276
depends on FOOTBRIDGE
277+
select DEBUG_UART_8250
277278
help
278279
Say Y here if you want the debug print routines to direct
279280
their output to the 8250 at PCI COM1.
@@ -1374,6 +1375,7 @@ config DEBUG_LL_INCLUDE
13741375
default "debug/at91.S" if DEBUG_AT91_UART
13751376
default "debug/asm9260.S" if DEBUG_ASM9260_UART
13761377
default "debug/clps711x.S" if DEBUG_CLPS711X_UART1 || DEBUG_CLPS711X_UART2
1378+
default "debug/dc21285.S" if DEBUG_DC21285_PORT
13771379
default "debug/meson.S" if DEBUG_MESON_UARTAO
13781380
default "debug/pl01x.S" if DEBUG_LL_UART_PL01X || DEBUG_UART_PL01X
13791381
default "debug/exynos.S" if DEBUG_EXYNOS_UART
@@ -1424,7 +1426,7 @@ config DEBUG_UART_PL01X
14241426

14251427
# Compatibility options for 8250
14261428
config DEBUG_UART_8250
1427-
def_bool ARCH_EBSA110 || (FOOTBRIDGE && !DEBUG_DC21285_PORT) || \
1429+
def_bool ARCH_EBSA110 || \
14281430
ARCH_IOP13XX || ARCH_IOP32X || ARCH_IOP33X || ARCH_IXP4XX || \
14291431
ARCH_RPC
14301432

@@ -1479,7 +1481,7 @@ config DEBUG_UART_PHYS
14791481
default 0x50008000 if DEBUG_S3C24XX_UART && (DEBUG_S3C_UART2 || \
14801482
DEBUG_S3C2410_UART2)
14811483
default 0x78000000 if DEBUG_CNS3XXX
1482-
default 0x7c0003f8 if FOOTBRIDGE
1484+
default 0x7c0003f8 if DEBUG_FOOTBRIDGE_COM1
14831485
default 0x80010000 if DEBUG_ASM9260_UART
14841486
default 0x80070000 if DEBUG_IMX23_UART
14851487
default 0x80074000 if DEBUG_IMX28_UART
@@ -1610,7 +1612,7 @@ config DEBUG_UART_VIRT
16101612
default 0xfed64000 if DEBUG_RK29_UART1 || DEBUG_RK3X_UART2
16111613
default 0xfed68000 if DEBUG_RK29_UART2 || DEBUG_RK3X_UART3
16121614
default 0xfedc0000 if DEBUG_EP93XX
1613-
default 0xfee003f8 if FOOTBRIDGE
1615+
default 0xfee003f8 if DEBUG_FOOTBRIDGE_COM1
16141616
default 0xfee20000 if DEBUG_NSPIRE_CLASSIC_UART || DEBUG_NSPIRE_CX_UART
16151617
default 0xfee82340 if ARCH_IOP13XX
16161618
default 0xfef00000 if ARCH_IXP4XX && !CPU_BIG_ENDIAN
@@ -1633,7 +1635,7 @@ config DEBUG_UART_VIRT
16331635
config DEBUG_UART_8250_SHIFT
16341636
int "Register offset shift for the 8250 debug UART"
16351637
depends on DEBUG_LL_UART_8250 || DEBUG_UART_8250
1636-
default 0 if FOOTBRIDGE || ARCH_IOP32X || DEBUG_BCM_5301X || \
1638+
default 0 if DEBUG_FOOTBRIDGE_COM1 || ARCH_IOP32X || DEBUG_BCM_5301X || \
16371639
DEBUG_OMAP7XXUART1 || DEBUG_OMAP7XXUART2 || DEBUG_OMAP7XXUART3
16381640
default 2
16391641

@@ -1653,7 +1655,7 @@ config DEBUG_UART_8250_WORD
16531655
config DEBUG_UART_8250_FLOW_CONTROL
16541656
bool "Enable flow control for 8250 UART"
16551657
depends on DEBUG_LL_UART_8250 || DEBUG_UART_8250
1656-
default y if ARCH_EBSA110 || FOOTBRIDGE || DEBUG_GEMINI || ARCH_RPC
1658+
default y if ARCH_EBSA110 || DEBUG_FOOTBRIDGE_COM1 || DEBUG_GEMINI || ARCH_RPC
16571659

16581660
config DEBUG_UNCOMPRESS
16591661
bool
File renamed without changes.

0 commit comments

Comments
 (0)