Linux下的nandflash驱动分析(2)——基于S2C6410平台(二)

2014-11-24 12:31:39 · 作者: · 浏览: 8
_maf_id != chip->read_byte(mtd) ||
type->id != chip->read_byte(mtd))
break;
}
if (i > 1)
printk(KERN_INFO "%d NAND chips detected\n", i);


/* Store the number of chips and calc total size for mtd */
chip->numchips = i;
mtd->size = i * chip->chipsize;


return 0;
}


3、nand_scan_tail函数:源码如下:


/**
* nand_scan_tail - [NAND Interface] Scan for the NAND device
*/