mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-12 13:35:21 -04:00
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>
This commit is contained in:
parent
4fca3310d6
commit
8cf11f3aa7
@ -1970,6 +1970,7 @@ static int onenand_probe(struct mtd_info *mtd)
|
|||||||
/* Flash device information */
|
/* Flash device information */
|
||||||
mtd->name = onenand_print_device_info(dev_id, ver_id);
|
mtd->name = onenand_print_device_info(dev_id, ver_id);
|
||||||
this->device_id = dev_id;
|
this->device_id = dev_id;
|
||||||
|
this->version_id = ver_id;
|
||||||
|
|
||||||
density = onenand_get_density(dev_id);
|
density = onenand_get_density(dev_id);
|
||||||
this->chipsize = (16 << density) << 20;
|
this->chipsize = (16 << density) << 20;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user