forked from M-Labs/artiq
1
0
Fork 0

firmware: remove bitrotten Sayma code

This commit is contained in:
Sebastien Bourdeauducq 2020-01-13 17:28:27 +08:00
parent 583a18dd5f
commit 9dd011f4ad
1 changed files with 0 additions and 18 deletions

View File

@ -88,23 +88,6 @@ fn setup_log_levels() {
} }
} }
fn sayma_hw_init() {
#[cfg(has_hmc830_7043)]
/* must be the first SPI init because of HMC830 SPI mode selection */
board_artiq::hmc830_7043::init().expect("cannot initialize HMC830/7043");
#[cfg(has_ad9154)]
{
board_artiq::ad9154::jesd_reset(false);
board_artiq::ad9154::init();
if let Err(e) = board_artiq::jesd204sync::sysref_auto_rtio_align() {
error!("failed to align SYSREF at FPGA: {}", e);
}
if let Err(e) = board_artiq::jesd204sync::sysref_auto_dac_align() {
error!("failed to align SYSREF at DAC: {}", e);
}
}
}
fn startup() { fn startup() {
irq::set_mask(0); irq::set_mask(0);
irq::set_ie(true); irq::set_ie(true);
@ -116,7 +99,6 @@ fn startup() {
setup_log_levels(); setup_log_levels();
#[cfg(has_i2c)] #[cfg(has_i2c)]
board_misoc::i2c::init().expect("I2C initialization failed"); board_misoc::i2c::init().expect("I2C initialization failed");
sayma_hw_init();
rtio_clocking::init(); rtio_clocking::init();
let mut net_device = unsafe { ethmac::EthernetDevice::new() }; let mut net_device = unsafe { ethmac::EthernetDevice::new() };