aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r--include/linux/platform_data/mtd-nand-omap2.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/include/linux/platform_data/mtd-nand-omap2.h b/include/linux/platform_data/mtd-nand-omap2.h
index 6bf9ef43ddb1..4da5bfa2147f 100644
--- a/include/linux/platform_data/mtd-nand-omap2.h
+++ b/include/linux/platform_data/mtd-nand-omap2.h
@@ -23,13 +23,16 @@ enum nand_io {
23}; 23};
24 24
25enum omap_ecc { 25enum omap_ecc {
26 /* 1-bit ecc: stored at end of spare area */ 26 /* 1-bit ECC calculation by GPMC, Error detection by Software */
27 OMAP_ECC_HAMMING_CODE_DEFAULT = 0, /* Default, s/w method */ 27 OMAP_ECC_HAM1_CODE_HW = 0,
28 OMAP_ECC_HAMMING_CODE_HW, /* gpmc to detect the error */ 28 /* 4-bit ECC calculation by GPMC, Error detection by Software */
29 /* 1-bit ecc: stored at beginning of spare area as romcode */ 29 OMAP_ECC_BCH4_CODE_HW_DETECTION_SW,
30 OMAP_ECC_HAMMING_CODE_HW_ROMCODE, /* gpmc method & romcode layout */ 30 /* 4-bit ECC calculation by GPMC, Error detection by ELM */
31 OMAP_ECC_BCH4_CODE_HW, /* 4-bit BCH ecc code */ 31 OMAP_ECC_BCH4_CODE_HW,
32 OMAP_ECC_BCH8_CODE_HW, /* 8-bit BCH ecc code */ 32 /* 8-bit ECC calculation by GPMC, Error detection by Software */
33 OMAP_ECC_BCH8_CODE_HW_DETECTION_SW,
34 /* 8-bit ECC calculation by GPMC, Error detection by ELM */
35 OMAP_ECC_BCH8_CODE_HW,
33}; 36};
34 37
35struct gpmc_nand_regs { 38struct gpmc_nand_regs {
@@ -63,5 +66,6 @@ struct omap_nand_platform_data {
63 66
64 /* for passing the partitions */ 67 /* for passing the partitions */
65 struct device_node *of_node; 68 struct device_node *of_node;
69 struct device_node *elm_of_node;
66}; 70};
67#endif 71#endif