mirror of
https://github.com/linux-msm/openocd.git
synced 2026-02-25 13:15:07 -08:00
Improve NAND flash detection
Detect based on both manufacturer id and chip id if manufacturer id is defined in table
This commit is contained in:
committed by
Øyvind Harboe
parent
acdf14eb43
commit
db91a36fdd
@@ -367,7 +367,9 @@ int nand_probe(struct nand_device *nand)
|
||||
|
||||
for (i = 0; nand_flash_ids[i].name; i++)
|
||||
{
|
||||
if (nand_flash_ids[i].id == device_id)
|
||||
if (nand_flash_ids[i].id == device_id &&
|
||||
(nand_flash_ids[i].mfr_id == manufacturer_id ||
|
||||
nand_flash_ids[i].mfr_id == 0 ))
|
||||
{
|
||||
nand->device = &nand_flash_ids[i];
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user