xref: /OK3568_Linux_fs/kernel/Documentation/arm/samsung-s3c24xx/nand.rst (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun====================
2*4882a593SmuzhiyunS3C24XX NAND Support
3*4882a593Smuzhiyun====================
4*4882a593Smuzhiyun
5*4882a593SmuzhiyunIntroduction
6*4882a593Smuzhiyun------------
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunSmall Page NAND
9*4882a593Smuzhiyun---------------
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunThe driver uses a 512 byte (1 page) ECC code for this setup. The
12*4882a593SmuzhiyunECC code is not directly compatible with the default kernel ECC
13*4882a593Smuzhiyuncode, so the driver enforces its own OOB layout and ECC parameters
14*4882a593Smuzhiyun
15*4882a593SmuzhiyunLarge Page NAND
16*4882a593Smuzhiyun---------------
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunThe driver is capable of handling NAND flash with a 2KiB page
19*4882a593Smuzhiyunsize, with support for hardware ECC generation and correction.
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunUnlike the 512byte page mode, the driver generates ECC data for
22*4882a593Smuzhiyuneach 256 byte block in an 2KiB page. This means that more than
23*4882a593Smuzhiyunone error in a page can be rectified. It also means that the
24*4882a593SmuzhiyunOOB layout remains the default kernel layout for these flashes.
25*4882a593Smuzhiyun
26*4882a593Smuzhiyun
27*4882a593SmuzhiyunDocument Author
28*4882a593Smuzhiyun---------------
29*4882a593Smuzhiyun
30*4882a593SmuzhiyunBen Dooks, Copyright 2007 Simtec Electronics
31