diff options
author | Stefan Agner <stefan@agner.ch> | 2015-05-08 17:07:09 (GMT) |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2015-05-24 19:26:55 (GMT) |
commit | 5dec286b8233f658764497b10d455ba447167816 (patch) | |
tree | 6283be97293cffea9199a30ab5a35a422daa5779 /drivers/mmc | |
parent | d111bf99a81feacd3876010984a28575964ff0dc (diff) | |
download | u-boot-5dec286b8233f658764497b10d455ba447167816.tar.xz |
mtd: vf610_nfc: implement OOB only read
Implement read of OOB area only. When using column and sector size
properties, only parts of the page can be read. However, this works
only when hardware ECC is disabled, otherwise the ECC engine would
ruin the data in the buffer. To allow OOB only reads, three points
had to be addressed:
- Set ECC mode per command.
- Handle NAND_CMD_READOOB seperate. Make sure column and sector
size is correctly set up, while disabling ECC.
- Now, the OOB data end up at the beginning of the buffer. Remove
the special handling of OOB (spareonly).
Especially bad block scans benefit from this change. On a 512MiB
SLC NAND device, the bad block scan took 1.5s less than before.
Signed-off-by: Stefan Agner <stefan@agner.ch>
Diffstat (limited to 'drivers/mmc')
0 files changed, 0 insertions, 0 deletions