Re: [U-Boot] [PATCH] Common: SPL: spl_nand: Fixed debug correct NAND ECC type.

2016-03-25 Thread Tom Rini
On Fri, Mar 25, 2016 at 01:13:17PM +0100, Ahmed Samir Khalil wrote:

> 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 

Reviewed-by: Tom Rini 

-- 
Tom


signature.asc
Description: Digital signature
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] Common: SPL: spl_nand: Fixed debug correct NAND ECC type.

2016-03-25 Thread Ahmed Samir Khalil
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 
---
 common/spl/spl_nand.c | 4 
 1 file changed, 4 insertions(+)

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 */
-- 
2.5.0

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot