Hello Dear U-Boot support, Please comment on this also.
I have custom board with Altera Arria 5 SocFpga onboard. U-Boot version: 2016.03-rc1 I had probems with configuring fpga from u-boot: U-Boot > bridge disable U-Boot > run config_fpga FPGA: Could not configure Command failed, result=-2 So, fpga did not reached configuration state in certain timeout (FPGAMGRREGS_MODE_CFGPHASE). My workaround was based on U-Boot 2013 version were I had no such problem. I fixed it like this: diff --git a/drivers/fpga/socfpga.c b/drivers/fpga/socfpga.c index 431e159..423ee23 100644 --- a/drivers/fpga/socfpga.c +++ b/drivers/fpga/socfpga.c @@ -269,7 +269,11 @@ int socfpga_load(Altera_desc *desc, const void *rbf_data, size_t rbf_size) /* Prior programming the FPGA, all bridges need to be shut off */ /* Disable all signals from hps peripheral controller to fpga */ +#ifdef CONFIG_WORKAROUND + writel(0, &sysmgr_regs->fpgaintfgrp_module); +#else writel(0, &sysmgr_regs->fpgaintfgrp_gbl); +#endif Please evaluate my workaround. Maybe I had to make some additional step before configuring fpga? Best regards, Denis Bakhvalov _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot