]> git.sur5r.net Git - u-boot/commit
nand: Add SPL_NAND support to mxc_nand_spl
authorMarek Vasut <marex@denx.de>
Sun, 21 Apr 2013 05:52:23 +0000 (05:52 +0000)
committerStefano Babic <sbabic@denx.de>
Sun, 5 May 2013 15:45:05 +0000 (17:45 +0200)
commit5c651e86ca6d88ae8016578f01fb4daf6d8d4fbc
tree90156fd21add2b97012cb211ad6c2b1c49de5fd5
parent895d996676b2d538657a5e058aa316a85237487c
nand: Add SPL_NAND support to mxc_nand_spl

Add support for generic NAND SPL via the SPL framework into the
mxc_nand_spl driver. This is basically just a simple rename and
publication of the already implemented functions. To avoid the
bare-bones functions getting in the way of the NAND_SPL, build
them only if CONFIG_SPL_FRAMEWORK is not defined.

Also make sure the requested payload is aligned to full pages,
otherwise this simple driver fails to load the last page.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Cc: Scott Wood <scottwood@freescale.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Tom Rini <trini@ti.com>
Acked-by: Scott Wood <scottwood@freescale.com>
drivers/mtd/nand/mxc_nand_spl.c