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

TigerLiu at via-alliance.com TigerLiu at via-alliance.com
Thu Apr 17 12:19:41 CEST 2014


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 be got from nand chip's flash id?

Or other generic method to retrieve ECC bits required for every nand
chip?

 

Best wishes,



More information about the U-Boot mailing list