diff options
| author | Ezequiel Garcia <ezequiel.garcia@free-electrons.com> | 2013-11-14 16:25:28 -0500 |
|---|---|---|
| committer | Brian Norris <computersforpeace@gmail.com> | 2014-01-03 14:22:12 -0500 |
| commit | 776f265e279744e3f327ccd3e7eb378046311373 (patch) | |
| tree | 545d7b8d0e0c225efdb0bc70fe59f066ab556760 /include/linux/platform_data | |
| parent | 56704d857ac9a1044ec58cfe0ff95dc6bdbd9d58 (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')
| -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 { | |||
| 55 | /* indicate how many chip selects will be used */ | 55 | /* indicate how many chip selects will be used */ |
| 56 | int num_cs; | 56 | int num_cs; |
| 57 | 57 | ||
| 58 | /* use an flash-based bad block table */ | ||
| 59 | bool flash_bbt; | ||
| 60 | |||
| 58 | const struct mtd_partition *parts[NUM_CHIP_SELECT]; | 61 | const struct mtd_partition *parts[NUM_CHIP_SELECT]; |
| 59 | unsigned int nr_parts[NUM_CHIP_SELECT]; | 62 | unsigned int nr_parts[NUM_CHIP_SELECT]; |
| 60 | 63 | ||
