projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'u-boot-imx-20200825' of https://gitlab.denx.de/u-boot/custodians/u-boot-imx
[platform/kernel/u-boot.git]
/
drivers
/
fpga
/
versalpl.c
diff --git
a/drivers/fpga/versalpl.c
b/drivers/fpga/versalpl.c
index
6c69ab7
..
c44a7d3
100644
(file)
--- a/
drivers/fpga/versalpl.c
+++ b/
drivers/fpga/versalpl.c
@@
-6,10
+6,12
@@
#include <common.h>
#include <cpu_func.h>
#include <common.h>
#include <cpu_func.h>
+#include <log.h>
#include <asm/arch/sys_proto.h>
#include <memalign.h>
#include <versalpl.h>
#include <zynqmp_firmware.h>
#include <asm/arch/sys_proto.h>
#include <memalign.h>
#include <versalpl.h>
#include <zynqmp_firmware.h>
+#include <asm/cache.h>
static ulong versal_align_dma_buffer(ulong *buf, u32 len)
{
static ulong versal_align_dma_buffer(ulong *buf, u32 len)
{
@@
-30,7
+32,7
@@
static int versal_load(xilinx_desc *desc, const void *buf, size_t bsize,
ulong bin_buf;
int ret;
u32 buf_lo, buf_hi;
ulong bin_buf;
int ret;
u32 buf_lo, buf_hi;
- u32 ret_payload[
5
];
+ u32 ret_payload[
PAYLOAD_ARG_CNT
];
bin_buf = versal_align_dma_buffer((ulong *)buf, bsize);
bin_buf = versal_align_dma_buffer((ulong *)buf, bsize);
@@
-43,7
+45,7
@@
static int versal_load(xilinx_desc *desc, const void *buf, size_t bsize,
ret = xilinx_pm_request(VERSAL_PM_LOAD_PDI, VERSAL_PM_PDI_TYPE, buf_lo,
buf_hi, 0, ret_payload);
if (ret)
ret = xilinx_pm_request(VERSAL_PM_LOAD_PDI, VERSAL_PM_PDI_TYPE, buf_lo,
buf_hi, 0, ret_payload);
if (ret)
- p
uts("PL FPGA LOAD fail\n"
);
+ p
rintf("PL FPGA LOAD failed with err: 0x%08x\n", ret
);
return ret;
}
return ret;
}