ARM: virt: add DEBUG_LL support
Subsystems (2)
PATCH 1/1 ARM: virt: add DEBUG_LL support
Both Virt and Vexpress have a PL011 serial console as default console, but they place it at different addresses. Add a new DEBUG_QEMU_ARM32_VIRT config option to be able to use DEBUG_LL on 32-bit Virt as well.
Signed-off-by Ahmad Fatoum <[email protected]>
--- arch/arm/include/asm/debug_ll.h | 3 ++- common/Kconfig.debug_ll | 4 ++++ include/mach/vexpress/debug_ll.h | 4 ++++ 3 files changed, 10 insertions(+), 1 deletion(-)
arch/arm/include/asm/debug_ll.h +2 -1
@@ -23,7 +23,8 @@#include <mach/stm32mp/debug_ll.h> #endif -#ifdef CONFIG_DEBUG_VEXPRESS_UART +#if defined(CONFIG_DEBUG_VEXPRESS_UART ) || \ + defined(CONFIG_DEBUG_QEMU_ARM32_VIRT )#include <mach/vexpress/debug_ll.h> #endif
common/Kconfig.debug_ll +4 -0
@@ -352,6 +352,10 @@ config DEBUG_AM62X_UART bool "Texas Instruments AM62X debug UART" depends on ARCH_K3 +config DEBUG_QEMU_ARM32_VIRT + bool "QEMU ARM32 Virt PL011 console" + depends on MACH_VIRT + config DEBUG_QEMU_ARM64_VIRT bool "QEMU ARM64 Virt PL011 console" depends on ARCH_ARM64_VIRT
include/mach/vexpress/debug_ll.h +4 -0
@@ -7,7 +7,11 @@#ifndef __MACH_VEXPRESS_DEBUG_LL_H__#define __MACH_VEXPRESS_DEBUG_LL_H__ +#ifdef CONFIG_DEBUG_QEMU_ARM32_VIRT +#define DEBUG_LL_UART_ADDR 0x9000000 +#else #define DEBUG_LL_UART_ADDR 0x1c090000 +#endif #include <debug_ll/pl011.h>
Signature · 1 line
2.47.3
Sascha Hauer
AppliedQuoted 5 lines · Ahmad Fatoum
Both Virt and Vexpress have a PL011 serial console as default console, but they place it at different addresses. Add a new
DEBUG_QEMU_ARM32_VIRTconfig option to be able to useDEBUG_LLon 32-bit Virt as well.
Applied, thanks!
[1/1] ARM: virt: add DEBUG_LL support
https://git.pengutronix.de/cgit/barebox/commit/?id=88a8699f5a26 (link may not be stable)
Best regards,
Signature · 1 line
Sascha Hauer <[email protected]>