diff --git a/libboard_zynq/src/eth/mod.rs b/libboard_zynq/src/eth/mod.rs index 3d6e312..159be13 100644 --- a/libboard_zynq/src/eth/mod.rs +++ b/libboard_zynq/src/eth/mod.rs @@ -298,16 +298,6 @@ impl Eth { ); }); - // This didn't help, might not need, keep for now, and remove later to test. - #[cfg(feature = "target_ebaz4205")] - slcr::RegisterBlock::unlocked(|slcr| { - // VREF internal generator - slcr.gpiob_ctrl.write( - slcr::GpiobCtrl::zeroed() - .vref_en(true) - ); - }); - Self::gem0(macaddr) } @@ -328,12 +318,8 @@ impl Eth { impl Eth { fn gem_common(macaddr: [u8; 6]) -> Self { - #[cfg(not(feature = "target_ebaz4205"))] GEM::setup_clock(TX_1000); - #[cfg(feature = "target_ebaz4205")] - GEM::setup_clock(TX_100); - #[cfg(feature="target_kasli_soc")] { let mut eth_reset_pin = PhyRst::rst_pin(); @@ -348,14 +334,6 @@ impl Eth { inner.configure(macaddr); - - // Used for debugging MDIO - // loop { - // let _phy = Phy::find(&mut inner); - // for _ in 0..100_000_000 { - // asm::nop(); - // } - // } let phy = Phy::find(&mut inner).expect("phy"); phy.reset(&mut inner); phy.restart_autoneg(&mut inner);