From b5501aaf00852bda9ccc439a2236da5493548fcd Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 6 Jan 2019 14:54:52 +0800 Subject: [PATCH] firmware: program I2C switch on Sayma RTM --- artiq/firmware/libboard_artiq/si5324.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/artiq/firmware/libboard_artiq/si5324.rs b/artiq/firmware/libboard_artiq/si5324.rs index 1f20438f0..06b72ef74 100644 --- a/artiq/firmware/libboard_artiq/si5324.rs +++ b/artiq/firmware/libboard_artiq/si5324.rs @@ -11,6 +11,7 @@ const ADDRESS: u8 = 0x68; #[cfg(any(soc_platform = "kasli", soc_platform = "sayma_amc", + soc_platform = "sayma_rtm", soc_platform = "kc705"))] fn pca9548_select(address: u8, channels: u8) -> Result<()> { i2c::start(BUSNO).unwrap(); @@ -202,6 +203,8 @@ pub fn setup(settings: &FrequencySettings, input: Input) -> Result<()> { } #[cfg(soc_platform = "sayma_amc")] pca9548_select(0x70, 1 << 4)?; + #[cfg(soc_platform = "sayma_rtm")] + pca9548_select(0x77, 1 << 5)?; #[cfg(soc_platform = "kc705")] pca9548_select(0x74, 1 << 7)?;