提交 8122d216 编写于 作者: A Ahmed Samir Khalil 提交者: Tom Rini

Common: SPL: spl_nand: Fixed debug correct NAND ECC type.

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: NAhmed Samir <engkhalil86@gmail.com>
Reviewed-by: NTom Rini <trini@konsulko.com>
上级 f031f501
...@@ -44,7 +44,11 @@ int spl_nand_load_image(void) ...@@ -44,7 +44,11 @@ int spl_nand_load_image(void)
int *src __attribute__((unused)); int *src __attribute__((unused));
int *dst __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"); debug("spl: nand - using hw ecc\n");
#endif
nand_init(); nand_init();
/*use CONFIG_SYS_TEXT_BASE as temporary storage area */ /*use CONFIG_SYS_TEXT_BASE as temporary storage area */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册