From a8ecbd6041dc71deeff8ee78a382d547a876000a Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 3 Feb 2017 12:27:13 +0800 Subject: [PATCH] firmware: do not attempt to build Si5324 code when gateware does not support it --- artiq/firmware/libboard/lib.rs | 2 +- artiq/gateware/targets/kc705_drtio_satellite.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/artiq/firmware/libboard/lib.rs b/artiq/firmware/libboard/lib.rs index 84a745936..999926cb0 100644 --- a/artiq/firmware/libboard/lib.rs +++ b/artiq/firmware/libboard/lib.rs @@ -21,7 +21,7 @@ pub mod spiflash; #[cfg(has_i2c)] pub mod i2c; -#[cfg(has_i2c)] +#[cfg(has_si5324)] pub mod si5324; #[cfg(has_ad9516)] diff --git a/artiq/gateware/targets/kc705_drtio_satellite.py b/artiq/gateware/targets/kc705_drtio_satellite.py index aff8ff96a..e4dade56b 100755 --- a/artiq/gateware/targets/kc705_drtio_satellite.py +++ b/artiq/gateware/targets/kc705_drtio_satellite.py @@ -98,6 +98,7 @@ class Satellite(BaseSoC): self.submodules.i2c = gpio.GPIOTristate([i2c.scl, i2c.sda]) self.csr_devices.append("i2c") self.config["I2C_BUS_COUNT"] = 1 + self.config["HAS_SI5324"] = None self.comb += [ platform.request("user_sma_clock_p").eq(ClockSignal("rtio_rx")),