From dc97d3aee69361750280650505f2608c985fe1c6 Mon Sep 17 00:00:00 2001 From: linuswck Date: Fri, 25 Aug 2023 11:49:20 +0800 Subject: [PATCH] drtio-eem: CONFIG_EEM_TRANSCEIVERS -> CONFIG_EEM_DRTIO_COUNT --- artiq/firmware/libboard_artiq/drtio_eem.rs | 2 +- artiq/gateware/targets/efc.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/firmware/libboard_artiq/drtio_eem.rs b/artiq/firmware/libboard_artiq/drtio_eem.rs index 4434f8cb1..f1cd6afc8 100644 --- a/artiq/firmware/libboard_artiq/drtio_eem.rs +++ b/artiq/firmware/libboard_artiq/drtio_eem.rs @@ -188,7 +188,7 @@ unsafe fn align_comma() { } pub fn init() { - for trx_no in 0..csr::CONFIG_EEM_TRANSCEIVERS { + for trx_no in 0..csr::CONFIG_EEM_DRTIO_COUNT { unsafe { csr::eem_transceiver::transceiver_sel_write(trx_no as u8); } diff --git a/artiq/gateware/targets/efc.py b/artiq/gateware/targets/efc.py index 1623b338e..637844dc0 100644 --- a/artiq/gateware/targets/efc.py +++ b/artiq/gateware/targets/efc.py @@ -65,7 +65,7 @@ class Satellite(BaseSoC, AMPSoC): self.submodules.eem_transceiver = eem_serdes.EEMSerdes(self.platform, data_pads) self.csr_devices.append("eem_transceiver") self.config["HAS_DRTIO_EEM"] = None - self.config["EEM_TRANSCEIVERS"] = 1 + self.config["EEM_DRTIO_COUNT"] = 1 self.submodules.rtio_tsc = rtio.TSC(glbl_fine_ts_width=3)