Skip to content

Commit

Permalink
lattice_ice40up5k_evn: Switch to LiteSPI.
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-digital committed Jul 29, 2021
1 parent 5e8c29d commit 8df797c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion litex_boards/targets/lattice_ice40up5k_evn.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,10 @@ def __init__(self, bios_flash_offset, sys_clk_freq=int(12e6), with_led_chaser=Tr
self.bus.add_slave("sram", self.spram.bus, SoCRegion(size=128*kB))

# SPI Flash --------------------------------------------------------------------------------
self.add_spi_flash(mode="1x", dummy_cycles=8)
# 4x mode is not possible on this board since WP and HOLD pins are not connected to the FPGA
from litespi.modules import N25Q032A
from litespi.opcodes import SpiNorFlashOpCodes as Codes
self.add_spi_flash(mode="1x", module=N25Q032A(Codes.READ_1_1_1))

# Add ROM linker region --------------------------------------------------------------------
self.bus.add_region("rom", SoCRegion(
Expand Down

0 comments on commit 8df797c

Please sign in to comment.