tinyfpga_bx: Switch to LiteSPI.

This commit is contained in:
Florent Kermarrec 2021-07-30 08:18:15 +02:00
parent 90fcaec287
commit 615b97e205
1 changed files with 3 additions and 1 deletions

View File

@ -47,7 +47,9 @@ class BaseSoC(SoCCore):
self.submodules.crg = CRG(platform.request("clk16")) self.submodules.crg = CRG(platform.request("clk16"))
# SPI Flash -------------------------------------------------------------------------------- # SPI Flash --------------------------------------------------------------------------------
self.add_spi_flash(mode="1x", dummy_cycles=8) from litespi.modules import AT25SF081
from litespi.opcodes import SpiNorFlashOpCodes as Codes
self.add_spi_flash(mode="1x", module=AT25SF081(Codes.READ_1_1_1), with_master=False)
# Add ROM linker region -------------------------------------------------------------------- # Add ROM linker region --------------------------------------------------------------------
self.bus.add_region("rom", SoCRegion( self.bus.add_region("rom", SoCRegion(