summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2008-11-11 10:29:09 +0100
committerScott Wood <scottwood@freescale.com>2009-01-23 10:32:46 -0600
commit8cf11f3aa78673730e9ecbbe4b75213b53f212c8 (patch)
tree8abc37ffa57cba7e374ec292a4d1fab481c265ec
parent4fca3310d611cc0f51d7295ef3557afbdbd91dc3 (diff)
downloadu-boot-imx-8cf11f3aa78673730e9ecbbe4b75213b53f212c8.zip
u-boot-imx-8cf11f3aa78673730e9ecbbe4b75213b53f212c8.tar.gz
u-boot-imx-8cf11f3aa78673730e9ecbbe4b75213b53f212c8.tar.bz2
OneNAND: Save version_id in onenand_chip struct
The version (ver_id) was not stored in the onenand_chip structure and because of this the continuous locking scheme could be enabled on some chips. Signed-off-by: Stefan Roese <sr@denx.de>
-rw-r--r--drivers/mtd/onenand/onenand_base.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c
index 8d004d3..f62b1aa 100644
--- a/drivers/mtd/onenand/onenand_base.c
+++ b/drivers/mtd/onenand/onenand_base.c
@@ -1970,6 +1970,7 @@ static int onenand_probe(struct mtd_info *mtd)
/* Flash device information */
mtd->name = onenand_print_device_info(dev_id, ver_id);
this->device_id = dev_id;
+ this->version_id = ver_id;
density = onenand_get_density(dev_id);
this->chipsize = (16 << density) << 20;