From 5ad65b9d30112d2e8373c362ad0b055ebcb51b3d Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 6 Oct 2019 18:13:27 +0800 Subject: [PATCH] hmc830_7043: remove clock_mux --- artiq/firmware/libboard_artiq/hmc830_7043.rs | 28 -------------------- 1 file changed, 28 deletions(-) diff --git a/artiq/firmware/libboard_artiq/hmc830_7043.rs b/artiq/firmware/libboard_artiq/hmc830_7043.rs index a507f6591..04fd4d6b4 100644 --- a/artiq/firmware/libboard_artiq/hmc830_7043.rs +++ b/artiq/firmware/libboard_artiq/hmc830_7043.rs @@ -1,30 +1,3 @@ -#[cfg(hw_rev = "v1.0")] -mod clock_mux { - use board_misoc::csr; - - const CLK_SRC_EXT_SEL : u8 = 1 << 0; - const REF_CLK_SRC_SEL : u8 = 1 << 1; - const DAC_CLK_SRC_SEL : u8 = 1 << 2; - const REF_LO_CLK_SEL : u8 = 1 << 3; - - pub fn init() { - unsafe { - csr::clock_mux::out_write( - 1*CLK_SRC_EXT_SEL | // 1= ext clk from sma, 0= RF backplane (IC46) to IC45 - 1*REF_CLK_SRC_SEL | // 1= low-noise clock, 0= Si5324 output (IC45) to HMC830 - 1*DAC_CLK_SRC_SEL | // 1= HMC830 output, 1= clock mezzanine (IC54) to HMC7043 and J58/J59 - 0*REF_LO_CLK_SEL); // 1= clock mezzanine, 0= HMC830 input (IC52) to AFEs and J56/J57 - } - } -} - -#[cfg(hw_rev = "v2.0")] -mod clock_mux { - pub fn init() { - // TODO - } -} - mod hmc830 { use board_misoc::{csr, clock}; @@ -426,7 +399,6 @@ pub fn init() -> Result<(), &'static str> { #[cfg(all(hmc830_ref = "150", rtio_frequency = "150.0"))] const DIV: (u32, u32, u32, u32) = (2, 32, 0, 1); // 150MHz -> 2.4GHz - clock_mux::init(); /* do not use other SPI devices before HMC830 SPI mode selection */ hmc830::select_spi_mode(); hmc830::detect()?;