mirror of
https://github.com/saymrwulf/litex-boards.git
synced 2026-11-19 09:50:49 +00:00
tinyfpga_bx: Switch to LiteSPI.
This commit is contained in:
parent
90fcaec287
commit
615b97e205
1 changed files with 3 additions and 1 deletions
|
|
@ -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(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue