Skip to content

Commit

Permalink
platforms,targets/lattice_certuspro_nx_evn,lattice_certuspro_nx_vvml:…
Browse files Browse the repository at this point in the history
… set sysconfig SPI_MASTER mode by default at platform level
  • Loading branch information
trabucayre committed Jul 1, 2024
1 parent 40204ac commit 1c06988
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions litex_boards/platforms/lattice_certuspro_nx_evn.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ class Platform(LatticeNexusPlatform):
def __init__(self, device="LFCPNX", toolchain="radiant", **kwargs):
assert device in ["LFCPNX"]
LatticeNexusPlatform.__init__(self, device + "-100-9LFG672C", _io, _connectors, toolchain=toolchain, **kwargs)
self.add_platform_command("ldc_set_sysconfig {{MASTER_SPI_PORT=SERIAL}}")
# Evaluation mode (with free license)
self.toolchain.set_prj_strategy_opts({"bit_ip_eval": "true"})

Expand Down
1 change: 1 addition & 0 deletions litex_boards/platforms/lattice_certuspro_nx_vvml.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ class Platform(LatticeNexusPlatform):
def __init__(self, device="LFCPNX", toolchain="radiant", **kwargs):
assert device in ["LFCPNX"]
LatticeNexusPlatform.__init__(self, device + "-100-9BBG484I", _io, _connectors, toolchain=toolchain, **kwargs)
self.add_platform_command("ldc_set_sysconfig {{MASTER_SPI_PORT=SERIAL}}")
# Evaluation mode (with free license)
self.toolchain.set_prj_strategy_opts({"bit_ip_eval": "true"})

Expand Down
1 change: 0 additions & 1 deletion litex_boards/targets/lattice_certuspro_nx_evn.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ def __init__(self, sys_clk_freq=75e6, toolchain="radiant",
with_led_chaser = True,
**kwargs):
platform = lattice_certuspro_nx_evn.Platform(toolchain=toolchain)
platform.add_platform_command("ldc_set_sysconfig {{MASTER_SPI_PORT=SERIAL}}")

# CRG --------------------------------------------------------------------------------------
self.crg = _CRG(platform, sys_clk_freq)
Expand Down
1 change: 0 additions & 1 deletion litex_boards/targets/lattice_certuspro_nx_vvml.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ def __init__(self, sys_clk_freq=75e6, toolchain="radiant",
with_led_chaser = True,
**kwargs):
platform = lattice_certuspro_nx_vvml.Platform(toolchain=toolchain)
platform.add_platform_command("ldc_set_sysconfig {{MASTER_SPI_PORT=SERIAL}}")

# CRG --------------------------------------------------------------------------------------
self.crg = _CRG(platform, sys_clk_freq)
Expand Down

0 comments on commit 1c06988

Please sign in to comment.