aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorNitin Jain <nitin.jain@xilinx.com>2018-02-16 17:29:54 +0530
committerMichal Simek <michal.simek@xilinx.com>2018-04-09 12:14:50 +0200
commitb32e11a7158063c6cd773087a2b3b5736da0a273 (patch)
tree9b808952c91b6cf7474857852580bd524086c255 /drivers
parent969dd4c7dbdf722bdaa323d7b9e5e6a33bcd3c80 (diff)
downloadu-boot-b32e11a7158063c6cd773087a2b3b5736da0a273.zip
u-boot-b32e11a7158063c6cd773087a2b3b5736da0a273.tar.gz
u-boot-b32e11a7158063c6cd773087a2b3b5736da0a273.tar.bz2
fpga: zynqmp: Add support to get the PCAP status for fpga info command
This patch adds support for ZynqMP platform to print FPGA PCAP status for "fpga status" command. Signed-off-by: Nitin Jain <nitinj@xilinx.com> Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/fpga/zynqmppl.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/fpga/zynqmppl.c b/drivers/fpga/zynqmppl.c
index 57a4e6c..80388ae 100644
--- a/drivers/fpga/zynqmppl.c
+++ b/drivers/fpga/zynqmppl.c
@@ -224,6 +224,20 @@ static int zynqmp_load(xilinx_desc *desc, const void *buf, size_t bsize,
return ret;
}
+static int zynqmp_pcap_info(xilinx_desc *desc)
+{
+ int ret;
+ u32 ret_payload[PAYLOAD_ARG_CNT];
+
+ ret = invoke_smc(ZYNQMP_SIP_SVC_PM_FPGA_STATUS, 0, 0, 0,
+ 0, ret_payload);
+ if (!ret)
+ printf("PCAP status\t0x%x\n", ret_payload[1]);
+
+ return ret;
+}
+
struct xilinx_fpga_op zynqmp_op = {
.load = zynqmp_load,
+ .info = zynqmp_pcap_info,
};