diff options
author | Heiko Schocher <hs@denx.de> | 2015-04-12 10:18:09 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-04-23 14:56:08 -0400 |
commit | 5db73feb1d3fd0130ce97626bfa75a4287b3380a (patch) | |
tree | 61e620280c4b54dc789ada4d42bb5b6f1d764f06 /common | |
parent | 1a1fa24066895dd4eca340c2c8fffd5f5df4d296 (diff) | |
download | u-boot-5db73feb1d3fd0130ce97626bfa75a4287b3380a.zip u-boot-5db73feb1d3fd0130ce97626bfa75a4287b3380a.tar.gz u-boot-5db73feb1d3fd0130ce97626bfa75a4287b3380a.tar.bz2 |
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>
Diffstat (limited to 'common')
-rw-r--r-- | common/cmd_nand.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/common/cmd_nand.c b/common/cmd_nand.c index 17fa7ea..9433c80 100644 --- a/common/cmd_nand.c +++ b/common/cmd_nand.c @@ -394,9 +394,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); |