Re: [PATCH v2 10/11] socfpga: arria10: Wait for fifo empty after writing bitstream

2022-05-27 Thread Simon Glass
On Thu, 26 May 2022 at 07:38, Paweł Anikiel wrote: > > 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

[PATCH v2 10/11] socfpga: arria10: Wait for fifo empty after writing bitstream

2022-05-26 Thread Paweł Anikiel
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 be