mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-27 16:01:27 +00:00
cmd: nand: Extend nand info to print ecc information
Extract the information about ecc strength and ecc step size from mtd controller. This information is usefull to check if what we think as ecc is what we really configured. Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com> Reviewed-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> Link: https://lore.kernel.org/all/20220922133937.277463-1-michael@amarulasolutions.com Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
This commit is contained in:
parent
8f17040877
commit
308bd74663
1 changed files with 8 additions and 6 deletions
|
@ -420,6 +420,8 @@ static void nand_print_and_set_info(int idx)
|
||||||
printf(" Page size %8d b\n", mtd->writesize);
|
printf(" Page size %8d b\n", mtd->writesize);
|
||||||
printf(" OOB size %8d b\n", mtd->oobsize);
|
printf(" OOB size %8d b\n", mtd->oobsize);
|
||||||
printf(" Erase size %8d b\n", mtd->erasesize);
|
printf(" Erase size %8d b\n", mtd->erasesize);
|
||||||
|
printf(" ecc strength %8d bits\n", mtd->ecc_strength);
|
||||||
|
printf(" ecc step size %8d b\n", mtd->ecc_step_size);
|
||||||
printf(" subpagesize %8d b\n", chip->subpagesize);
|
printf(" subpagesize %8d b\n", chip->subpagesize);
|
||||||
printf(" options 0x%08x\n", chip->options);
|
printf(" options 0x%08x\n", chip->options);
|
||||||
printf(" bbt options 0x%08x\n", chip->bbt_options);
|
printf(" bbt options 0x%08x\n", chip->bbt_options);
|
||||||
|
|
Loading…
Add table
Reference in a new issue