Merge "fix(intel): update individual return result for hps and fpga bridges" into integration

This commit is contained in:
Manish Pandey 2023-11-27 16:39:04 +01:00 committed by TrustedFirmware Code Review
commit 3a1dd15287

View file

@ -407,6 +407,7 @@ int socfpga_bridges_reset(uint32_t mask)
int socfpga_bridges_enable(uint32_t mask)
{
int ret = 0;
int ret_hps = 0;
uint32_t brg_mask = 0;
uint32_t noc_mask = 0;
uint32_t f2s_idlereq = 0;
@ -505,9 +506,9 @@ int socfpga_bridges_enable(uint32_t mask)
mmio_clrbits_32(SOCFPGA_RSTMGR(BRGMODRST), brg_mask);
/* Wait until idle ack becomes 0 */
ret = poll_idle_status(SOCFPGA_SYSMGR(NOC_IDLEACK),
ret_hps = poll_idle_status(SOCFPGA_SYSMGR(NOC_IDLEACK),
noc_mask, 0, 300);
if (ret < 0) {
if (ret_hps < 0) {
ERROR("S2F bridge enable: Timeout idle ack\n");
}
}
@ -711,6 +712,7 @@ int socfpga_bridges_enable(uint32_t mask)
udelay(5);
}
#endif
ret = ret | ret_hps;
return ret;
}