From 1829693877a9baf5430d10461b36b593e175e421 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 26 Nov 2021 16:18:52 +0100 Subject: [PATCH] fairwaves_xtrx: Integrate ICAP/SPIFlash (for update over PCIe). --- litex_boards/targets/fairwaves_xtrx.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/litex_boards/targets/fairwaves_xtrx.py b/litex_boards/targets/fairwaves_xtrx.py index 0d2f069..a82190c 100755 --- a/litex_boards/targets/fairwaves_xtrx.py +++ b/litex_boards/targets/fairwaves_xtrx.py @@ -84,6 +84,19 @@ class BaseSoC(SoCCore): bar0_size = 0x20000) self.add_pcie(phy=self.pcie_phy, ndmas=1) + # ICAP (For FPGA reload over PCIe). + from litex.soc.cores.icap import ICAP + self.submodules.icap = ICAP() + self.icap.add_reload() + self.icap.add_timing_constraints(platform, sys_clk_freq, self.crg.cd_sys.clk) + + # Flash (For SPIFlash update over PCIe). FIXME: Should probably be updated to use SpiFlashSingle/SpiFlashDualQuad (so MMAPed and do the update with bit-banging) + from litex.soc.cores.gpio import GPIOOut + from litex.soc.cores.spi_flash import S7SPIFlash + self.submodules.flash_cs_n = GPIOOut(platform.request("flash_cs_n")) + self.submodules.flash = S7SPIFlash(platform.request("flash"), sys_clk_freq, 25e6) + + # Leds ------------------------------------------------------------------------------------- if with_led_chaser: self.submodules.leds = LedChaser(