From 615b97e205104296323049d3b752ad57d2dd2ab7 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 30 Jul 2021 08:18:15 +0200 Subject: [PATCH] tinyfpga_bx: Switch to LiteSPI. --- litex_boards/targets/tinyfpga_bx.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/litex_boards/targets/tinyfpga_bx.py b/litex_boards/targets/tinyfpga_bx.py index af34aff..1ae85d1 100755 --- a/litex_boards/targets/tinyfpga_bx.py +++ b/litex_boards/targets/tinyfpga_bx.py @@ -47,7 +47,9 @@ class BaseSoC(SoCCore): self.submodules.crg = CRG(platform.request("clk16")) # 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 -------------------------------------------------------------------- self.bus.add_region("rom", SoCRegion(