mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-09-23 23:01:28 +02:00
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>
This commit is contained in:
parent
1a1fa24066
commit
5db73feb1d
@ -397,6 +397,9 @@ static void nand_print_and_set_info(int idx)
|
|||||||
printf(" Page size %8d b\n", nand->writesize);
|
printf(" Page size %8d b\n", nand->writesize);
|
||||||
printf(" OOB size %8d b\n", nand->oobsize);
|
printf(" OOB size %8d b\n", nand->oobsize);
|
||||||
printf(" Erase size %8d b\n", nand->erasesize);
|
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 */
|
/* Set geometry info */
|
||||||
setenv_hex("nand_writesize", nand->writesize);
|
setenv_hex("nand_writesize", nand->writesize);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user