]> git.sur5r.net Git - u-boot/commitdiff
hawkboard: Fix SPL Nand driver misconfiguration
authorLinu Cherian <linucherian@gmail.com>
Thu, 26 Jul 2012 22:21:53 +0000 (22:21 +0000)
committerWolfgang Denk <wd@denx.de>
Mon, 30 Jul 2012 18:22:42 +0000 (20:22 +0200)
Hawkboard was using the wrong nand_read_page version for SPL image.
As a side effect, the u-boot image loaded by the SPL from nand
was getting corrupted.

Enable CONFIG_SYS_NAND_HW_ECC_OOBFIRST to select the correct nand_read_page
algorithm for SPL.

Signed-off-by: Linu Cherian <linucherian@gmail.com>
Acked-by: Sughosh Ganu <urwithsughosh@gmail.com>
Acked-by: Tom Rini <trini@ti.com>
include/configs/hawkboard.h

index c6e8859f63a78b6e545ea63b6892b147b0592489..c6e9ce557662eeabf521d548ab1656aace0f1c9f 100644 (file)
 #define CONFIG_SYS_NAND_USE_FLASH_BBT
 #define CONFIG_NAND_DAVINCI
 #define CONFIG_SYS_NAND_4BIT_HW_ECC_OOBFIRST
+#define CONFIG_SYS_NAND_HW_ECC_OOBFIRST /* SPL nand driver configuration */
 #define CFG_DAVINCI_STD_NAND_LAYOUT
 #define CONFIG_SYS_NAND_CS             3
 #define CONFIG_SYS_NAND_PAGE_2K