* [U-Boot] [PATCH] FPGA: Cyclon II: Correctly reset the FPGA before configuration
@ 2012-10-23 9:11 Stefan Roese
2012-10-29 22:56 ` Tom Rini
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Roese @ 2012-10-23 9:11 UTC (permalink / raw)
To: u-boot
From: Stephan Gatzka <stephan.gatzka@hbm.com>
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>
---
drivers/fpga/cyclon2.c | 2 ++
1 file changed, 2 insertions(+)
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 */
--
1.8.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] FPGA: Cyclon II: Correctly reset the FPGA before configuration
2012-10-23 9:11 [U-Boot] [PATCH] FPGA: Cyclon II: Correctly reset the FPGA before configuration Stefan Roese
@ 2012-10-29 22:56 ` Tom Rini
0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2012-10-29 22:56 UTC (permalink / raw)
To: u-boot
On Tue, Oct 23, 2012 at 11:11:41AM +0200, Stefan Roese wrote:
> From: Stephan Gatzka <stephan.gatzka@hbm.com>
>
> 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>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20121029/349a6066/attachment-0001.pgp>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-10-29 22:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-23 9:11 [U-Boot] [PATCH] FPGA: Cyclon II: Correctly reset the FPGA before configuration Stefan Roese
2012-10-29 22:56 ` Tom Rini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox