diff options
author | Ezequiel Garcia <ezequiel.garcia@free-electrons.com> | 2013-11-14 18:25:28 -0300 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-01-03 11:22:12 -0800 |
commit | 776f265e279744e3f327ccd3e7eb378046311373 (patch) | |
tree | 545d7b8d0e0c225efdb0bc70fe59f066ab556760 /include/linux/platform_data | |
parent | 56704d857ac9a1044ec58cfe0ff95dc6bdbd9d58 (diff) | |
download | linux-stable-776f265e279744e3f327ccd3e7eb378046311373.tar.gz linux-stable-776f265e279744e3f327ccd3e7eb378046311373.tar.bz2 linux-stable-776f265e279744e3f327ccd3e7eb378046311373.zip |
mtd: nand: pxa3xx: Add bad block handling
Add support for flash-based bad block table using Marvell's
custom in-flash bad block table layout. The support is enabled
a 'flash_bbt' platform data or device tree parameter.
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Tested-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r-- | include/linux/platform_data/mtd-nand-pxa3xx.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/platform_data/mtd-nand-pxa3xx.h b/include/linux/platform_data/mtd-nand-pxa3xx.h index ffb801998e5d..a94147124929 100644 --- a/include/linux/platform_data/mtd-nand-pxa3xx.h +++ b/include/linux/platform_data/mtd-nand-pxa3xx.h @@ -55,6 +55,9 @@ struct pxa3xx_nand_platform_data { /* indicate how many chip selects will be used */ int num_cs; + /* use an flash-based bad block table */ + bool flash_bbt; + const struct mtd_partition *parts[NUM_CHIP_SELECT]; unsigned int nr_parts[NUM_CHIP_SELECT]; |