summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2007-01-06 13:11:52 +0100
committerStefan Roese <sr@denx.de>2007-01-06 13:11:52 +0100
commitaeeced147c2ca52fbc674a6a7bd66ab1d80f245c (patch)
treec433290737f14b6c547443ad094d0519dbfa8bbf /drivers
parent86cb03ac70863196de04c9adace0b43f7fee4434 (diff)
parentcd1d937f90250a32988c37b2b4af8364d25de8ed (diff)
downloadu-boot-imx-aeeced147c2ca52fbc674a6a7bd66ab1d80f245c.zip
u-boot-imx-aeeced147c2ca52fbc674a6a7bd66ab1d80f245c.tar.gz
u-boot-imx-aeeced147c2ca52fbc674a6a7bd66ab1d80f245c.tar.bz2
Merge with git+ssh://sr@pollux.denx.org/home/sr/git/u-boot/denx/.git
Diffstat (limited to 'drivers')
-rw-r--r--drivers/nand/nand_base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nand/nand_base.c b/drivers/nand/nand_base.c
index 7fdf57b..8495829 100644
--- a/drivers/nand/nand_base.c
+++ b/drivers/nand/nand_base.c
@@ -2338,7 +2338,7 @@ int nand_scan (struct mtd_info *mtd, int maxchips)
mtd->oobblock = 1024 << (extid & 0x3);
extid >>= 2;
/* Calc oobsize */
- mtd->oobsize = (8 << (extid & 0x03)) * (mtd->oobblock / 512);
+ mtd->oobsize = (8 << (extid & 0x01)) * (mtd->oobblock / 512);
extid >>= 2;
/* Calc blocksize. Blocksize is multiples of 64KiB */
mtd->erasesize = (64 * 1024) << (extid & 0x03);