From c6a492fcbb05d901274051e78a8ef2a0bfe10e4c Mon Sep 17 00:00:00 2001 From: John Linn Date: Fri, 1 Jun 2012 14:42:47 -0700 Subject: [PATCH] Xilinx: ARM: fpga: Register the internal PL on DFE targets If FPGA support is compiled into DFE targets, register the programmable logic as an fpga target Signed-off-by: Joe Hershberger --- board/xilinx/zynq_common/board.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/board/xilinx/zynq_common/board.c b/board/xilinx/zynq_common/board.c index 2acb0c2d4a7..5529daa9ef0 100644 --- a/board/xilinx/zynq_common/board.c +++ b/board/xilinx/zynq_common/board.c @@ -4,6 +4,8 @@ #include #include +#include +#include #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; } -- 2.47.3