u-boot-2016/drivers
Ben Gardiner 169d54d8b3 nand_util: drop trailing all-0xff pages if requested
Add a flag to nand_read_skip_bad() such that if true, any trailing
pages in an eraseblock whose contents are entirely 0xff will be
dropped.

The implementation is via a new drop_ffs() function which is
based on the function of the same name from the ubiformat
utility by Artem Bityutskiy.

This is as-per the reccomendations of the UBI FAQ [1]

[1] http://www.linux-mtd.infradead.org/doc/ubi.html#L_flasher_algo

Signed-off-by: Ben Gardiner <bengardiner@nanometrics.ca>
CC: Artem Bityutskiy <dedekind1@gmail.com>
Acked-by: Detlev Zundel <dzu@denx.de>
CC: Scott Wood <scottwood@freescale.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
2011-07-01 15:56:51 -05:00
..
bios_emulator Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
block mvsata: issue hard reset on initialization 2011-05-23 08:58:32 +02:00
dma Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
fpga add Xilinx_abort_fn to Xilinx_Spartan3_Slave_Serial_fns 2010-11-30 21:59:21 +01:00
gpio AT91: change includes from asm/arch/io.h to asm/io.h 2011-05-18 07:56:51 +02:00
hwmon hwmon: Extend lm63.c to support LM64 2011-05-12 23:01:34 +02:00
i2c I2C: Add driver for ST-Ericsson U8500 i2c 2011-06-01 19:22:47 +02:00
input Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
misc Minor coding style cleanup. 2011-05-19 22:22:44 +02:00
mmc S5P: add set_mmc_clk for external clock control 2011-05-26 19:33:09 +09:00
mtd nand_util: drop trailing all-0xff pages if requested 2011-07-01 15:56:51 -05:00
net macb: fix compile warning 2011-06-21 22:26:22 +02:00
pci IXP42x PCI rewrite 2011-06-23 08:25:18 +02:00
pcmcia Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
power ftpmu010: fix relocation and enhance features 2011-04-27 19:38:08 +02:00
qe fsl: Change fsl_phy_enet_if to phy_interface_t 2011-04-20 15:09:35 -05:00
rtc AT91: change includes from asm/arch/io.h to asm/io.h 2011-05-18 07:56:51 +02:00
serial Merge branch 'master' of git://git.denx.de/u-boot-arm 2011-06-23 15:37:33 +02:00
spi ATMEL spi_dataflash driver - fix to build again 2011-06-21 22:26:22 +02:00
twserial Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
usb usb: convert to partial linking 2011-06-25 09:53:10 +02:00
video powerpc: use 'video-mode' environment variable to configure DIU 2011-04-28 21:31:16 +02:00
watchdog AT91: fix at91sam_wdt.c to reworked header files 2011-05-18 07:56:51 +02:00