refactor(arm): switch to rse_mbx_init

The rse_comms_init() function will be removed. The new function to use
is rse_mbx_init() for the MHU mailbox initialization.

Change-Id: I1932500ef71b6e895f0ee164ee9c2b58becf4409
Signed-off-by: Yann Gautier <yann.gautier@st.com>
This commit is contained in:
Yann Gautier 2025-02-07 17:15:29 +01:00
parent 36416b1e76
commit 08963618c7
2 changed files with 12 additions and 5 deletions

View file

@ -6,6 +6,7 @@
#include <common/debug.h> #include <common/debug.h>
#include <drivers/arm/gic600_multichip.h> #include <drivers/arm/gic600_multichip.h>
#include <drivers/arm/mhu.h>
#include <drivers/arm/rse_comms.h> #include <drivers/arm/rse_comms.h>
#include <plat/arm/common/plat_arm.h> #include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
@ -188,15 +189,15 @@ int plat_rmmd_load_manifest(struct rmm_manifest *manifest)
int plat_rse_comms_init(void) int plat_rse_comms_init(void)
{ {
uintptr_t snd_base, rcv_base; struct mhu_addr mhu_addresses;
/* Get sender and receiver frames for AP-RSE communication */ /* Get sender and receiver frames for AP-RSE communication */
mhu_v3_get_secure_device_base(&snd_base, true); mhu_v3_get_secure_device_base(&mhu_addresses.sender_base, true);
mhu_v3_get_secure_device_base(&rcv_base, false); mhu_v3_get_secure_device_base(&mhu_addresses.receiver_base, false);
VERBOSE("Initializing the rse_comms now\n"); VERBOSE("Initializing the rse_comms now\n");
/* Initialize the communication channel between AP and RSE */ /* Initialize the communication channel between AP and RSE */
return rse_comms_init(snd_base, rcv_base); return rse_mbx_init(&mhu_addresses);
} }
int plat_spmd_handle_group0_interrupt(uint32_t intid) int plat_spmd_handle_group0_interrupt(uint32_t intid)

View file

@ -5,13 +5,19 @@
*/ */
#include <common/debug.h> #include <common/debug.h>
#include <drivers/arm/mhu.h>
#include <drivers/arm/rse_comms.h> #include <drivers/arm/rse_comms.h>
#include <platform_def.h> #include <platform_def.h>
#include <tc_rse_comms.h> #include <tc_rse_comms.h>
static const struct mhu_addr mhu_addresses = {
PLAT_RSE_AP_SND_MHU_BASE,
PLAT_RSE_AP_RCV_MHU_BASE
};
int plat_rse_comms_init(void) int plat_rse_comms_init(void)
{ {
VERBOSE("Initializing the rse_comms now\n"); VERBOSE("Initializing the rse_comms now\n");
/* Initialize the communication channel between AP and RSE */ /* Initialize the communication channel between AP and RSE */
return rse_comms_init(PLAT_RSE_AP_SND_MHU_BASE, PLAT_RSE_AP_RCV_MHU_BASE); return rse_mbx_init(&mhu_addresses);
} }