if (zynq_dma_transfer(srcaddr | 1, srclen, dstaddr | 1, dstlen))
return FPGA_FAIL;
- isr_status = readl(&devcfg_base->int_sts);
- /* Check FPGA configuration completion */
- ts = get_timer(0);
- while (!(isr_status & DEVCFG_ISR_PCFG_DONE)) {
- if (get_timer(ts) > CONFIG_SYS_FPGA_WAIT) {
- printf("%s: Timeout wait for FPGA to config\n",
- __func__);
- return FPGA_FAIL;
- }
+ if (bstype == BIT_FULL) {
isr_status = readl(&devcfg_base->int_sts);
+ /* Check FPGA configuration completion */
+ ts = get_timer(0);
+ while (!(isr_status & DEVCFG_ISR_PCFG_DONE)) {
+ if (get_timer(ts) > CONFIG_SYS_FPGA_WAIT) {
+ printf("%s: Timeout wait for FPGA to config\n",
+ __func__);
+ return FPGA_FAIL;
+ }
+ isr_status = readl(&devcfg_base->int_sts);
+ }
+ printf("%s: FPGA config done\n", __func__);
+ zynq_slcr_devcfg_enable();
}
- printf("%s: FPGA config done\n", __func__);
-
- zynq_slcr_devcfg_enable();
-
return FPGA_SUCCESS;
}
#endif