Commit 5db73feb1d3fd0130ce97626bfa75a4287b3380a
Committed by
Tom Rini
1 parent
1a1fa24066
Exists in
v2017.01-smarct4x
and in
34 other branches
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 <hs@denx.de>
Showing 1 changed file with 6 additions and 3 deletions Side-by-side Diff
common/cmd_nand.c
... | ... | @@ -394,9 +394,12 @@ |
394 | 394 | printf("%dx ", chip->numchips); |
395 | 395 | printf("%s, sector size %u KiB\n", |
396 | 396 | nand->name, nand->erasesize >> 10); |
397 | - printf(" Page size %8d b\n", nand->writesize); | |
398 | - printf(" OOB size %8d b\n", nand->oobsize); | |
399 | - printf(" Erase size %8d b\n", nand->erasesize); | |
397 | + printf(" Page size %8d b\n", nand->writesize); | |
398 | + printf(" OOB size %8d b\n", nand->oobsize); | |
399 | + printf(" Erase size %8d b\n", nand->erasesize); | |
400 | + printf(" subpagesize %8d b\n", chip->subpagesize); | |
401 | + printf(" options 0x%8x\n", chip->options); | |
402 | + printf(" bbt options 0x%8x\n", chip->bbt_options); | |
400 | 403 | |
401 | 404 | /* Set geometry info */ |
402 | 405 | setenv_hex("nand_writesize", nand->writesize); |