mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-23 13:36:05 +00:00
refactor(armada): console runtime switch on bl31 exit
Flush the FIFO before switching to runtime. This is so that there are no lingering chars in the FIFO when we move to the runtime console. TF-A plans to refactor the console_Switch_state(CONSOLE_FLAG_RUNTIME) and console_flush() calls and make them the last calls in bl31_main() (before BL31 exits). Until then they are being left as the last calls in bl31_plat_runtime_setup() for testing before refactoring. This patch only affects the Armada SoC of Marvell's platform. Change-Id: I7082fdb8c5507cd1ce5915d67e61e638605982e0 Signed-off-by: Salman Nabi <salman.nabi@arm.com>
This commit is contained in:
parent
d3c643c2dc
commit
88ab2261b3
1 changed files with 4 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2018 Marvell International Ltd.
|
||||
* Copyright (C) 2018-2024 Marvell International Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
* https://spdx.org/licenses
|
||||
|
@ -181,10 +181,11 @@ void marvell_bl31_platform_setup(void)
|
|||
*/
|
||||
void marvell_bl31_plat_runtime_setup(void)
|
||||
{
|
||||
console_switch_state(CONSOLE_FLAG_RUNTIME);
|
||||
|
||||
/* Initialize the runtime console */
|
||||
marvell_console_runtime_init();
|
||||
|
||||
console_flush();
|
||||
console_switch_state(CONSOLE_FLAG_RUNTIME);
|
||||
}
|
||||
|
||||
void bl31_platform_setup(void)
|
||||
|
|
Loading…
Add table
Reference in a new issue