satman: move now-unrelated hmc830_7043 init away from DRTIO transceiver init

pull/1371/head
Sebastien Bourdeauducq 2019-10-06 19:22:46 +08:00
parent 1c6c22fde9
commit fdba0bfbbc
1 changed files with 3 additions and 3 deletions

View File

@ -414,15 +414,15 @@ pub extern fn main() -> i32 {
i2c::init();
si5324::setup(&SI5324_SETTINGS, si5324::Input::Ckin1).expect("cannot initialize Si5324");
#[cfg(has_hmc830_7043)]
/* must be the first SPI init because of HMC830 SPI mode selection */
hmc830_7043::init().expect("cannot initialize HMC830/7043");
unsafe {
csr::drtio_transceiver::stable_clkin_write(1);
}
clock::spin_us(1500); // wait for CPLL/QPLL lock
init_rtio_crg();
#[cfg(has_hmc830_7043)]
/* must be the first SPI init because of HMC830 SPI mode selection */
hmc830_7043::init().expect("cannot initialize HMC830/7043");
#[cfg(has_allaki_atts)]
board_artiq::hmc542::program_all(8/*=4dB*/);