muselab_icesugar_pro: Switch to LiteSPI.

This commit is contained in:
Florent Kermarrec 2021-07-29 19:58:13 +02:00
parent 569c20ab86
commit 218e830fbf
1 changed files with 3 additions and 3 deletions

View File

@ -109,9 +109,9 @@ class BaseSoC(SoCCore):
self.submodules.leds = LedChaser(pads=ledn, sys_clk_freq=sys_clk_freq) self.submodules.leds = LedChaser(pads=ledn, sys_clk_freq=sys_clk_freq)
# SPI Flash -------------------------------------------------------------------------------- # SPI Flash --------------------------------------------------------------------------------
self.add_spi_flash(mode="1x", dummy_cycles=8) from litespi.modules import W25Q256
self.add_constant("SPIFLASH_PAGE_SIZE", 256) from litespi.opcodes import SpiNorFlashOpCodes as Codes
self.add_constant("SPIFLASH_SECTOR_SIZE", 4096) self.add_spi_flash(mode="1x", module=W25Q256(Codes.READ_1_1_1))
# SDR SDRAM -------------------------------------------------------------------------------- # SDR SDRAM --------------------------------------------------------------------------------
if not self.integrated_main_ram_size: if not self.integrated_main_ram_size: