From 2b39ffed9a176550866ed122c0e726e8791261cb Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 13 Jan 2020 17:28:27 +0800 Subject: [PATCH] firmware: remove bitrotten Sayma code --- artiq/firmware/runtime/main.rs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/artiq/firmware/runtime/main.rs b/artiq/firmware/runtime/main.rs index ac089c000..b9fbb52bf 100644 --- a/artiq/firmware/runtime/main.rs +++ b/artiq/firmware/runtime/main.rs @@ -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() { irq::set_mask(0); irq::set_ie(true); @@ -116,7 +99,6 @@ fn startup() { setup_log_levels(); #[cfg(has_i2c)] board_misoc::i2c::init().expect("I2C initialization failed"); - sayma_hw_init(); rtio_clocking::init(); let mut net_device = unsafe { ethmac::EthernetDevice::new() };