soc/mediatek/mt8186: spm: Remove redundant call

spm_set_power_control() is already called in spm_init(). It is not
necessary to call spm_set_power_control() again in the mtk_mcu reset
callback.

TEST=check SPM PC value (0x250) after SPM is loaded.
     [INFO ]  SPM: spm_init done in 54 msecs, spm pc = 0x250

Signed-off-by: Yidi Lin <yidilin@chromium.org>
Change-Id: I7ee517e1eb6485c52155a69d05781a61ddfe4cad
Reviewed-on: https://review.coreboot.org/c/coreboot/+/66785
Reviewed-by: Rex-BC Chen <rex-bc.chen@mediatek.com>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Yidi Lin 2022-08-16 14:35:53 +08:00 committed by Felix Held
parent d5568f46e8
commit c1de4b456b
1 changed files with 0 additions and 1 deletions

View File

@ -648,7 +648,6 @@ static void reset_spm(struct mtk_mcu *mcu)
spm_reset_and_init_pcm();
spm_kick_im_to_fetch(pcm);
spm_init_pcm_register();
spm_set_power_control(&spm_init_ctrl);
spm_set_wakeup_event(&spm_init_ctrl);
spm_kick_pcm_to_run(&spm_init_ctrl);
}