Juno AArch32: Remove duplicate definition of bl2 platform API
The bl2_early_platform_setup() and bl2_platform_setup() were redefined for Juno AArch32 eventhough CSS platform layer had same definition for them. The CSS definitions definitions were previously restricted to EL3_PAYLOAD_BASE builds and this is now modified to include the Juno AArch32 builds as well thus allowing us to remove the duplicate definitions in Juno platform layer. Change-Id: Ibd1d8c1428cc1d51ac0ba90f19f5208ff3278ab5 Signed-off-by: Soby Mathew <soby.mathew@arm.com>
This commit is contained in:
parent
5744e8746d
commit
a9f9b608bb
|
@ -29,33 +29,4 @@ int bl2_plat_handle_post_image_load(unsigned int image_id)
|
|||
|
||||
return err;
|
||||
}
|
||||
|
||||
#if !CSS_USE_SCMI_SDS_DRIVER
|
||||
/*
|
||||
* We need to override some of the platform functions when booting SP_MIN
|
||||
* on Juno AArch32. These needs to be done only for SCPI/BOM SCP systems as
|
||||
* in case of SDS, the structures remain in memory and doesn't need to be
|
||||
* overwritten.
|
||||
*/
|
||||
|
||||
static unsigned int scp_boot_config;
|
||||
|
||||
void bl2_early_platform_setup(meminfo_t *mem_layout)
|
||||
{
|
||||
arm_bl2_early_platform_setup(mem_layout);
|
||||
|
||||
/* Save SCP Boot config before it gets overwritten by SCP_BL2 loading */
|
||||
VERBOSE("BL2: Saving SCP Boot config = 0x%x\n", scp_boot_config);
|
||||
scp_boot_config = mmio_read_32(SCP_BOOT_CFG_ADDR);
|
||||
}
|
||||
|
||||
void bl2_platform_setup(void)
|
||||
{
|
||||
arm_bl2_platform_setup();
|
||||
|
||||
mmio_write_32(SCP_BOOT_CFG_ADDR, scp_boot_config);
|
||||
VERBOSE("BL2: Restored SCP Boot config = 0x%x\n", scp_boot_config);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* JUNO_AARCH32_EL3_RUNTIME */
|
||||
|
|
|
@ -49,13 +49,13 @@ int bl2_plat_handle_scp_bl2(image_info_t *scp_bl2_image_info)
|
|||
}
|
||||
|
||||
#if !CSS_USE_SCMI_SDS_DRIVER
|
||||
# ifdef EL3_PAYLOAD_BASE
|
||||
# if defined(EL3_PAYLOAD_BASE) || JUNO_AARCH32_EL3_RUNTIME
|
||||
|
||||
/*
|
||||
* We need to override some of the platform functions when booting an EL3
|
||||
* payload. These needs to be done only for SCPI/BOM SCP systems as
|
||||
* in case of SDS, the structures remain in memory and doesn't need to be
|
||||
* overwritten.
|
||||
* payload or SP_MIN on Juno AArch32. This needs to be done only for
|
||||
* SCPI/BOM SCP systems as in case of SDS, the structures remain in memory and
|
||||
* don't need to be overwritten.
|
||||
*/
|
||||
|
||||
static unsigned int scp_boot_config;
|
||||
|
|
Loading…
Reference in New Issue