satman: removed irrelevant (kasli v2) code
This commit is contained in:
parent
e56f99b3ae
commit
36bf30c446
@ -453,29 +453,6 @@ pub extern fn main_core0() -> i32 {
|
|||||||
let mut i2c = I2c::i2c0();
|
let mut i2c = I2c::i2c0();
|
||||||
i2c.init().expect("I2C initialization failed");
|
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
|
//this part was commented in runtime
|
||||||
#[cfg(has_si5324)]
|
#[cfg(has_si5324)]
|
||||||
si5324::setup(&SI5324_SETTINGS, si5324::Input::Ckin1).expect("cannot initialize Si5324");
|
si5324::setup(&SI5324_SETTINGS, si5324::Input::Ckin1).expect("cannot initialize Si5324");
|
||||||
|
Loading…
Reference in New Issue
Block a user