forked from M-Labs/artiq
kasli_generic: do not attempt to use SFP LED for RTIO on 2.0+
This commit is contained in:
parent
85b5a04acf
commit
2d1f1fff7f
|
@ -153,12 +153,13 @@ class GenericStandalone(StandaloneBase):
|
||||||
|
|
||||||
self.rtio_channels = []
|
self.rtio_channels = []
|
||||||
add_peripherals(self, description["peripherals"])
|
add_peripherals(self, description["peripherals"])
|
||||||
for i in (1, 2):
|
if hw_rev in ("v1.0", "v1.1"):
|
||||||
print("SFP LED at RTIO channel 0x{:06x}".format(len(self.rtio_channels)))
|
for i in (1, 2):
|
||||||
sfp_ctl = self.platform.request("sfp_ctl", i)
|
print("SFP LED at RTIO channel 0x{:06x}".format(len(self.rtio_channels)))
|
||||||
phy = ttl_simple.Output(sfp_ctl.led)
|
sfp_ctl = self.platform.request("sfp_ctl", i)
|
||||||
self.submodules += phy
|
phy = ttl_simple.Output(sfp_ctl.led)
|
||||||
self.rtio_channels.append(rtio.Channel.from_phy(phy))
|
self.submodules += phy
|
||||||
|
self.rtio_channels.append(rtio.Channel.from_phy(phy))
|
||||||
|
|
||||||
self.config["HAS_RTIO_LOG"] = None
|
self.config["HAS_RTIO_LOG"] = None
|
||||||
self.config["RTIO_LOG_CHANNEL"] = len(self.rtio_channels)
|
self.config["RTIO_LOG_CHANNEL"] = len(self.rtio_channels)
|
||||||
|
|
Loading…
Reference in New Issue