mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 04:19:37 +08:00
Ethernet controller needs different delay with debug disabled
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1836 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -323,7 +323,6 @@ static void lm3s_ethreset(struct lm3s_driver_s *priv)
|
|||||||
{
|
{
|
||||||
irqstate_t flags;
|
irqstate_t flags;
|
||||||
uint32 regval;
|
uint32 regval;
|
||||||
volatile uint32 delay;
|
|
||||||
|
|
||||||
#if LM3S_NETHCONTROLLERS > 1
|
#if LM3S_NETHCONTROLLERS > 1
|
||||||
# error "If multiple interfaces are supported, this function would have to be redesigned"
|
# error "If multiple interfaces are supported, this function would have to be redesigned"
|
||||||
@@ -343,9 +342,9 @@ static void lm3s_ethreset(struct lm3s_driver_s *priv)
|
|||||||
regval |= (SYSCON_SRCR2_EMAC0|SYSCON_SRCR2_EPHY0);
|
regval |= (SYSCON_SRCR2_EMAC0|SYSCON_SRCR2_EPHY0);
|
||||||
putreg32(regval, LM3S_SYSCON_SRCR2);
|
putreg32(regval, LM3S_SYSCON_SRCR2);
|
||||||
|
|
||||||
/* Wait just a bit */
|
/* Wait just a bit. This is a much longer delay than necessary */
|
||||||
|
|
||||||
for (delay = 0; delay < 16; delay++);
|
up_mdelay(2);
|
||||||
|
|
||||||
/* Then take the Ethernet controller out of the reset state */
|
/* Then take the Ethernet controller out of the reset state */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user