cmd, nand: add more info to "nand info"
PATCH 1/1 cmd, nand: add more info to "nand info"
add subpagesize, nand options and bbt options to the "nand info" output.
=> nand info
Device 0: nand0, sector size 256 KiB
Page size 4096 b
OOB size 256 b
Erase size 262144 b
subpagesize 4096 b
options 0x 200
bbt options 0x 8000
Signed-off-by Heiko Schocher <[email protected]>
---
common/cmd_nand.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
common/cmd_nand.c +6 -3
@@ -290,9 +290,12 @@ static void nand_print_and_set_info(int idx)printf ("%dx " , chip->numchips);printf ("%s, sector size %u KiB\n" , nand->name, nand->erasesize >>10 ); -printf (" Page size %8d b\n" , nand->writesize); -printf (" OOB size %8d b\n" , nand->oobsize); -printf (" Erase size %8d b\n" , nand->erasesize); +printf (" Page size %8d b\n" , nand->writesize); +printf (" OOB size %8d b\n" , nand->oobsize); +printf (" Erase size %8d b\n" , nand->erasesize); +printf (" subpagesize %8d b\n" , chip->subpagesize); +printf (" options 0x%8x\n" , chip->options); +printf (" bbt options 0x%8x\n" , chip->bbt_options);/* Set geometry info */ setenv_hex ("nand_writesize" , nand->writesize);
Signature · 1 line
2.1.0
Quoted 13 lines · Heiko Schocher
add subpagesize, nand options and bbt options to the "nand info" output.
=> nand info
Device 0: nand0, sector size 256 KiB
Page size 4096 b
OOB size 256 b
Erase size 262144 b
subpagesize 4096 b
options 0x 200
bbt options 0x 8000
Quoted 1 line
Signed-off-by Heiko Schocher <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150423/78b885ba/attachment.sig>