[U-Boot] [PATCH] armv8: ls1088a: Add nand support for ls1088ardb

Ashish Kumar Ashish.Kumar at nxp.com
Tue Nov 28 05:22:17 UTC 2017


Signed-off-by: Ashish Kumar <Ashish.Kumar at nxp.com>
---
The WIP mentioned in commit-id "e84a324ba7950e88c"
("armv8: ls1088ardb: Add support for LS1088ARDB platform")

This is not related to LS1088, it is related to IFC frame work.

Logs below:

NAND erase: device 0 offset 0x0, size 0xbd
Erasing at 0x0 -- 100% complete.
OK
=> nand write 0xa0000000 0 $filesize

NAND write: device 0 offset 0x0, size 0xbd
 189 bytes written: OK
=> nand read 80000000 0 4000

NAND read: device 0 offset 0x0, size 0x4000
 16384 bytes read: OK
=> md 80000000
80000000: aa55aa55 80100000 4000541c 00000040    U.U......T.@@...
80000010: 00000000 00000000 00000000 000a0000    ................
80000020: 00300000 00000000 00c01150 00002580    ..0.....P....%..
80000030: 00000000 00000040 00000c5b 00000001    .... at ...[.......
80000040: 00002403 00000000 00000000 00000000    .$..............
80000050: 00000000 00000000 00000000 00000000    ................
80000060: 00000000 00000000 00000000 00000000    ................
80000070: 00000011 000009e7 44110000 00009555    ...........DU...
80000080: 00000000 00000000 af72056d 80000040    ........m.r. at ...
80000090: 00100000 1800a000 00016000 31e00404    .........`.....1
800000a0: 00000000 31e00400 1800a000 32200000    .......1...... 2
800000b0: 00000000 808f0000 114ee8ec ffffff0a    ..........N.....
800000c0: ffffffff ffffffff ffffffff ffffffff    ................
800000f0: ffffffff ffffffff ffffffff ffffffff    ................
=> nand info

Device 0: nand0, sector size 128 KiB
  Page size       2048 b
  OOB size          64 b
  Erase size    131072 b
  subpagesize     2048 b
  options     0x40000200
  bbt options 0x00028000

 include/configs/ls1088ardb.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/configs/ls1088ardb.h b/include/configs/ls1088ardb.h
index ad5fd57..05ddb88 100644
--- a/include/configs/ls1088ardb.h
+++ b/include/configs/ls1088ardb.h
@@ -96,6 +96,7 @@
 #define CONFIG_SYS_FLASH_BANKS_LIST	{ CONFIG_SYS_FLASH_BASE }
 #endif
 #endif
+#define CONFIG_NAND_FSL_IFC
 #define CONFIG_SYS_NAND_MAX_ECCPOS	256
 #define CONFIG_SYS_NAND_MAX_OOBFREE	2
 
@@ -133,6 +134,7 @@
 #define CONFIG_SYS_NAND_BASE_LIST	{ CONFIG_SYS_NAND_BASE }
 #define CONFIG_SYS_MAX_NAND_DEVICE	1
 #define CONFIG_MTD_NAND_VERIFY_WRITE
+#define CONFIG_CMD_NAND
 
 #define CONFIG_SYS_NAND_BLOCK_SIZE	(128 * 1024)
 
-- 
2.7.4



More information about the U-Boot mailing list