From 92752355f5b6823d0f58380c3c9a3e8afe35fc59 Mon Sep 17 00:00:00 2001 From: Salman Nabi <salman.nabi@arm.com> Date: Wed, 21 Feb 2024 16:24:10 +0000 Subject: [PATCH] refactor(synquacer): console runtime switch on bl31 exit TF-A plans to move the console_flush() and console_switch_state(CONOSLE_FLAG_RUNTIME) calls to bl31_main() just before BL31 exits. For now we are mimicking the generic implementation by calling flush and changing the console state to runtime at the end of bl31_plat_runtime_setup() for each platform. This is so that each platform can test it prior to moving flush and switch to bl31_main(). This patch affects the synquacer SoC of the socionext platform. Change-Id: I85a251e3d9732c5fb5010c3c8bb7323c4f57fa96 Signed-off-by: Salman Nabi <salman.nabi@arm.com> --- plat/socionext/synquacer/sq_bl31_setup.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plat/socionext/synquacer/sq_bl31_setup.c b/plat/socionext/synquacer/sq_bl31_setup.c index 967437b29..58f803cdc 100644 --- a/plat/socionext/synquacer/sq_bl31_setup.c +++ b/plat/socionext/synquacer/sq_bl31_setup.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2022, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2018-2024, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -209,6 +209,9 @@ void bl31_plat_runtime_setup(void) struct draminfo *di = (struct draminfo *)(unsigned long)DRAMINFO_BASE; sq_scp_get_draminfo(di); + + console_flush(); + console_switch_state(CONSOLE_FLAG_RUNTIME); } void bl31_plat_arch_setup(void)