18c2ecf20Sopenharmony_ci==================== 28c2ecf20Sopenharmony_ciS3C24XX NAND Support 38c2ecf20Sopenharmony_ci==================== 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ciIntroduction 68c2ecf20Sopenharmony_ci------------ 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ciSmall Page NAND 98c2ecf20Sopenharmony_ci--------------- 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ciThe driver uses a 512 byte (1 page) ECC code for this setup. The 128c2ecf20Sopenharmony_ciECC code is not directly compatible with the default kernel ECC 138c2ecf20Sopenharmony_cicode, so the driver enforces its own OOB layout and ECC parameters 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ciLarge Page NAND 168c2ecf20Sopenharmony_ci--------------- 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ciThe driver is capable of handling NAND flash with a 2KiB page 198c2ecf20Sopenharmony_cisize, with support for hardware ECC generation and correction. 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ciUnlike the 512byte page mode, the driver generates ECC data for 228c2ecf20Sopenharmony_cieach 256 byte block in an 2KiB page. This means that more than 238c2ecf20Sopenharmony_cione error in a page can be rectified. It also means that the 248c2ecf20Sopenharmony_ciOOB layout remains the default kernel layout for these flashes. 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ciDocument Author 288c2ecf20Sopenharmony_ci--------------- 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ciBen Dooks, Copyright 2007 Simtec Electronics 31