In case of #define DEBUG 1 (fordebugging SPL). A bug in
spl_nand_load_image() will be triggered, because it prints
using hw ecc regardless of soft ecc configurations and
initializations.
Signed-off-by: Ahmed Samir <engkhalil86@gmail.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
int *src __attribute__((unused));
int *dst __attribute__((unused));
+#ifdef CONFIG_SPL_NAND_SOFTECC
+ debug("spl: nand - using sw ecc\n");
+#else
debug("spl: nand - using hw ecc\n");
+#endif
nand_init();
/*use CONFIG_SYS_TEXT_BASE as temporary storage area */