Chromium: tegra: nand: Add NAND ECC support on data area

BootROM code supports ECC on data area.
Original u-boot code doesn't support NAND ECC function on data area.
This will cause data not the same after reading back in u-boot NAND function.

BUG=chrome-os-partner:3221
TEST=Ran the following in u-boot command console to see whether system is
bootable.

nand read 500000 0 500000
nand erase 0 500000
nand write 500000 0 500000
nand read 10000000 0 500000
cmp.b 500000 10000000 500000
check whether data bytes are same.
If yes, press RESET button to see whether system is bootable.

Change-Id: Id06fc58ed35dc0c17694b52aaf26ce1abd590260
Signed-off-by: Jim Lin <jilin@nvidia.com>
Reviewed-on: http://gerrit.chromium.org/gerrit/3853
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Warren <twarren@nvidia.com>
6 files changed