From ad63908aff8586860cce15681030a8e5ed88b366 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 6 Oct 2019 18:13:59 +0800 Subject: [PATCH] hmc830_7043: enable_fpga_ibuf -> unmute --- artiq/firmware/libboard_artiq/hmc830_7043.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/artiq/firmware/libboard_artiq/hmc830_7043.rs b/artiq/firmware/libboard_artiq/hmc830_7043.rs index 04fd4d6b4..2dbee9bef 100644 --- a/artiq/firmware/libboard_artiq/hmc830_7043.rs +++ b/artiq/firmware/libboard_artiq/hmc830_7043.rs @@ -361,15 +361,14 @@ pub mod hmc7043 { Ok(()) } - pub fn enable_fpga_ibuf() { + pub fn unmute() { /* * Never missing an opportunity to be awful, the HMC7043 produces broadband noise - * prior to intialization, which can upset the FPGA. - * One mitigation technique is to disable the input buffer until the HMC7043 is - * slightly better behaved. + * prior to intialization, which can upset the AMC FPGA. + * External circuitry mutes it. */ unsafe { - csr::ad9154_crg::ibuf_disable_write(0); + csr::hmc7043_out_en::out_write(1); } } @@ -416,7 +415,7 @@ pub fn init() -> Result<(), &'static str> { hmc7043::init(); hmc7043::test_gpo()?; hmc7043::check_phased()?; - hmc7043::enable_fpga_ibuf(); + hmc7043::unmute(); Ok(()) }