Commit db91a36f authored by Damjan Marion's avatar Damjan Marion Committed by Øyvind Harboe
Browse files

Improve NAND flash detection

Detect based on both manufacturer id and chip id
if manufacturer id is defined in table
parent acdf14eb
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment