Patchwork [U-Boot,2/7] fpga: support FPP Cyclone configuration

login
register
mail settings
Submitter Michael Jones
Date July 15, 2011, 9:09 a.m.
Message ID <1310720986-5474-3-git-send-email-michael.jones@matrix-vision.de>
Download mbox | patch
Permalink /patch/104766/
State Accepted
Commit ee44fb298dd9270aa64bb2cb5a93a43f6a85d70e
Headers show

Comments

Michael Jones - July 15, 2011, 9:09 a.m.
Support FPGAs which use Fast Passive Parallel configuration

Signed-off-by: Michael Jones <michael.jones@matrix-vision.de>
---
 drivers/fpga/cyclon2.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
Wolfgang Denk - July 28, 2011, 2:47 p.m.
Dear Michael Jones,

In message <1310720986-5474-3-git-send-email-michael.jones@matrix-vision.de> you wrote:
> Support FPGAs which use Fast Passive Parallel configuration
> 
> Signed-off-by: Michael Jones <michael.jones@matrix-vision.de>
> ---
>  drivers/fpga/cyclon2.c |   10 ++++++++++
>  1 files changed, 10 insertions(+), 0 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Patch

diff --git a/drivers/fpga/cyclon2.c b/drivers/fpga/cyclon2.c
index 4622b4e..567099e 100644
--- a/drivers/fpga/cyclon2.c
+++ b/drivers/fpga/cyclon2.c
@@ -63,6 +63,16 @@  int CYC2_load (Altera_desc * desc, void *buf, size_t bsize)
 		ret_val = CYC2_ps_load (desc, buf, bsize);
 		break;
 
+	case fast_passive_parallel:
+		/* Fast Passive Parallel (FPP) and PS only differ in what is
+		 * done in the write() callback. Use the existing PS load
+		 * function for FPP, too.
+		 */
+		PRINTF ("%s: Launching Fast Passive Parallel Loader\n",
+		      __FUNCTION__);
+		ret_val = CYC2_ps_load(desc, buf, bsize);
+		break;
+
 		/* Add new interface types here */
 
 	default: