aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-socfpga/include/mach/mailbox_s10.h
diff options
context:
space:
mode:
authorPaweł Anikiel2022-06-17 12:47:25 +0200
committerTien Fong Chee2022-07-01 14:57:14 +0800
commit5c53d9c0d955d046694e550e1c429fa509abb0c8 (patch)
tree7e99ca4fa54643bb05acbdc634fb1e669b8d19df /arch/arm/mach-socfpga/include/mach/mailbox_s10.h
parent8b1eee3730fc603fcacc5818b71a0e194bc55892 (diff)
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: Paweł Anikiel <pan@semihalf.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/arm/mach-socfpga/include/mach/mailbox_s10.h')
0 files changed, 0 insertions, 0 deletions