refactor(qemu-sbsa): rename function sip_svc_init() to something more meaningful

There is no relation between the name of function sip_svc_init() and
what it does.  As such rename it to something more appropriate and move
it to a header that make sense.

No change in functionality.

Change-Id: I7bd78b1fe70e2930c395ef0a097bfad3b1e55d3a
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
This commit is contained in:
Mathieu Poirier 2024-09-27 15:27:25 -06:00
parent b386c6e61d
commit 6d59413b84
4 changed files with 7 additions and 5 deletions

View file

@ -14,6 +14,9 @@
#if ENABLE_RME
#include <qemu_pas_def.h>
#endif
#ifdef PLAT_qemu_sbsa
#include <sbsa_platform.h>
#endif
#include "qemu_private.h"
@ -66,7 +69,7 @@ void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1,
/* Platform names have to be lowercase. */
#ifdef PLAT_qemu_sbsa
sip_svc_init();
sbsa_platform_init();
#endif
/*

View file

@ -18,9 +18,6 @@ unsigned int plat_qemu_calc_core_pos(u_register_t mpidr);
const mmap_region_t *plat_qemu_get_mmap(void);
void qemu_console_init(void);
#ifdef PLAT_qemu_sbsa
void sip_svc_init(void);
#endif
void plat_qemu_gic_init(void);
void qemu_pwr_gic_on_finish(void);

View file

@ -43,4 +43,6 @@ struct qemu_platform_info {
struct platform_memory_data memory[PLAT_MAX_MEM_NODES];
};
void sbsa_platform_init(void);
#endif /* SBSA_PLATFORM_H */

View file

@ -297,7 +297,7 @@ void read_platform_version(void *dtb)
}
}
void sip_svc_init(void)
void sbsa_platform_init(void)
{
/* Read DeviceTree data before MMU is enabled */