fix(mediatek): switch console to runtime state before leaving BL31

We should switch console to runtime state. If we don't do this, the
state will keep boot state even we exit from BL31.

Signed-off-by: Bo-Chen Chen <rex-bc.chen@mediatek.com>
Change-Id: Id2269ccf2fdc22e0fa088c3c0365836730172233
This commit is contained in:
Rex-BC Chen 2022-10-26 17:26:05 +08:00 committed by Liju-Clr Chen
parent 8487cc85b5
commit fcf4dd9f79

View file

@ -166,6 +166,7 @@ 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_switch_state(CONSOLE_FLAG_RUNTIME);
} }
unsigned int plat_get_syscnt_freq2(void) unsigned int plat_get_syscnt_freq2(void)