1
0
mirror of https://github.com/antonblanchard/microwatt.git synced 2026-02-23 15:42:05 +00:00
Files
antonblanchard.microwatt/spi_flash_ctrl.vhdl
Benjamin Herrenschmidt 3c2739e10a spi: Send dummy clocks at boot
When using an FPGA which routes the SPI clock via STARTUPE2 as is
done on the Nexys Video (or optionally on Arty), the HW needs at
least 3 beats of that clock to complete the switch from the internal
config clock to the one we provide.

This works around it by having the SPI controller send 8 dummy
clocks at boot time with CS held high.

Without this, flash identification will fail those boards

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2020-07-08 16:41:52 +10:00

23 KiB