Re: [U-Boot] [U-boot] Is there generic code to detect nand chip's ecc bits?

2014-04-18 Thread Scott Wood
On Thu, 2014-04-17 at 18:19 +0800, tiger...@via-alliance.com wrote: Hi, Scott: I have a question about nand chip’s ecc bits: Nand chip usually declared its ecc bits for each 512 bytes in its data sheet. Such as: Some nand chips required 4bit ECC for each 512 bytes. Some nand chips

[U-Boot] [U-boot] Is there generic code to detect nand chip's ecc bits?

2014-04-17 Thread TigerLiu
Hi, Scott: I have a question about nand chip's ecc bits: Nand chip usually declared its ecc bits for each 512 bytes in its data sheet. Such as: Some nand chips required 4bit ECC for each 512 bytes. Some nand chips required 2bit ECC for each 512 bytes. So, my question is: Could ecc bits