summaryrefslogtreecommitdiff
path: root/common/spartan3.c
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2007-11-16 21:01:19 -0700
committerGrant Likely <grant.likely@secretlab.ca>2007-11-16 21:01:19 -0700
commitefe33035acd5f7c13963a4d52e5aac1b68612ae4 (patch)
tree37d6ccca1c82953ae4c41451cb3ec5fe53e2dc3c /common/spartan3.c
parent4d4faae65e115e327425cd514c1a35146a85166b (diff)
parent5947f6999aafa7c54c1390983d264a8463dfea8e (diff)
downloadu-boot-imx-efe33035acd5f7c13963a4d52e5aac1b68612ae4.zip
u-boot-imx-efe33035acd5f7c13963a4d52e5aac1b68612ae4.tar.gz
u-boot-imx-efe33035acd5f7c13963a4d52e5aac1b68612ae4.tar.bz2
Merge branch 'origin' into kconfig-for-1.3.1
Conflicts: drivers/Makefile
Diffstat (limited to 'common/spartan3.c')
-rw-r--r--common/spartan3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/spartan3.c b/common/spartan3.c
index c0f2b05..f7c4f8c 100644
--- a/common/spartan3.c
+++ b/common/spartan3.c
@@ -521,7 +521,7 @@ static int Spartan3_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 & 0x80), TRUE, cookie);
CONFIG_FPGA_DELAY ();
/* Assert the clock */
(*fn->clk) (TRUE, TRUE, cookie);