From e311b9b3dd83b192ae84447d5613859497a8c343 Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Mon, 18 Sep 2023 10:22:48 +0200 Subject: [PATCH 1/2] build(changelog): add new scope for DCC Add new scope for the JTAG DCC (Debug Communication Channel). Driver is available for quite some time at drivers/arm/dcc/dcc_console.c. Change-Id: I8be71dadb56bed2b64a26c8a009bda6bbc96240d Signed-off-by: Michal Simek --- changelog.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/changelog.yaml b/changelog.yaml index 7e7583293..cdb018236 100644 --- a/changelog.yaml +++ b/changelog.yaml @@ -609,6 +609,9 @@ subsections: - plat/xilinx subsections: + - title: DCC (Debug Communication Channel) + scope: dcc + - title: Versal scope: versal From c6d9186f60a08b4a44b1ecf38071eacdc9553ef6 Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Mon, 18 Sep 2023 10:16:25 +0200 Subject: [PATCH 2/2] fix(dcc): enable DCC also for crash console The JTAG DCC (Debug Communication Channel) console is primary used for debugging that's why make no sense not to setup it up as crash console too. Change-Id: I16e5d83f8da721657b1a10609494f835b87e5578 Signed-off-by: Michal Simek --- drivers/arm/dcc/dcc_console.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/arm/dcc/dcc_console.c b/drivers/arm/dcc/dcc_console.c index 0b7e541f0..599f47197 100644 --- a/drivers/arm/dcc/dcc_console.c +++ b/drivers/arm/dcc/dcc_console.c @@ -139,7 +139,8 @@ static void dcc_console_flush(struct console *console) static struct dcc_console dcc_console = { .console = { .flags = CONSOLE_FLAG_BOOT | - CONSOLE_FLAG_RUNTIME, + CONSOLE_FLAG_RUNTIME | + CONSOLE_FLAG_CRASH, .putc = dcc_console_putc, .getc = dcc_console_getc, .flush = dcc_console_flush,