diff options
-rw-r--r-- | MAINTAINERS | 1 | ||||
-rw-r--r-- | arch/arm/Kconfig.debug | 9 | ||||
-rw-r--r-- | arch/arm/include/debug/at91.S (renamed from arch/arm/mach-at91/include/mach/debug-macro.S) | 19 |
3 files changed, 19 insertions, 10 deletions
diff --git a/MAINTAINERS b/MAINTAINERS index 3589d67437f8..8c25979a3c43 100644 --- a/MAINTAINERS +++ b/MAINTAINERS | |||
@@ -877,6 +877,7 @@ F: arch/arm/boot/dts/at91*.dts | |||
877 | F: arch/arm/boot/dts/at91*.dtsi | 877 | F: arch/arm/boot/dts/at91*.dtsi |
878 | F: arch/arm/boot/dts/sama*.dts | 878 | F: arch/arm/boot/dts/sama*.dts |
879 | F: arch/arm/boot/dts/sama*.dtsi | 879 | F: arch/arm/boot/dts/sama*.dtsi |
880 | F: arch/arm/include/debug/at91.S | ||
880 | 881 | ||
881 | ARM/ATMEL AT91 Clock Support | 882 | ARM/ATMEL AT91 Clock Support |
882 | M: Boris Brezillon <boris.brezillon@free-electrons.com> | 883 | M: Boris Brezillon <boris.brezillon@free-electrons.com> |
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index 5ddd4906f7a7..e34d24949c6a 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug | |||
@@ -115,15 +115,18 @@ choice | |||
115 | 0x80024000 | 0xf0024000 | UART9 | 115 | 0x80024000 | 0xf0024000 | UART9 |
116 | 116 | ||
117 | config AT91_DEBUG_LL_DBGU0 | 117 | config AT91_DEBUG_LL_DBGU0 |
118 | bool "Kernel low-level debugging on rm9200, 9260/9g20, 9261/9g10 and 9rl" | 118 | bool "Kernel low-level debugging on rm9200, 9260/9g20, 9261/9g10, 9rl, 9x5, 9n12" |
119 | select DEBUG_AT91_UART | ||
119 | depends on HAVE_AT91_DBGU0 | 120 | depends on HAVE_AT91_DBGU0 |
120 | 121 | ||
121 | config AT91_DEBUG_LL_DBGU1 | 122 | config AT91_DEBUG_LL_DBGU1 |
122 | bool "Kernel low-level debugging on 9263 and 9g45" | 123 | bool "Kernel low-level debugging on 9263, 9g45 and sama5d3" |
124 | select DEBUG_AT91_UART | ||
123 | depends on HAVE_AT91_DBGU1 | 125 | depends on HAVE_AT91_DBGU1 |
124 | 126 | ||
125 | config AT91_DEBUG_LL_DBGU2 | 127 | config AT91_DEBUG_LL_DBGU2 |
126 | bool "Kernel low-level debugging on sama5d4" | 128 | bool "Kernel low-level debugging on sama5d4" |
129 | select DEBUG_AT91_UART | ||
127 | depends on HAVE_AT91_DBGU2 | 130 | depends on HAVE_AT91_DBGU2 |
128 | 131 | ||
129 | config DEBUG_BCM2835 | 132 | config DEBUG_BCM2835 |
@@ -1165,6 +1168,8 @@ config DEBUG_LL_INCLUDE | |||
1165 | string | 1168 | string |
1166 | default "debug/sa1100.S" if DEBUG_SA1100 | 1169 | default "debug/sa1100.S" if DEBUG_SA1100 |
1167 | default "debug/8250.S" if DEBUG_LL_UART_8250 || DEBUG_UART_8250 | 1170 | default "debug/8250.S" if DEBUG_LL_UART_8250 || DEBUG_UART_8250 |
1171 | default "debug/at91.S" if AT91_DEBUG_LL_DBGU0 || AT91_DEBUG_LL_DBGU1 || \ | ||
1172 | AT91_DEBUG_LL_DBGU2 | ||
1168 | default "debug/asm9260.S" if DEBUG_ASM9260_UART | 1173 | default "debug/asm9260.S" if DEBUG_ASM9260_UART |
1169 | default "debug/clps711x.S" if DEBUG_CLPS711X_UART1 || DEBUG_CLPS711X_UART2 | 1174 | default "debug/clps711x.S" if DEBUG_CLPS711X_UART1 || DEBUG_CLPS711X_UART2 |
1170 | default "debug/meson.S" if DEBUG_MESON_UARTAO | 1175 | default "debug/meson.S" if DEBUG_MESON_UARTAO |
diff --git a/arch/arm/mach-at91/include/mach/debug-macro.S b/arch/arm/include/debug/at91.S index 2103a90f2261..80a6501b4d50 100644 --- a/arch/arm/mach-at91/include/mach/debug-macro.S +++ b/arch/arm/include/debug/at91.S | |||
@@ -1,6 +1,4 @@ | |||
1 | /* | 1 | /* |
2 | * arch/arm/mach-at91/include/mach/debug-macro.S | ||
3 | * | ||
4 | * Copyright (C) 2003-2005 SAN People | 2 | * Copyright (C) 2003-2005 SAN People |
5 | * | 3 | * |
6 | * Debugging macro include header | 4 | * Debugging macro include header |
@@ -11,18 +9,23 @@ | |||
11 | * | 9 | * |
12 | */ | 10 | */ |
13 | 11 | ||
14 | #include <mach/hardware.h> | ||
15 | #include <mach/at91_dbgu.h> | ||
16 | |||
17 | #if defined(CONFIG_AT91_DEBUG_LL_DBGU0) | 12 | #if defined(CONFIG_AT91_DEBUG_LL_DBGU0) |
18 | #define AT91_DBGU AT91_BASE_DBGU0 | 13 | #define AT91_DBGU 0xfffff200 /* AT91_BASE_DBGU0 */ |
19 | #elif defined(CONFIG_AT91_DEBUG_LL_DBGU1) | 14 | #elif defined(CONFIG_AT91_DEBUG_LL_DBGU1) |
20 | #define AT91_DBGU AT91_BASE_DBGU1 | 15 | #define AT91_DBGU 0xffffee00 /* AT91_BASE_DBGU1 */ |
21 | #else | 16 | #else |
22 | /* On sama5d4, use USART3 as low level serial console */ | 17 | /* On sama5d4, use USART3 as low level serial console */ |
23 | #define AT91_DBGU SAMA5D4_BASE_USART3 | 18 | #define AT91_DBGU 0xfc00c000 /* SAMA5D4_BASE_USART3 */ |
24 | #endif | 19 | #endif |
25 | 20 | ||
21 | /* Keep in sync with mach-at91/include/mach/hardware.h */ | ||
22 | #define AT91_IO_P2V(x) ((x) - 0x01000000) | ||
23 | |||
24 | #define AT91_DBGU_SR (0x14) /* Status Register */ | ||
25 | #define AT91_DBGU_THR (0x1c) /* Transmitter Holding Register */ | ||
26 | #define AT91_DBGU_TXRDY (1 << 1) /* Transmitter Ready */ | ||
27 | #define AT91_DBGU_TXEMPTY (1 << 9) /* Transmitter Empty */ | ||
28 | |||
26 | .macro addruart, rp, rv, tmp | 29 | .macro addruart, rp, rv, tmp |
27 | ldr \rp, =AT91_DBGU @ System peripherals (phys address) | 30 | ldr \rp, =AT91_DBGU @ System peripherals (phys address) |
28 | ldr \rv, =AT91_IO_P2V(AT91_DBGU) @ System peripherals (virt address) | 31 | ldr \rv, =AT91_IO_P2V(AT91_DBGU) @ System peripherals (virt address) |