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>
#include <common.h>
#include <netdev.h>
+#include <xparameters.h>
+#include <zynqpl.h>
#include "ps7_init_hw.h"
#include "xparameters.h"
#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 */
init_nor_flash();
#endif
+#ifdef CONFIG_FPGA
+ fpga_init();
+ fpga_add(fpga_xilinx, &fpga);
+#endif
+
return 0;
}