diff options
author | Stephan Gatzka <stephan.gatzka@hbm.com> | 2012-10-22 23:11:41 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2012-10-29 14:21:20 -0700 |
commit | a99c040c337753a7141263b36e91209f504191f1 (patch) | |
tree | cf54ea1e21c456aab5a20453b7ae8e4c911dcbdc | |
parent | 045fa1e1142552799ad3203e9e0bc22a11e866ea (diff) | |
download | u-boot-imx-a99c040c337753a7141263b36e91209f504191f1.zip u-boot-imx-a99c040c337753a7141263b36e91209f504191f1.tar.gz u-boot-imx-a99c040c337753a7141263b36e91209f504191f1.tar.bz2 |
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
enabled.
This is also already done on other FPGA's, e.g. Stratix.
Signed-off-by: Stephan Gatzka <stephan.gatzka@hbm.com>
Signed-off-by: Stefan Roese <sr@denx.de>
-rw-r--r-- | drivers/fpga/cyclon2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/fpga/cyclon2.c b/drivers/fpga/cyclon2.c index 26494a3..0773e73 100644 --- a/drivers/fpga/cyclon2.c +++ b/drivers/fpga/cyclon2.c @@ -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 */ + udelay(100); (*fn->config) (TRUE, TRUE, cookie); /* Assert nCONFIG */ udelay(2); /* T_cfg > 2us */ |