diff options
-rw-r--r-- | arch/arm/Kconfig.debug | 8 | ||||
-rw-r--r-- | arch/arm/include/debug/ks8695.S (renamed from arch/arm/mach-ks8695/include/mach/debug-macro.S) | 10 |
2 files changed, 15 insertions, 3 deletions
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index 6ee9b0d361ee..eba36e35bad2 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug | |||
@@ -397,6 +397,13 @@ choice | |||
397 | Say Y here if you want the debug print routines to direct | 397 | Say Y here if you want the debug print routines to direct |
398 | their output to UART1 serial port on KEYSTONE2 devices. | 398 | their output to UART1 serial port on KEYSTONE2 devices. |
399 | 399 | ||
400 | config DEBUG_KS8695_UART | ||
401 | bool "KS8695 Debug UART" | ||
402 | depends on ARCH_KS8695 | ||
403 | help | ||
404 | Say Y here if you want kernel low-level debugging support | ||
405 | on KS8695. | ||
406 | |||
400 | config DEBUG_MESON_UARTAO | 407 | config DEBUG_MESON_UARTAO |
401 | bool "Kernel low-level debugging via Meson6 UARTAO" | 408 | bool "Kernel low-level debugging via Meson6 UARTAO" |
402 | depends on ARCH_MESON | 409 | depends on ARCH_MESON |
@@ -1174,6 +1181,7 @@ config DEBUG_LL_INCLUDE | |||
1174 | DEBUG_IMX6Q_UART || \ | 1181 | DEBUG_IMX6Q_UART || \ |
1175 | DEBUG_IMX6SL_UART || \ | 1182 | DEBUG_IMX6SL_UART || \ |
1176 | DEBUG_IMX6SX_UART | 1183 | DEBUG_IMX6SX_UART |
1184 | default "debug/ks8695.S" if DEBUG_KS8695_UART | ||
1177 | default "debug/msm.S" if DEBUG_MSM_UART || DEBUG_QCOM_UARTDM | 1185 | default "debug/msm.S" if DEBUG_MSM_UART || DEBUG_QCOM_UARTDM |
1178 | default "debug/omap2plus.S" if DEBUG_OMAP2PLUS_UART | 1186 | default "debug/omap2plus.S" if DEBUG_OMAP2PLUS_UART |
1179 | default "debug/renesas-scif.S" if DEBUG_R7S72100_SCIF2 | 1187 | default "debug/renesas-scif.S" if DEBUG_R7S72100_SCIF2 |
diff --git a/arch/arm/mach-ks8695/include/mach/debug-macro.S b/arch/arm/include/debug/ks8695.S index a79e48981202..961da1f32ab3 100644 --- a/arch/arm/mach-ks8695/include/mach/debug-macro.S +++ b/arch/arm/include/debug/ks8695.S | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * arch/arm/mach-ks8695/include/mach/debug-macro.S | 2 | * arch/arm/include/debug/ks8695.S |
3 | * | 3 | * |
4 | * Copyright (C) 2006 Ben Dooks <ben@simtec.co.uk> | 4 | * Copyright (C) 2006 Ben Dooks <ben@simtec.co.uk> |
5 | * Copyright (C) 2006 Simtec Electronics | 5 | * Copyright (C) 2006 Simtec Electronics |
@@ -11,8 +11,12 @@ | |||
11 | * published by the Free Software Foundation. | 11 | * published by the Free Software Foundation. |
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include <mach/hardware.h> | 14 | #define KS8695_UART_PA 0x03ffe000 |
15 | #include <mach/regs-uart.h> | 15 | #define KS8695_UART_VA 0xf00fe000 |
16 | #define KS8695_URTH (0x04) | ||
17 | #define KS8695_URLS (0x14) | ||
18 | #define URLS_URTE (1 << 6) | ||
19 | #define URLS_URTHRE (1 << 5) | ||
16 | 20 | ||
17 | .macro addruart, rp, rv, tmp | 21 | .macro addruart, rp, rv, tmp |
18 | ldr \rp, =KS8695_UART_PA @ physical base address | 22 | ldr \rp, =KS8695_UART_PA @ physical base address |