mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 21:21:37 +00:00
tsec: Fix a bug in soft-resetting
SOFT_RESET must be asserted for at least 3 TX clocks. Usually, that's about 30 clock cycles, so it's been mostly working. But we had no guarantee, and at slower bitrates, it's just over a microsecond (over 1000 clock cycles). This enforces a 2 microsecond gap between assertion and deassertion. Signed-off-by: Andy Fleming <afleming@freescale.com> Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
This commit is contained in:
parent
09fcc8b5d8
commit
9e5be8214b
1 changed files with 1 additions and 0 deletions
|
@ -158,6 +158,7 @@ int tsec_initialize(bd_t * bis, struct tsec_info_struct *tsec_info)
|
|||
|
||||
/* Reset the MAC */
|
||||
priv->regs->maccfg1 |= MACCFG1_SOFT_RESET;
|
||||
udelay(2); /* Soft Reset must be asserted for 3 TX clocks */
|
||||
priv->regs->maccfg1 &= ~(MACCFG1_SOFT_RESET);
|
||||
|
||||
#if defined(CONFIG_MII) || defined(CONFIG_CMD_MII) \
|
||||
|
|
Loading…
Add table
Reference in a new issue