u-boot/drivers/mtd
Ben Gardiner 4ba692fb1e mtd: add an mtd method for get_len_incl_bad()
The logic to 'spread' mtd partitions needs to calculate the length in
the mtd device, including bad blocks.

This patch introduces a new function, mtd_get_len_incl_bad that can
return both the length including bad blocks and whether that length
was truncated on the device. This new function will be used by the
mtdparts spread command later in this series. The definition of the
function is #ifdef'd out in configurations that do not use the new
'mtdparts spread' command.

Signed-off-by: Ben Gardiner<bengardiner@nanometrics.ca>
CC: Scott Wood <scottwood@freescale.com>
2010-10-11 15:11:00 -05:00
..
nand nand: remove dead code and suspend/resume 2010-10-11 15:10:35 -05:00
onenand ARMV7: S5P: rename from CONFIG_S5PC1XX to CONFIG_S5P 2010-08-26 17:33:23 +09:00
spi sf: spansion: add support for S25FL032P parts 2010-10-06 20:50:38 -04:00
ubi Fix "ubi part" cmd re-entrancy 2010-09-27 15:06:00 +02:00
at45.c drivers/mtd: Move conditional compilation to Makefile 2008-08-13 01:40:42 +02:00
cfi_flash.c cfi_flash: Simplify dynamic flash bank number detection 2010-09-20 15:08:51 +02:00
cfi_mtd.c cfi_flash: Remove uneccessary #ifdef CONFIG_SYS_MAX_FLASH_BANKS_DETECT 2010-09-20 15:09:00 +02:00
dataflash.c mtd/dataflash.c: fix a problem with the last partition 2008-12-02 21:53:24 +01:00
jedec_flash.c Support up to 7 banks for ids as specified in JEDEC JEP106Z 2009-08-26 08:58:27 +02:00
Makefile mod change 755 => 644 for multiple files 2010-03-21 22:22:53 +01:00
mtdconcat.c mtd: Add MTD concat support to concatenate multiple MTD NOR devices 2009-06-12 20:45:47 +02:00
mtdcore.c mtd: add an mtd method for get_len_incl_bad() 2010-10-11 15:11:00 -05:00
mtdpart.c nand: remove dead code and suspend/resume 2010-10-11 15:10:35 -05:00
mw_eeprom.c Update i386 code (sc520_cdp) 2008-09-09 11:48:53 +02:00
spr_smi.c mod change 755 => 644 for multiple files 2010-03-21 22:22:53 +01:00