summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Klotzbücher <Markus Klotzbümk@pollux.denx.de>2006-03-02 12:10:01 +0100
committerMarkus Klotzbücher <mk@pollux.denx.de>2006-03-02 12:10:01 +0100
commitbb1ff049fbac1a4edf8f0655071383e3837d337e (patch)
tree6dd817ede83a4ff053e01e262f0a1cc30ae0be44
parent481911c78c7aebd3a007c4e246e928e7f6a0f051 (diff)
downloadu-boot-imx-bb1ff049fbac1a4edf8f0655071383e3837d337e.zip
u-boot-imx-bb1ff049fbac1a4edf8f0655071383e3837d337e.tar.gz
u-boot-imx-bb1ff049fbac1a4edf8f0655071383e3837d337e.tar.bz2
Read bug fixed. Now "nand bad" list the badblocks correctly (i hope, since
there are 0)
-rw-r--r--board/delta/nand.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/board/delta/nand.c b/board/delta/nand.c
index 7255827..50d2ec2 100644
--- a/board/delta/nand.c
+++ b/board/delta/nand.c
@@ -69,8 +69,11 @@ static void delta_read_buf(struct mtd_info *mtd, u_char* const buf, int len)
/* if there are any, first copy multiple of 4 bytes */
if(num_words) {
- for(i=0; i<num_words; i+=4)
- buf[i] = NDDB;
+ for(i=0; i<num_words; i+=4) {
+ unsigned long *long_buf = &buf[i];
+/* ((unsigned long *) &buf[i]) = NDDB; */
+ *long_buf = NDDB;
+ }
}
/* ...then the rest */