muselab_icesugar: Switch to LiteSPI.

This commit is contained in:
Florent Kermarrec 2021-07-29 19:55:32 +02:00
parent 8df797c716
commit 569c20ab86
1 changed files with 3 additions and 1 deletions

View File

@ -84,7 +84,9 @@ class BaseSoC(SoCCore):
self.bus.add_slave("sram", self.spram.bus, SoCRegion(size=64*kB)) self.bus.add_slave("sram", self.spram.bus, SoCRegion(size=64*kB))
# SPI Flash -------------------------------------------------------------------------------- # SPI Flash --------------------------------------------------------------------------------
self.add_spi_flash(mode="1x", dummy_cycles=8) from litespi.modules import W25Q64FV
from litespi.opcodes import SpiNorFlashOpCodes as Codes
self.add_spi_flash(mode="1x", module=W25Q64FV(Codes.READ_1_1_1))
# Add ROM linker region -------------------------------------------------------------------- # Add ROM linker region --------------------------------------------------------------------
self.bus.add_region("rom", SoCRegion( self.bus.add_region("rom", SoCRegion(