diff options
author | pekon gupta <pekon@ti.com> | 2014-05-19 03:54:39 -0400 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-05-20 20:52:14 -0400 |
commit | 27c9fd607587e6c3b517590df4cd35ac85f3d0bd (patch) | |
tree | 92fbf32f4f2c3f3b986c2dd0c7a1f2a9b9383d23 /include/linux/platform_data | |
parent | 4007e2d175cc83ea728b757e49155826b32fbff8 (diff) |
mtd: nand: omap: add support for BCH16_ECC - GPMC driver updates
This patch add support for BCH16_ECC in GPMC (controller) driver:
- extends configuration space to include BCH16 registers
- extends parsing of DT binding for selecting BCH16 ecc-scheme
Signed-off-by: Pekon Gupta <pekon@ti.com>
Acked-by: Tony Lindgren <tony@atomide.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-omap2.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/platform_data/mtd-nand-omap2.h b/include/linux/platform_data/mtd-nand-omap2.h index 3e9dd6676b97..660c029d694f 100644 --- a/include/linux/platform_data/mtd-nand-omap2.h +++ b/include/linux/platform_data/mtd-nand-omap2.h | |||
@@ -31,6 +31,8 @@ enum omap_ecc { | |||
31 | OMAP_ECC_BCH8_CODE_HW_DETECTION_SW, | 31 | OMAP_ECC_BCH8_CODE_HW_DETECTION_SW, |
32 | /* 8-bit ECC calculation by GPMC, Error detection by ELM */ | 32 | /* 8-bit ECC calculation by GPMC, Error detection by ELM */ |
33 | OMAP_ECC_BCH8_CODE_HW, | 33 | OMAP_ECC_BCH8_CODE_HW, |
34 | /* 16-bit ECC calculation by GPMC, Error detection by ELM */ | ||
35 | OMAP_ECC_BCH16_CODE_HW, | ||
34 | }; | 36 | }; |
35 | 37 | ||
36 | struct gpmc_nand_regs { | 38 | struct gpmc_nand_regs { |
@@ -50,6 +52,9 @@ struct gpmc_nand_regs { | |||
50 | void __iomem *gpmc_bch_result1[GPMC_BCH_NUM_REMAINDER]; | 52 | void __iomem *gpmc_bch_result1[GPMC_BCH_NUM_REMAINDER]; |
51 | void __iomem *gpmc_bch_result2[GPMC_BCH_NUM_REMAINDER]; | 53 | void __iomem *gpmc_bch_result2[GPMC_BCH_NUM_REMAINDER]; |
52 | void __iomem *gpmc_bch_result3[GPMC_BCH_NUM_REMAINDER]; | 54 | void __iomem *gpmc_bch_result3[GPMC_BCH_NUM_REMAINDER]; |
55 | void __iomem *gpmc_bch_result4[GPMC_BCH_NUM_REMAINDER]; | ||
56 | void __iomem *gpmc_bch_result5[GPMC_BCH_NUM_REMAINDER]; | ||
57 | void __iomem *gpmc_bch_result6[GPMC_BCH_NUM_REMAINDER]; | ||
53 | }; | 58 | }; |
54 | 59 | ||
55 | struct omap_nand_platform_data { | 60 | struct omap_nand_platform_data { |