mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-25 06:19:56 +00:00
refactor(mediatek): 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 affects the Mediatek platform only. Change-Id: I83beee28ed856bc9b2f3131aa577be9bfa529028 Signed-off-by: Salman Nabi <salman.nabi@arm.com>
This commit is contained in:
parent
88ab2261b3
commit
9edf08b177
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2022, MediaTek Inc. All rights reserved.
|
* Copyright (c) 2022-2024, MediaTek Inc. All rights reserved.
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: BSD-3-Clause
|
* SPDX-License-Identifier: BSD-3-Clause
|
||||||
*/
|
*/
|
||||||
|
@ -166,6 +166,8 @@ void bl31_platform_setup(void)
|
||||||
void bl31_plat_runtime_setup(void)
|
void bl31_plat_runtime_setup(void)
|
||||||
{
|
{
|
||||||
mtk_init_one_level(MTK_INIT_LVL_PLAT_RUNTIME);
|
mtk_init_one_level(MTK_INIT_LVL_PLAT_RUNTIME);
|
||||||
|
|
||||||
|
console_flush();
|
||||||
console_switch_state(CONSOLE_FLAG_RUNTIME);
|
console_switch_state(CONSOLE_FLAG_RUNTIME);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue