nand_spl_simple: store ecc data on the stack
authorStefano Babic <sbabic@denx.de>
Thu, 15 Dec 2011 09:55:37 +0000 (10:55 +0100)
committerScott Wood <scottwood@freescale.com>
Thu, 26 Jan 2012 22:06:21 +0000 (16:06 -0600)
commitd3022c5f5ce1bff39a58bce2b00b36f2fed0e299
treecd0b4e375139aefe779ea827bc52951c3e34051c
parent137703b811502dfea364650fb3e17f20b4c21333
nand_spl_simple: store ecc data on the stack

Currently nand_spl_simple puts it's temp data at 0x10000 offset in SDRAM
which is likely to contain already loaded data.
The patch saves the oob data and the ecc on the stack replacing
the fixed address in RAM.

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Ilya Yanok <yanok@emcraft.com>
CC: Scott Wood <scottwood@freescale.com>
CC: Tom Rini <tom.rini@gmail.com>
CC: Simon Schwarz <simonschwarzcor@googlemail.com>
CC: Wolfgang Denk <wd@denx.de>
Signed-off-by: Scott Wood <scottwood@freescale.com>
drivers/mtd/nand/nand_spl_simple.c
include/configs/am3517_crane.h
include/configs/am3517_evm.h
include/configs/devkit8000.h
include/configs/hawkboard.h
include/configs/omap3_beagle.h
include/configs/omap3_evm.h
include/configs/omap3_evm_quick_nand.h