Skip to content

Commit

Permalink
colorlight_i5: 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 35ba3d9 commit 5e8c29d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions litex_boards/targets/colorlight_i5.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ def __init__(self, board="i5", revision="7.0", sys_clk_freq=60e6, with_ethernet=
self.submodules.leds = LedChaser(pads=ledn, sys_clk_freq=sys_clk_freq)

# SPI Flash --------------------------------------------------------------------------------
self.add_spi_flash(mode="1x", dummy_cycles=8)
self.add_constant("SPIFLASH_PAGE_SIZE", 256)
self.add_constant("SPIFLASH_SECTOR_SIZE", 4096)
from litespi.modules import GD25Q16
from litespi.opcodes import SpiNorFlashOpCodes as Codes
self.add_spi_flash(mode="1x", module=GD25Q16(Codes.READ_1_1_1))

# SDR SDRAM --------------------------------------------------------------------------------
if not self.integrated_main_ram_size:
Expand Down

0 comments on commit 5e8c29d

Please sign in to comment.