]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Xilinx: ARM: fpga: Register the internal PL on DFE targets
authorJohn Linn <john.linn@xilinx.com>
Fri, 1 Jun 2012 21:42:47 +0000 (14:42 -0700)
committerJohn Linn <john.linn@xilinx.com>
Fri, 1 Jun 2012 21:42:47 +0000 (14:42 -0700)
If FPGA support is compiled into DFE targets, register the programmable
logic as an fpga target

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
board/xilinx/zynq_common/board.c

index 2acb0c2d4a78dc29fee017a07001b5e6c8e8d829..5529daa9ef06c3c28173f50ffd4bc76f0c410c5d 100644 (file)
@@ -4,6 +4,8 @@
 
 #include <common.h>
 #include <netdev.h>
+#include <xparameters.h>
+#include <zynqpl.h>
 #include "ps7_init_hw.h"
 #include "xparameters.h"
 
@@ -599,6 +601,10 @@ void from_burst_main(void)
 #endif
 }
 
+#ifdef CONFIG_FPGA
+Xilinx_desc fpga = XILINX_XC7Z020_DESC(0);
+#endif
+
 int board_init(void)
 {
        /* taken from burst, some DDR/MIO/Clock setup hacked in */
@@ -624,6 +630,11 @@ int board_init(void)
        init_nor_flash();
 #endif
 
+#ifdef CONFIG_FPGA
+       fpga_init();
+       fpga_add(fpga_xilinx, &fpga);
+#endif
+
        return 0;
 }