mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 09:34:18 +00:00
refactor(rse)!: remove rse_comms_init
The function to use is now rse_mbx_init(), that does the same if using MHU. Change-Id: I712712d7d1bcd8c96d26951e176b877afb65209d Signed-off-by: Yann Gautier <yann.gautier@st.com>
This commit is contained in:
parent
08963618c7
commit
91c7a952be
2 changed files with 0 additions and 29 deletions
|
@ -8,7 +8,6 @@
|
|||
#include <string.h>
|
||||
|
||||
#include <common/debug.h>
|
||||
#include <drivers/arm/mhu.h>
|
||||
#include <drivers/arm/rse_comms.h>
|
||||
#include <psa/client.h>
|
||||
#include <rse_comms_protocol.h>
|
||||
|
@ -151,30 +150,3 @@ psa_status_t psa_call(psa_handle_t handle, int32_t type, const psa_invec *in_vec
|
|||
|
||||
return return_val;
|
||||
}
|
||||
|
||||
int rse_comms_init(uintptr_t mhu_sender_base, uintptr_t mhu_receiver_base)
|
||||
{
|
||||
enum mhu_error_t err;
|
||||
|
||||
err = mhu_init_sender(mhu_sender_base);
|
||||
if (err != MHU_ERR_NONE) {
|
||||
if (err == MHU_ERR_ALREADY_INIT) {
|
||||
INFO("[RSE-COMMS] Host to RSE MHU driver already initialized\n");
|
||||
} else {
|
||||
ERROR("[RSE-COMMS] Host to RSE MHU driver initialization failed: %d\n", err);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
err = mhu_init_receiver(mhu_receiver_base);
|
||||
if (err != MHU_ERR_NONE) {
|
||||
if (err == MHU_ERR_ALREADY_INIT) {
|
||||
INFO("[RSE-COMMS] RSE to Host MHU driver already initialized\n");
|
||||
} else {
|
||||
ERROR("[RSE-COMMS] RSE to Host MHU driver initialization failed: %d\n", err);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -15,6 +15,5 @@ size_t rse_mbx_get_max_message_size(void);
|
|||
int rse_mbx_send_data(const uint8_t *send_buffer, size_t size);
|
||||
int rse_mbx_receive_data(uint8_t *receive_buffer, size_t *size);
|
||||
int rse_mbx_init(const void *init_data);
|
||||
int rse_comms_init(uintptr_t mhu_sender_base, uintptr_t mhu_receiver_base);
|
||||
|
||||
#endif /* RSE_COMMS_H */
|
||||
|
|
Loading…
Add table
Reference in a new issue