mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
nds32: ftmac100: Fix write mac addr fail problem.
After soft reset complete, write mac address immediately will fail. Add delay to work around this problem. Signed-off-by: rick <rick@andestech.com>
This commit is contained in:
parent
e336b73d8a
commit
1341494c7d
1 changed files with 6 additions and 1 deletions
|
@ -40,7 +40,12 @@ static void ftmac100_reset(struct ftmac100_data *priv)
|
|||
writel (FTMAC100_MACCR_SW_RST, &ftmac100->maccr);
|
||||
|
||||
while (readl (&ftmac100->maccr) & FTMAC100_MACCR_SW_RST)
|
||||
;
|
||||
mdelay(1);
|
||||
/*
|
||||
* When soft reset complete, write mac address immediately maybe fail somehow
|
||||
* Wait for a while can avoid this problem
|
||||
*/
|
||||
mdelay(1);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue