projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec4b73f
)
fpga: zynqpl: Do not place bitstream below 1MB
author
Michal Simek
<
[email protected]
>
Fri, 4 Oct 2013 08:48:59 +0000
(10:48 +0200)
committer
Michal Simek
<
[email protected]
>
Wed, 6 Nov 2013 08:15:12 +0000
(09:15 +0100)
DMA doesn't work when src is placed below 1MB limit.
Signed-off-by: Michal Simek <
[email protected]
>
Acked-by: Jagannadha Sutradharudu Teki <
[email protected]
>
drivers/fpga/zynqpl.c
patch
|
blob
|
history
diff --git
a/drivers/fpga/zynqpl.c
b/drivers/fpga/zynqpl.c
index f2f49b56a6a0614337be35155468a4fa148d9360..1effbadda90f9dee4374020063428bddef54bf6e 100644
(file)
--- a/
drivers/fpga/zynqpl.c
+++ b/
drivers/fpga/zynqpl.c
@@
-10,6
+10,7
@@
#include <common.h>
#include <asm/io.h>
#include <zynqpl.h>
+#include <asm/sizes.h>
#include <asm/arch/hardware.h>
#include <asm/arch/sys_proto.h>
@@
-177,6
+178,12
@@
int zynq_load(Xilinx_desc *desc, const void *buf, size_t bsize)
return FPGA_FAIL;
}
+ if ((u32)buf < SZ_1M) {
+ printf("%s: Bitstream has to be placed up to 1MB (%x)\n",
+ __func__, (u32)buf);
+ return FPGA_FAIL;
+ }
+
if ((u32)buf != ALIGN((u32)buf, ARCH_DMA_MINALIGN)) {
u32 *new_buf = (u32 *)ALIGN((u32)buf, ARCH_DMA_MINALIGN);