summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAhmed Samir Khalil <engkhalil86@gmail.com>2016-03-25 13:13:17 +0100
committerTom Rini <trini@konsulko.com>2016-04-01 17:17:42 -0400
commit8122d2161e07dd1af2d957ef82e3e8255a55a023 (patch)
tree22c52747499673955a0283c7ad9669ef427437a3
parentf031f501efa898ad1eac641cb27079dd6ded306a (diff)
downloadu-boot-imx-8122d2161e07dd1af2d957ef82e3e8255a55a023.zip
u-boot-imx-8122d2161e07dd1af2d957ef82e3e8255a55a023.tar.gz
u-boot-imx-8122d2161e07dd1af2d957ef82e3e8255a55a023.tar.bz2
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: Ahmed Samir <engkhalil86@gmail.com> Reviewed-by: Tom Rini <trini@konsulko.com>
-rw-r--r--common/spl/spl_nand.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/spl/spl_nand.c b/common/spl/spl_nand.c
index 3e2c074..79388ff 100644
--- a/common/spl/spl_nand.c
+++ b/common/spl/spl_nand.c
@@ -44,7 +44,11 @@ int spl_nand_load_image(void)
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 */