Lines Matching +full:timeout +full:- +full:active +full:- +full:ms
1 // SPDX-License-Identifier: GPL-2.0+
30 * file and add board-specific support for checking BUSY status. By default,
60 * The default timeout in mS for INIT_B to deassert after PROG_B has
64 * which yields 11.44 mS. So let's make it bigger in order to handle
68 #define CONFIG_SYS_FPGA_WAIT_INIT CONFIG_SYS_HZ/2 /* 500 ms */
72 * The default timeout for waiting for BUSY to deassert during configuration.
77 #define CONFIG_SYS_FPGA_WAIT_BUSY CONFIG_SYS_HZ/200 /* 5 ms*/
80 /* Default timeout for waiting for FPGA to enter operational mode after
84 #define CONFIG_SYS_FPGA_WAIT_CONFIG CONFIG_SYS_HZ/5 /* 200 ms */
98 switch (desc->iface) { in virtex2_load()
111 __FUNCTION__, desc->iface); in virtex2_load()
120 switch (desc->iface) { in virtex2_dump()
133 __FUNCTION__, desc->iface); in virtex2_dump()
144 * Virtex-II Slave SelectMap configuration loader. Configuration via
160 xilinx_virtex2_slave_selectmap_fns *fn = desc->iface_fns; in virtex2_ssm_load()
168 int cookie = desc->cookie; in virtex2_ssm_load()
180 &fn, fn, fn->pre, fn->pgm, fn->init, fn->err); in virtex2_ssm_load()
189 fn->clk, fn->cs, fn->wr, fn->rdata, fn->wdata, in virtex2_ssm_load()
190 fn->busy, fn->abort, fn->post); in virtex2_ssm_load()
198 if (*fn->pre) { in virtex2_ssm_load()
199 (*fn->pre) (cookie); in virtex2_ssm_load()
208 (*fn->pgm) (true, true, cookie); in virtex2_ssm_load()
213 printf ("%s:%d: ** Timeout after %d ticks waiting for INIT" in virtex2_ssm_load()
216 (*fn->abort) (cookie); in virtex2_ssm_load()
219 } while (!(*fn->init) (cookie)); in virtex2_ssm_load()
221 (*fn->pgm) (false, true, cookie); in virtex2_ssm_load()
223 (*fn->clk) (true, true, cookie); in virtex2_ssm_load()
232 printf ("%s:%d: ** Timeout after %d ticks waiting for INIT" in virtex2_ssm_load()
235 (*fn->abort) (cookie); in virtex2_ssm_load()
238 } while ((*fn->init) (cookie) && (*fn->busy) (cookie)); in virtex2_ssm_load()
240 (*fn->wr) (true, true, cookie); in virtex2_ssm_load()
241 (*fn->cs) (true, true, cookie); in virtex2_ssm_load()
251 (*fn->abort) (cookie); in virtex2_ssm_load()
256 if ((*fn->done) (cookie) == FPGA_SUCCESS) { in virtex2_ssm_load()
257 PRINTF ("%s:%d:done went active early, bytecount = %d\n", in virtex2_ssm_load()
263 if ((*fn->init) (cookie)) { in virtex2_ssm_load()
268 (*fn->abort) (cookie); in virtex2_ssm_load()
273 (*fn->wdata) (data[bytecount++], true, cookie); in virtex2_ssm_load()
279 (*fn->clk) (false, true, cookie); in virtex2_ssm_load()
281 (*fn->clk) (true, true, cookie); in virtex2_ssm_load()
285 while ((*fn->busy) (cookie)) { in virtex2_ssm_load()
287 printf ("%s:%d: ** Timeout after %d ticks waiting for" in virtex2_ssm_load()
290 (*fn->abort) (cookie); in virtex2_ssm_load()
306 (*fn->cs) (false, true, cookie); in virtex2_ssm_load()
307 (*fn->wr) (false, true, cookie); in virtex2_ssm_load()
319 while (((*fn->done) (cookie) == FPGA_FAIL) || (*fn->init) (cookie)) { in virtex2_ssm_load()
321 printf ("%s:%d: ** Timeout after %d ticks waiting for DONE to" in virtex2_ssm_load()
324 (*fn->abort) (cookie); in virtex2_ssm_load()
337 if (*fn->post) { in virtex2_ssm_load()
338 (*fn->post) (cookie); in virtex2_ssm_load()
359 xilinx_virtex2_slave_selectmap_fns *fn = desc->iface_fns; in virtex2_ssm_dump()
364 int cookie = desc->cookie; in virtex2_ssm_dump()
368 (*fn->cs) (true, true, cookie); in virtex2_ssm_dump()
369 (*fn->clk) (true, true, cookie); in virtex2_ssm_dump()
374 (*fn->abort) (cookie); in virtex2_ssm_dump()
381 (*fn->clk) (false, true, cookie); in virtex2_ssm_dump()
382 (*fn->clk) (true, true, cookie); in virtex2_ssm_dump()
383 (*fn->rdata) (&(data[bytecount++]), cookie); in virtex2_ssm_dump()
393 (*fn->cs) (false, false, cookie); in virtex2_ssm_dump()
394 (*fn->clk) (false, true, cookie); in virtex2_ssm_dump()
395 (*fn->clk) (true, true, cookie); in virtex2_ssm_dump()