From 1c06988d802b8bff5d00b995a03021bf214dce3c Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Mon, 1 Jul 2024 11:06:44 +0200 Subject: [PATCH] platforms,targets/lattice_certuspro_nx_evn,lattice_certuspro_nx_vvml: set sysconfig SPI_MASTER mode by default at platform level --- litex_boards/platforms/lattice_certuspro_nx_evn.py | 1 + litex_boards/platforms/lattice_certuspro_nx_vvml.py | 1 + litex_boards/targets/lattice_certuspro_nx_evn.py | 1 - litex_boards/targets/lattice_certuspro_nx_vvml.py | 1 - 4 files changed, 2 insertions(+), 2 deletions(-) diff --git a/litex_boards/platforms/lattice_certuspro_nx_evn.py b/litex_boards/platforms/lattice_certuspro_nx_evn.py index 4977ce6..7537ac5 100644 --- a/litex_boards/platforms/lattice_certuspro_nx_evn.py +++ b/litex_boards/platforms/lattice_certuspro_nx_evn.py @@ -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"}) diff --git a/litex_boards/platforms/lattice_certuspro_nx_vvml.py b/litex_boards/platforms/lattice_certuspro_nx_vvml.py index 3c0dd11..a8d236d 100644 --- a/litex_boards/platforms/lattice_certuspro_nx_vvml.py +++ b/litex_boards/platforms/lattice_certuspro_nx_vvml.py @@ -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"}) diff --git a/litex_boards/targets/lattice_certuspro_nx_evn.py b/litex_boards/targets/lattice_certuspro_nx_evn.py index 60fdc1c..454e3b5 100755 --- a/litex_boards/targets/lattice_certuspro_nx_evn.py +++ b/litex_boards/targets/lattice_certuspro_nx_evn.py @@ -60,7 +60,6 @@ class BaseSoC(SoCCore): 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) diff --git a/litex_boards/targets/lattice_certuspro_nx_vvml.py b/litex_boards/targets/lattice_certuspro_nx_vvml.py index 19cda8d..7d85e3c 100755 --- a/litex_boards/targets/lattice_certuspro_nx_vvml.py +++ b/litex_boards/targets/lattice_certuspro_nx_vvml.py @@ -60,7 +60,6 @@ class BaseSoC(SoCCore): 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)