kosagi_fomu: Switch to LiteSPI.
This commit is contained in:
parent
b3e7dbfd30
commit
9065cfa75d
|
@ -99,7 +99,10 @@ class BaseSoC(SoCCore):
|
||||||
self.bus.add_slave("sram", self.spram.bus, SoCRegion(size=128*kB))
|
self.bus.add_slave("sram", self.spram.bus, SoCRegion(size=128*kB))
|
||||||
|
|
||||||
# SPI Flash --------------------------------------------------------------------------------
|
# 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 --------------------------------------------------------------------
|
# Add ROM linker region --------------------------------------------------------------------
|
||||||
self.bus.add_region("rom", SoCRegion(
|
self.bus.add_region("rom", SoCRegion(
|
||||||
|
|
Loading…
Reference in New Issue