lattice_ice40up5k_evn: Switch to LiteSPI.

This commit is contained in:
Florent Kermarrec 2021-07-29 19:50:36 +02:00
parent 5e8c29d657
commit 8df797c716
1 changed files with 3 additions and 1 deletions

View File

@ -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(