mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-15 17:14:21 +00:00
feat(tc): initialize the RSE communication in earlier phase
Move the RSE MHU channel initialization to the platform setup phase, this allows the services (e.g. TRNG service) to talk to RSE during the service init function. Change-Id: Id0ff6e49117008463f11b2dc3c585daca00f609c Signed-off-by: Leo Yan <leo.yan@arm.com> Signed-off-by: Icen Zeyada <Icen.Zeyada2@arm.com>
This commit is contained in:
parent
6bd0dd4ab7
commit
a3f9617964
1 changed files with 8 additions and 8 deletions
|
@ -114,6 +114,8 @@ static void set_mcn_slc_alloc_mode(void)
|
|||
|
||||
void bl31_platform_setup(void)
|
||||
{
|
||||
psa_status_t status;
|
||||
|
||||
tc_bl31_common_platform_setup();
|
||||
#if (TARGET_PLATFORM == 3) || (TARGET_PLATFORM == 4)
|
||||
enable_ns_mcn_pmu();
|
||||
|
@ -122,6 +124,12 @@ void bl31_platform_setup(void)
|
|||
set_mcn_slc_alloc_mode();
|
||||
plat_arm_ni_setup(NCI_BASE_ADDR);
|
||||
#endif
|
||||
|
||||
/* Initialise RSE communication channel */
|
||||
status = rse_comms_init(PLAT_RSE_AP_SND_MHU_BASE, PLAT_RSE_AP_RCV_MHU_BASE);
|
||||
if (status != PSA_SUCCESS) {
|
||||
ERROR("Failed to initialize RSE communication channel - psa_status = %d\n", status);
|
||||
}
|
||||
}
|
||||
|
||||
scmi_channel_plat_info_t *plat_css_get_scmi_info(unsigned int channel_id __unused)
|
||||
|
@ -194,18 +202,10 @@ void __init bl31_plat_arch_setup(void)
|
|||
#if defined(SPD_spmd) && (SPMC_AT_EL3 == 0)
|
||||
void tc_bl31_plat_runtime_setup(void)
|
||||
{
|
||||
psa_status_t status;
|
||||
|
||||
/* Start secure watchdog timer. */
|
||||
plat_arm_secure_wdt_start();
|
||||
|
||||
arm_bl31_plat_runtime_setup();
|
||||
|
||||
/* Initialise RSE communication channel */
|
||||
status = rse_comms_init(PLAT_RSE_AP_SND_MHU_BASE, PLAT_RSE_AP_RCV_MHU_BASE);
|
||||
if (status != PSA_SUCCESS) {
|
||||
ERROR("Failed to initialize RSE communication channel - psa_status = %d\n", status);
|
||||
}
|
||||
}
|
||||
|
||||
void bl31_plat_runtime_setup(void)
|
||||
|
|
Loading…
Add table
Reference in a new issue