diff options
| -rw-r--r-- | arch/arm/Kconfig.debug | 30 | ||||
| -rw-r--r-- | arch/arm/include/debug/mvebu.S | 5 |
2 files changed, 33 insertions, 2 deletions
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index 1d41908d5cda..e6a6ab1b10d7 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug | |||
| @@ -303,12 +303,37 @@ choice | |||
| 303 | their output to the serial port on MSM 8960 devices. | 303 | their output to the serial port on MSM 8960 devices. |
| 304 | 304 | ||
| 305 | config DEBUG_MVEBU_UART | 305 | config DEBUG_MVEBU_UART |
| 306 | bool "Kernel low-level debugging messages via MVEBU UART" | 306 | bool "Kernel low-level debugging messages via MVEBU UART (old bootloaders)" |
| 307 | depends on ARCH_MVEBU | 307 | depends on ARCH_MVEBU |
| 308 | help | 308 | help |
| 309 | Say Y here if you want kernel low-level debugging support | 309 | Say Y here if you want kernel low-level debugging support |
| 310 | on MVEBU based platforms. | 310 | on MVEBU based platforms. |
| 311 | 311 | ||
| 312 | This option should be used with the old bootloaders | ||
| 313 | that left the internal registers mapped at | ||
| 314 | 0xd0000000. As of today, this is the case on | ||
| 315 | platforms such as the Globalscale Mirabox or the | ||
| 316 | Plathome OpenBlocks AX3, when using the original | ||
| 317 | bootloader. | ||
| 318 | |||
| 319 | If the wrong DEBUG_MVEBU_UART* option is selected, | ||
| 320 | when u-boot hands over to the kernel, the system | ||
| 321 | silently crashes, with no serial output at all. | ||
| 322 | |||
| 323 | config DEBUG_MVEBU_UART_ALTERNATE | ||
| 324 | bool "Kernel low-level debugging messages via MVEBU UART (new bootloaders)" | ||
| 325 | depends on ARCH_MVEBU | ||
| 326 | help | ||
| 327 | Say Y here if you want kernel low-level debugging support | ||
| 328 | on MVEBU based platforms. | ||
| 329 | |||
| 330 | This option should be used with the new bootloaders | ||
| 331 | that remap the internal registers at 0xf1000000. | ||
| 332 | |||
| 333 | If the wrong DEBUG_MVEBU_UART* option is selected, | ||
| 334 | when u-boot hands over to the kernel, the system | ||
| 335 | silently crashes, with no serial output at all. | ||
| 336 | |||
| 312 | config DEBUG_NOMADIK_UART | 337 | config DEBUG_NOMADIK_UART |
| 313 | bool "Kernel low-level debugging messages via NOMADIK UART" | 338 | bool "Kernel low-level debugging messages via NOMADIK UART" |
| 314 | depends on ARCH_NOMADIK | 339 | depends on ARCH_NOMADIK |
| @@ -632,7 +657,8 @@ config DEBUG_LL_INCLUDE | |||
| 632 | DEBUG_IMX51_UART || \ | 657 | DEBUG_IMX51_UART || \ |
| 633 | DEBUG_IMX53_UART ||\ | 658 | DEBUG_IMX53_UART ||\ |
| 634 | DEBUG_IMX6Q_UART | 659 | DEBUG_IMX6Q_UART |
| 635 | default "debug/mvebu.S" if DEBUG_MVEBU_UART | 660 | default "debug/mvebu.S" if DEBUG_MVEBU_UART || \ |
| 661 | DEBUG_MVEBU_UART_ALTERNATE | ||
| 636 | default "debug/mxs.S" if DEBUG_IMX23_UART || DEBUG_IMX28_UART | 662 | default "debug/mxs.S" if DEBUG_IMX23_UART || DEBUG_IMX28_UART |
| 637 | default "debug/nomadik.S" if DEBUG_NOMADIK_UART | 663 | default "debug/nomadik.S" if DEBUG_NOMADIK_UART |
| 638 | default "debug/omap2plus.S" if DEBUG_OMAP2PLUS_UART | 664 | default "debug/omap2plus.S" if DEBUG_OMAP2PLUS_UART |
diff --git a/arch/arm/include/debug/mvebu.S b/arch/arm/include/debug/mvebu.S index df191afa3be1..6517311a1c91 100644 --- a/arch/arm/include/debug/mvebu.S +++ b/arch/arm/include/debug/mvebu.S | |||
| @@ -11,7 +11,12 @@ | |||
| 11 | * published by the Free Software Foundation. | 11 | * published by the Free Software Foundation. |
| 12 | */ | 12 | */ |
| 13 | 13 | ||
| 14 | #ifdef CONFIG_DEBUG_MVEBU_UART_ALTERNATE | ||
| 15 | #define ARMADA_370_XP_REGS_PHYS_BASE 0xf1000000 | ||
| 16 | #else | ||
| 14 | #define ARMADA_370_XP_REGS_PHYS_BASE 0xd0000000 | 17 | #define ARMADA_370_XP_REGS_PHYS_BASE 0xd0000000 |
| 18 | #endif | ||
| 19 | |||
| 15 | #define ARMADA_370_XP_REGS_VIRT_BASE 0xfec00000 | 20 | #define ARMADA_370_XP_REGS_VIRT_BASE 0xfec00000 |
| 16 | 21 | ||
| 17 | .macro addruart, rp, rv, tmp | 22 | .macro addruart, rp, rv, tmp |
