diff options
author | Ezequiel Garcia <ezequiel.garcia@free-electrons.com> | 2014-05-14 14:58:08 -0300 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-05-21 12:55:09 -0700 |
commit | 5b3e507820c6e120bc2680c0d35f9d9d81fcb98d (patch) | |
tree | 77cbc581cbdf88e0d91bb16e477718a5dce2b3d5 /include/linux/platform_data/mtd-nand-pxa3xx.h | |
parent | eee0166d8ead9d719d794df3e66acd8f83630e05 (diff) | |
download | op-kernel-dev-5b3e507820c6e120bc2680c0d35f9d9d81fcb98d.zip op-kernel-dev-5b3e507820c6e120bc2680c0d35f9d9d81fcb98d.tar.gz |
mtd: nand: pxa3xx: Use ECC strength and step size devicetree binding
This commit adds support for the user to specify the ECC strength
and step size through the devicetree. We keep the previous behavior,
when there is no DT parameter provided.
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.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.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 a941471..ac4ea2e 100644 --- a/include/linux/platform_data/mtd-nand-pxa3xx.h +++ b/include/linux/platform_data/mtd-nand-pxa3xx.h @@ -58,6 +58,9 @@ struct pxa3xx_nand_platform_data { /* use an flash-based bad block table */ bool flash_bbt; + /* requested ECC strength and ECC step size */ + int ecc_strength, ecc_step_size; + const struct mtd_partition *parts[NUM_CHIP_SELECT]; unsigned int nr_parts[NUM_CHIP_SELECT]; |