kasli: control SFP1 and SFP2 LEDs in DRTIO satellite to match master

This commit is contained in:
Sebastien Bourdeauducq 2018-02-27 23:18:18 +08:00
parent 5d81877b34
commit 386aa75aaa
1 changed files with 4 additions and 3 deletions

View File

@ -465,9 +465,10 @@ class Satellite(BaseSoC):
phy = ttl_simple.Output(platform.request("user_led", 0)) phy = ttl_simple.Output(platform.request("user_led", 0))
self.submodules += phy self.submodules += phy
rtio_channels.append(rtio.Channel.from_phy(phy)) rtio_channels.append(rtio.Channel.from_phy(phy))
phy = ttl_simple.Output(platform.request("sfp_ctl", 1).led) for i in range(1, 3):
self.submodules += phy phy = ttl_simple.Output(platform.request("sfp_ctl", i).led)
rtio_channels.append(rtio.Channel.from_phy(phy)) self.submodules += phy
rtio_channels.append(rtio.Channel.from_phy(phy))
self.submodules.rtio_moninj = rtio.MonInj(rtio_channels) self.submodules.rtio_moninj = rtio.MonInj(rtio_channels)
self.csr_devices.append("rtio_moninj") self.csr_devices.append("rtio_moninj")