mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
build/openfpgaloader/flash: Add external parameter to allow flashing external SPI Flash when available.
This commit is contained in:
parent
24f0432253
commit
8ccb1a91c9
1 changed files with 3 additions and 1 deletions
|
@ -25,8 +25,10 @@ class OpenFPGALoader(GenericProgrammer):
|
|||
self.cmd += ["--bitstream", bitstream_file]
|
||||
self.call(self.cmd)
|
||||
|
||||
def flash(self, address, data_file):
|
||||
def flash(self, address, data_file, external=False):
|
||||
self.cmd += ["--write-flash", "--bitstream", data_file]
|
||||
if external:
|
||||
self.cmd += ["--external-flash"]
|
||||
if address:
|
||||
self.cmd.append("--offset")
|
||||
self.cmd.append(address)
|
||||
|
|
Loading…
Reference in a new issue