summaryrefslogtreecommitdiffstats
path: root/firmware/microblaze/usrp2p/ethernet.c
diff options
context:
space:
mode:
authorNick Foster <nick@nerdnetworks.org>2010-07-27 20:11:05 -0700
committerNick Foster <nick@nerdnetworks.org>2010-07-27 20:11:05 -0700
commit9b63845669056ace2ca50a2c406ce6cf3657ec74 (patch)
treeec10b8a0ccd3e7e83b7d65595dc355854fc0a0d7 /firmware/microblaze/usrp2p/ethernet.c
parent06b0fc51c92a933d2641395c0b3974bb95df18d0 (diff)
downloaduhd-9b63845669056ace2ca50a2c406ce6cf3657ec74.tar.gz
uhd-9b63845669056ace2ca50a2c406ce6cf3657ec74.tar.bz2
uhd-9b63845669056ace2ca50a2c406ce6cf3657ec74.zip
Ethernet mods for activity LED.
Diffstat (limited to 'firmware/microblaze/usrp2p/ethernet.c')
-rw-r--r--firmware/microblaze/usrp2p/ethernet.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/firmware/microblaze/usrp2p/ethernet.c b/firmware/microblaze/usrp2p/ethernet.c
index 134650326..07224d3b7 100644
--- a/firmware/microblaze/usrp2p/ethernet.c
+++ b/firmware/microblaze/usrp2p/ethernet.c
@@ -29,7 +29,7 @@
#include <i2c.h>
#include "usrp2/fw_common.h"
-#define VERBOSE 1
+#define VERBOSE 0
static ethernet_t ed_state;
static ethernet_link_changed_callback_t ed_callback = 0;
@@ -222,9 +222,13 @@ ethernet_init(void)
| PHY_INT_RX_STATUS_CHANGE
);
- eth_mac_miim_read(PHY_INT_STATUS);
+ eth_mac_miim_read(PHY_INT_STATUS); //clear interrupts
eth_mac_miim_write(PHY_INT_MASK, mask); // enable the ones we want
+ //set the LED behavior to activity instead of link
+ unsigned led = (LED_ACTIVITY << PHY_LED_LINK_LSB);
+ eth_mac_miim_write(PHY_LED2, led);
+
pic_register_handler(IRQ_PHY, eth_phy_irq_handler);
// Advertise our flow control configuation.