[U-Boot] [PATCH] mx28evk: add NAND commands

Eric Bénard eric at eukrea.com
Mon Apr 8 15:20:16 CEST 2013


the mx28evk has a socket which can contains a TSOP48 NAND flash.
So enable the nand command and it's trimffs option.

Tested on MX28EVK with NAND :
NAND:  128 MiB
MX28EVK U-Boot > nand info

Device 0: nand0, sector size 16 KiB
  Page size      2048 b
  OOB size         64 b
  Erase size    16384 b

and without NAND :
NAND:  No NAND device found!!!
0 MiB
MX28EVK U-Boot > nand info

MX28EVK U-Boot >

Signed-off-by: Eric Bénard <eric at eukrea.com>
---
 include/configs/mx28evk.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/configs/mx28evk.h b/include/configs/mx28evk.h
index 0d918a1..789d980 100644
--- a/include/configs/mx28evk.h
+++ b/include/configs/mx28evk.h
@@ -69,6 +69,8 @@
 #define CONFIG_CMD_USB
 #define CONFIG_CMD_BOOTZ
 #define CONFIG_CMD_I2C
+#define CONFIG_CMD_NAND
+#define CONFIG_CMD_NAND_TRIMFFS
 
 /*
  * Memory configurations
-- 
1.7.11.7



More information about the U-Boot mailing list