targets/qmtech_xc7a35t: Use gpio_serial as serial when not mounted on daughterboard.

This commit is contained in:
Florent Kermarrec 2021-11-04 18:52:36 +01:00
parent 9543b5efae
commit a482d7f6de
1 changed files with 3 additions and 0 deletions

View File

@ -76,6 +76,9 @@ class BaseSoC(SoCCore):
platform = qmtech_xc7a35t.Platform(toolchain=toolchain, with_daughterboard=with_daughterboard) platform = qmtech_xc7a35t.Platform(toolchain=toolchain, with_daughterboard=with_daughterboard)
# SoCCore ---------------------------------------------------------------------------------- # SoCCore ----------------------------------------------------------------------------------
if (kwargs["uart_name"] == "serial") and (not with_daughterboard):
kwargs["uart_name"] = "gpio_serial"
SoCCore.__init__(self, platform, sys_clk_freq, SoCCore.__init__(self, platform, sys_clk_freq,
ident = "LiteX SoC on QMTech XC7A35T" + (" + Daughterboard" if with_daughterboard else ""), ident = "LiteX SoC on QMTech XC7A35T" + (" + Daughterboard" if with_daughterboard else ""),
ident_version = ident_version, ident_version = ident_version,