Skip to content
Commit 5c53d9c0 authored by Paweł Anikiel's avatar Paweł Anikiel Committed by Tien Fong Chee
Browse files

socfpga: arria10: Wait for fifo empty after writing bitstream



For some reason, on the Mercury+ AA1 module, calling
fpgamgr_wait_early_user_mode immediately after writing the peripheral
bitstream leaves the fpga in a broken state (ddr calibration hangs).
Adding a delay before the first sync word is written seems to fix this.
Inspecting the fpgamgr registers before and after the delay,
imgcfg_FifoEmpty is the only bit that changes. Waiting for this bit
(instead of a hardcoded delay) also fixes the issue.

Signed-off-by: default avatarPaweł Anikiel <pan@semihalf.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent 8b1eee37
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment