camlink_4k: disable leds when serial is used (since pin is shared).

This commit is contained in:
Florent Kermarrec 2021-01-25 12:19:29 +01:00
parent 1e1bec10c4
commit d256cc8bd6

View file

@ -104,10 +104,11 @@ class BaseSoC(SoCCore):
) )
# Leds ------------------------------------------------------------------------------------- # Leds -------------------------------------------------------------------------------------
self.submodules.leds = LedChaser( if platform.lookup_request("serial", loose=True) is None: # Disable leds when serial is used.
pads = platform.request_all("user_led"), self.submodules.leds = LedChaser(
sys_clk_freq = sys_clk_freq) pads = platform.request_all("user_led"),
self.add_csr("leds") sys_clk_freq = sys_clk_freq)
self.add_csr("leds")
# Build -------------------------------------------------------------------------------------------- # Build --------------------------------------------------------------------------------------------