From 5ed45505a40b3b03f8505091e42dab7f344ff60f Mon Sep 17 00:00:00 2001 From: Siva Durga Prasad Paladugu Date: Wed, 13 Jan 2016 16:25:38 +0530 Subject: [PATCH] fpga: zynqmp: Enable PL bitstream loading support Enable PL bitstream loading support for ZynqMP Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- board/xilinx/zynqmp/zynqmp.c | 11 +++++++++++ configs/xilinx_zynqmp_ep_defconfig | 1 - include/configs/xilinx_zynqmp.h | 4 ++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c index 47c5d2599fd..576e4a46ef0 100644 --- a/board/xilinx/zynqmp/zynqmp.c +++ b/board/xilinx/zynqmp/zynqmp.c @@ -15,13 +15,24 @@ #include #include #include +#include DECLARE_GLOBAL_DATA_PTR; +#if defined(CONFIG_FPGA) && defined(CONFIG_FPGA_ZYNQMPPL) +static xilinx_desc zynqmppl = XILINX_ZYNQMP_DESC; +#endif + int board_init(void) { printf("EL Level:\tEL%d\n", current_el()); +#if defined(CONFIG_FPGA) && defined(CONFIG_FPGA_ZYNQMPPL) + fpga_init(); + /* FIXME FPGA size/id will be handled via SMCs */ + fpga_add(fpga_xilinx, &zynqmppl); +#endif + return 0; } diff --git a/configs/xilinx_zynqmp_ep_defconfig b/configs/xilinx_zynqmp_ep_defconfig index 952d75b5aea..b06f38f95ef 100644 --- a/configs/xilinx_zynqmp_ep_defconfig +++ b/configs/xilinx_zynqmp_ep_defconfig @@ -15,7 +15,6 @@ CONFIG_SYS_PROMPT="ZynqMP> " # CONFIG_CMD_ENV_EXISTS is not set # CONFIG_CMD_LOADB is not set # CONFIG_CMD_LOADS is not set -# CONFIG_CMD_FPGA is not set # CONFIG_CMD_ITEST is not set # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_TFTPPUT=y diff --git a/include/configs/xilinx_zynqmp.h b/include/configs/xilinx_zynqmp.h index 763ec5f1a2d..8da7f74b937 100644 --- a/include/configs/xilinx_zynqmp.h +++ b/include/configs/xilinx_zynqmp.h @@ -288,6 +288,10 @@ #define CONFIG_ARM_SMC +#define CONFIG_FPGA_ZYNQMPPL +#define CONFIG_FPGA_XILINX +#define CONFIG_FPGA + #define CONFIG_SYS_BOOTM_LEN (60 * 1024 * 1024) #define CONFIG_CMD_BOOTI -- 2.47.3