u-boot-brain/drivers/mtd/nand
Dirk Behme 9723bbb46a nand: Correct NAND erase percentage output
For NAND erase sizes smaller than one NAND erase block, erase
percentage output becomes grater than 100% e.g.

-- cut --
  > nand info
Device 0: NAND 64MiB 1,8V 8-bit, sector size 16 KiB
  > nand erase 0x100000 0x2000
NAND erase: device 0 offset 0x100000, size 0x2000
Erasing at 0x100000 -- 200% complete.
OK
  >
-- cut --

Correct this and give user a warning that more is erased than specified:

-- cut --
  > nand erase 0x100000 0x2000
NAND erase: device 0 offset 0x100000, size 0x2000
Warning: Erase size 0x00002000 smaller than one erase block 0x00004000
           Erasing 0x00004000 instead
Erasing at 0x100000 -- 100% complete.
OK
  >
-- cut --

Signed-off-by: Dirk Behme <dirk.behme@gmail.com>
2008-05-28 11:06:27 -05:00
..
diskonchip.c Big white-space cleanup. 2008-05-21 00:14:08 +02:00
fsl_upm.c nand: FSL UPM NAND driver 2008-01-16 14:14:40 +01:00
Makefile Big white-space cleanup. 2008-05-21 00:14:08 +02:00
nand_base.c Big white-space cleanup. 2008-05-21 00:14:08 +02:00
nand_bbt.c Big white-space cleanup. 2008-05-21 00:14:08 +02:00
nand_ecc.c drivers/mtd : move mtd drivers to drivers/mtd 2007-11-25 23:28:52 +01:00
nand_ids.c Big white-space cleanup. 2008-05-21 00:14:08 +02:00
nand_util.c nand: Correct NAND erase percentage output 2008-05-28 11:06:27 -05:00
nand.c drivers/mtd : move mtd drivers to drivers/mtd 2007-11-25 23:28:52 +01:00