mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
litex/build/efinix: add spi_width
Doesn't seem needed for Trion but probably essential for Titanium?
This commit is contained in:
parent
a59b67e4ee
commit
d9f006e123
2 changed files with 3 additions and 2 deletions
|
@ -361,7 +361,7 @@ class EfinityToolchain(GenericToolchain):
|
||||||
"--io_weak_pullup", "on",
|
"--io_weak_pullup", "on",
|
||||||
"--enable_roms", "on",
|
"--enable_roms", "on",
|
||||||
"--mode", self.platform.spi_mode,
|
"--mode", self.platform.spi_mode,
|
||||||
"--width", "1",
|
"--width", self.platform.spi_width,
|
||||||
"--enable_crc_check", "on"
|
"--enable_crc_check", "on"
|
||||||
], common.colors)
|
], common.colors)
|
||||||
if r != 0:
|
if r != 0:
|
||||||
|
|
|
@ -23,13 +23,14 @@ class EfinixPlatform(GenericPlatform):
|
||||||
|
|
||||||
_supported_toolchains = ["efinity"]
|
_supported_toolchains = ["efinity"]
|
||||||
|
|
||||||
def __init__(self, *args, iobank_info=None, toolchain="efinity", spi_mode="active", **kwargs):
|
def __init__(self, *args, iobank_info=None, toolchain="efinity", spi_mode="active", spi_width="1", **kwargs):
|
||||||
GenericPlatform.__init__(self, *args, **kwargs)
|
GenericPlatform.__init__(self, *args, **kwargs)
|
||||||
|
|
||||||
self.timing_model = self.device[-2:]
|
self.timing_model = self.device[-2:]
|
||||||
self.device = self.device[:-2]
|
self.device = self.device[:-2]
|
||||||
self.iobank_info = iobank_info
|
self.iobank_info = iobank_info
|
||||||
self.spi_mode = spi_mode
|
self.spi_mode = spi_mode
|
||||||
|
self.spi_width = spi_width
|
||||||
if self.device[:2] == "Ti":
|
if self.device[:2] == "Ti":
|
||||||
self.family = "Titanium"
|
self.family = "Titanium"
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue