summaryrefslogtreecommitdiff
path: root/include/linux/platform_data/mtd-nand-pxa3xx.h
diff options
context:
space:
mode:
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>2013-11-14 18:25:28 -0300
committerBrian Norris <computersforpeace@gmail.com>2014-01-03 11:22:12 -0800
commit776f265e279744e3f327ccd3e7eb378046311373 (patch)
tree545d7b8d0e0c225efdb0bc70fe59f066ab556760 /include/linux/platform_data/mtd-nand-pxa3xx.h
parent56704d857ac9a1044ec58cfe0ff95dc6bdbd9d58 (diff)
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/mtd-nand-pxa3xx.h')
-rw-r--r--include/linux/platform_data/mtd-nand-pxa3xx.h3
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];