kosagi_fomu: Switch to LiteSPI.

This commit is contained in:
Florent Kermarrec 2021-07-27 19:55:04 +02:00
parent b3e7dbfd30
commit 9065cfa75d
1 changed files with 4 additions and 1 deletions

View File

@ -99,7 +99,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)
from litespi.modules import AT25SF161
from litespi.opcodes import SpiNorFlashOpCodes as Codes
self.add_spi_flash(mode="4x", module=AT25SF161(Codes.READ_1_1_1), with_master=False)
#self.add_spi_flash(mode="1x", dummy_cycles=8) # LiteX SPI Flash Core.
# Add ROM linker region --------------------------------------------------------------------
self.bus.add_region("rom", SoCRegion(