diff options
author | Josh Blum <josh@joshknows.com> | 2010-11-18 19:30:55 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-12-11 18:43:09 -0800 |
commit | a1f3a6605077ffb3275b094c58e8e9cdf78a899d (patch) | |
tree | 7e90650470623a0ae09200734a9de06d1fb9a2f4 /firmware/microblaze | |
parent | 8fcd9f421315ade5768f0ff4e99dad4a1d0d1451 (diff) | |
download | uhd-a1f3a6605077ffb3275b094c58e8e9cdf78a899d.tar.gz uhd-a1f3a6605077ffb3275b094c58e8e9cdf78a899d.tar.bz2 uhd-a1f3a6605077ffb3275b094c58e8e9cdf78a899d.zip |
packet_router: enable the serdes and always send GARP
Diffstat (limited to 'firmware/microblaze')
-rw-r--r-- | firmware/microblaze/apps/txrx_uhd.c | 2 | ||||
-rw-r--r-- | firmware/microblaze/lib/u2_init.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/firmware/microblaze/apps/txrx_uhd.c b/firmware/microblaze/apps/txrx_uhd.c index 938491b0e..c61bc647c 100644 --- a/firmware/microblaze/apps/txrx_uhd.c +++ b/firmware/microblaze/apps/txrx_uhd.c @@ -283,12 +283,12 @@ void link_changed_callback(int speed){ if (speed != 0){ hal_set_leds(LED_RJ45, LED_RJ45); pkt_ctrl_set_routing_mode(PKT_CTRL_ROUTING_MODE_MASTER); - send_gratuitous_arp(); //garp after setting the routing mode } else{ hal_set_leds(0x0, LED_RJ45); pkt_ctrl_set_routing_mode(PKT_CTRL_ROUTING_MODE_SLAVE); } + send_gratuitous_arp(); } static void setup_network(void){ diff --git a/firmware/microblaze/lib/u2_init.c b/firmware/microblaze/lib/u2_init.c index a2669103a..9302c90b2 100644 --- a/firmware/microblaze/lib/u2_init.c +++ b/firmware/microblaze/lib/u2_init.c @@ -78,6 +78,8 @@ u2_init(void) printf("ad9510 reg[0x%x] = 0x%x\n", rr, vv); } #endif - + + output_regs->serdes_ctrl = (SERDES_ENABLE | SERDES_RXEN); + return true; } |