Commit a99c040c authored by Stephan Gatzka's avatar Stephan Gatzka Committed by Tom Rini

FPGA: Cyclon II: Correctly reset the FPGA before configuration

Deassert the CONFIG pin before asserting it again. This assures that the
FPGA will be resetted and therefore configuration will be correctly

This is also already done on other FPGA's, e.g. Stratix.
Signed-off-by: default avatarStephan Gatzka <>
Signed-off-by: default avatarStefan Roese <>
parent 045fa1e1
......@@ -144,6 +144,8 @@ static int CYC2_ps_load(Altera_desc *desc, const void *buf, size_t bsize)
/* Establish the initial state */
(*fn->config) (FALSE, TRUE, cookie); /* De-assert nCONFIG */
(*fn->config) (TRUE, TRUE, cookie); /* Assert nCONFIG */
udelay(2); /* T_cfg > 2us */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment