diff --git a/src/satman/main.rs b/src/satman/main.rs index fe01294..ca3b3ce 100644 --- a/src/satman/main.rs +++ b/src/satman/main.rs @@ -453,29 +453,6 @@ pub extern fn main_core0() -> i32 { let mut i2c = I2c::i2c0(); i2c.init().expect("I2C initialization failed"); - //see if below is applicable (probably not - not kasli) - #[cfg(all(soc_platform = "kasli", hw_rev = "v2.0"))] - let (mut io_expander0, mut io_expander1); - #[cfg(all(soc_platform = "kasli", hw_rev = "v2.0"))] - { - io_expander0 = board_misoc::io_expander::IoExpander::new(0); - io_expander1 = board_misoc::io_expander::IoExpander::new(1); - io_expander0.init().expect("I2C I/O expander #0 initialization failed"); - io_expander1.init().expect("I2C I/O expander #1 initialization failed"); - - // Actively drive TX_DISABLE to false on SFP0..3 - io_expander0.set_oe(0, 1 << 1).unwrap(); - io_expander0.set_oe(1, 1 << 1).unwrap(); - io_expander1.set_oe(0, 1 << 1).unwrap(); - io_expander1.set_oe(1, 1 << 1).unwrap(); - io_expander0.set(0, 1, false); - io_expander0.set(1, 1, false); - io_expander1.set(0, 1, false); - io_expander1.set(1, 1, false); - io_expander0.service().unwrap(); - io_expander1.service().unwrap(); - } - //this part was commented in runtime #[cfg(has_si5324)] si5324::setup(&SI5324_SETTINGS, si5324::Input::Ckin1).expect("cannot initialize Si5324");