diff options
author | Wu, Josh <Josh.wu@atmel.com> | 2013-07-04 15:36:23 +0800 |
---|---|---|
committer | Andreas Bießmann <andreas.devel@googlemail.com> | 2013-08-22 16:50:52 +0200 |
commit | a07d229497f9672d1212700d85ce719ecf63e2af (patch) | |
tree | 56741e1e2d2b1f53a1a4cb3e39874e1198560ae8 /include/spd_sdram.h | |
parent | ddd85974b1685f51e1f2cbf690136fb2e1a2bf16 (diff) | |
download | u-boot-imx-a07d229497f9672d1212700d85ce719ecf63e2af.zip u-boot-imx-a07d229497f9672d1212700d85ce719ecf63e2af.tar.gz u-boot-imx-a07d229497f9672d1212700d85ce719ecf63e2af.tar.bz2 |
ARM: at91: atmel_nand: add code to check the ONFI parameter ECC requirement
1. if CONFIG_SYS_NAND_ONFI_DETECTION is defined, driver will check NAND flash's
ecc minimum requirement in ONFI parameter.
a) if CONFIG_PMECC_CAP, CONFIG_PMECC_SECTOR_SIZE are defined. then use it.
Driver will display a WARNING if the values are different from ONFI
parameters.
b) if CONFIG_PMECC_CAP, CONFIG_PMECC_SECTOR_SIZE are not defined, then use
the value from ONFI parameters.
* If ONFI ECC parameters are in ONFI extended parameter page, since we
are not support it, so assume the minimum ecc requirement is 2 bits
in 512 bytes.
* For non-ONFI support nand flash, also assume the minimum ecc
requirement is 2 bits in 512 bytes.
2. if CONFIG_SYS_NAND_ONFI_DETECTION is not defined, just use CONFIG_PMECC_CAP
and CONFIG_PMECC_SECTOR_SIZE.
Signed-off-by: Josh Wu <josh.wu@atmel.com>
Acked-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Diffstat (limited to 'include/spd_sdram.h')
0 files changed, 0 insertions, 0 deletions