[rtems commit] bsps/arm: Fix LPC Ethernet driver initialization
Sebastian Huber
sebh at rtems.org
Wed Jan 9 15:41:06 UTC 2013
Module: rtems
Branch: master
Commit: f12ef23941a7867cdc62e558ba5bab849d6ec02f
Changeset: http://git.rtems.org/rtems/commit/?id=f12ef23941a7867cdc62e558ba5bab849d6ec02f
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Jan 9 16:25:37 2013 +0100
bsps/arm: Fix LPC Ethernet driver initialization
---
.../libbsp/arm/shared/lpc/network/lpc-ethernet.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/c/src/lib/libbsp/arm/shared/lpc/network/lpc-ethernet.c b/c/src/lib/libbsp/arm/shared/lpc/network/lpc-ethernet.c
index 3b2d5b6..ca43143 100644
--- a/c/src/lib/libbsp/arm/shared/lpc/network/lpc-ethernet.c
+++ b/c/src/lib/libbsp/arm/shared/lpc/network/lpc-ethernet.c
@@ -1323,6 +1323,9 @@ static int lpc_eth_up_or_down(lpc_eth_driver_entry *e, bool up)
lpc_eth_config_module_enable();
+ /* Enable RX/TX reset and disable soft reset */
+ lpc_eth->mac1 = 0xf00;
+
/* Initialize PHY */
lpc_eth->mcfg = ETH_MCFG_CLOCK_SELECT(0x7);
eno = lpc_eth_phy_up(e);
More information about the vc
mailing list