mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-30 00:20:44 +09:00
misc: scu: Increase the timeout for MU communication
When power on some sources in Video system, current timeout 10ms is too short and returns before SCU response. So increase the timeout to 1s. Signed-off-by: Ye Li <ye.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
parent
e5e95ecf1e
commit
77ed80c9ec
@ -74,7 +74,7 @@ static int mu_hal_receivemsg(struct mu_type *base, u32 reg_index, u32 *msg)
|
||||
assert(reg_index < MU_TR_COUNT);
|
||||
|
||||
/* Wait RX register to be full. */
|
||||
ret = readl_poll_timeout(&base->sr, val, val & mask, 10000);
|
||||
ret = readl_poll_timeout(&base->sr, val, val & mask, 1000000);
|
||||
if (ret < 0) {
|
||||
printf("%s timeout\n", __func__);
|
||||
return -ETIMEDOUT;
|
||||
|
Loading…
Reference in New Issue
Block a user