From 6e6246d718f72129f31d1dde716dd945a28647e2 Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Fri, 14 Jun 2024 15:46:36 +0200 Subject: [PATCH] platforms/lambdaconcept_ecpix5.py: create_programmer: added option to select between r03 version (FT4232) and provious (FT2232) --- litex_boards/platforms/lambdaconcept_ecpix5.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/litex_boards/platforms/lambdaconcept_ecpix5.py b/litex_boards/platforms/lambdaconcept_ecpix5.py index 33177e0..1967d3a 100644 --- a/litex_boards/platforms/lambdaconcept_ecpix5.py +++ b/litex_boards/platforms/lambdaconcept_ecpix5.py @@ -176,8 +176,9 @@ class Platform(LatticeECP5Platform): assert device in ["45F", "85F"] LatticeECP5Platform.__init__(self, f"LFE5UM5G-{device}-8BG554I", _io, _connectors, toolchain=toolchain, **kwargs) - def create_programmer(self): - return OpenFPGALoader("ecpix5") + def create_programmer(self, version="r02"): + board_name = {True: "ecpix5_r03", False: "ecpix5"}[version=="r03"] + return OpenFPGALoader(board_name) def do_finalize(self, fragment): LatticeECP5Platform.do_finalize(self, fragment)