lattice_ice40up5k_evn: Switch to LiteSPI.
This commit is contained in:
parent
5e8c29d657
commit
8df797c716
|
@ -86,8 +86,10 @@ class BaseSoC(SoCCore):
|
|||
self.bus.add_slave("sram", self.spram.bus, SoCRegion(size=128*kB))
|
||||
|
||||
# SPI Flash --------------------------------------------------------------------------------
|
||||
self.add_spi_flash(mode="1x", dummy_cycles=8)
|
||||
# 4x mode is not possible on this board since WP and HOLD pins are not connected to the FPGA
|
||||
from litespi.modules import N25Q032A
|
||||
from litespi.opcodes import SpiNorFlashOpCodes as Codes
|
||||
self.add_spi_flash(mode="1x", module=N25Q032A(Codes.READ_1_1_1))
|
||||
|
||||
# Add ROM linker region --------------------------------------------------------------------
|
||||
self.bus.add_region("rom", SoCRegion(
|
||||
|
|
Loading…
Reference in New Issue