forked from M-Labs/artiq
satman: move now-unrelated hmc830_7043 init away from DRTIO transceiver init
This commit is contained in:
parent
1c6c22fde9
commit
fdba0bfbbc
|
@ -414,15 +414,15 @@ pub extern fn main() -> i32 {
|
||||||
|
|
||||||
i2c::init();
|
i2c::init();
|
||||||
si5324::setup(&SI5324_SETTINGS, si5324::Input::Ckin1).expect("cannot initialize Si5324");
|
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 {
|
unsafe {
|
||||||
csr::drtio_transceiver::stable_clkin_write(1);
|
csr::drtio_transceiver::stable_clkin_write(1);
|
||||||
}
|
}
|
||||||
clock::spin_us(1500); // wait for CPLL/QPLL lock
|
clock::spin_us(1500); // wait for CPLL/QPLL lock
|
||||||
init_rtio_crg();
|
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)]
|
#[cfg(has_allaki_atts)]
|
||||||
board_artiq::hmc542::program_all(8/*=4dB*/);
|
board_artiq::hmc542::program_all(8/*=4dB*/);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue