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
Fix a bug in the slave serial programming mode for the Xilinx
[platform/kernel/u-boot.git]
/
common
/
spartan2.c
diff --git
a/common/spartan2.c
b/common/spartan2.c
index
0fb23b6
..
06550b9
100644
(file)
--- a/
common/spartan2.c
+++ b/
common/spartan2.c
@@
-516,7
+516,7
@@
static int Spartan2_ss_load (Xilinx_desc * desc, void *buf, size_t bsize)
(*fn->clk) (FALSE, TRUE, cookie);
CONFIG_FPGA_DELAY ();
/* Write data */
- (*fn->wr) ((val
<
0), TRUE, cookie);
+ (*fn->wr) ((val
& 0x8
0), TRUE, cookie);
CONFIG_FPGA_DELAY ();
/* Assert the clock */
(*fn->clk) (TRUE, TRUE, cookie);