diff options
author | pekon gupta <pekon@ti.com> | 2014-05-19 03:54:40 -0400 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-05-20 20:52:14 -0400 |
commit | 2be589e4b28457f148640dc6addf6da24af64b7f (patch) | |
tree | 20a98917a2d4754f71ddce64387407701f5babf9 /include/linux/platform_data | |
parent | 27c9fd607587e6c3b517590df4cd35ac85f3d0bd (diff) |
mtd: nand: omap: add support for BCH16_ECC - ELM driver updates
ELM hardware engine is used to detect ECC errors for BCHx ecc-schemes
(like BCH4/BCH8/BCH16). This patch extends configuration of ELM registers
for adding support of BCH16_HW ecc-scheme.
Signed-off-by: Pekon Gupta <pekon@ti.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r-- | include/linux/platform_data/elm.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/platform_data/elm.h b/include/linux/platform_data/elm.h index 4edb40676b3f..780d1e97f620 100644 --- a/include/linux/platform_data/elm.h +++ b/include/linux/platform_data/elm.h | |||
@@ -21,6 +21,7 @@ | |||
21 | enum bch_ecc { | 21 | enum bch_ecc { |
22 | BCH4_ECC = 0, | 22 | BCH4_ECC = 0, |
23 | BCH8_ECC, | 23 | BCH8_ECC, |
24 | BCH16_ECC, | ||
24 | }; | 25 | }; |
25 | 26 | ||
26 | /* ELM support 8 error syndrome process */ | 27 | /* ELM support 8 error syndrome process */ |
@@ -38,7 +39,7 @@ struct elm_errorvec { | |||
38 | bool error_reported; | 39 | bool error_reported; |
39 | bool error_uncorrectable; | 40 | bool error_uncorrectable; |
40 | int error_count; | 41 | int error_count; |
41 | int error_loc[ERROR_VECTOR_MAX]; | 42 | int error_loc[16]; |
42 | }; | 43 | }; |
43 | 44 | ||
44 | void elm_decode_bch_error_page(struct device *dev, u8 *ecc_calc, | 45 | void elm_decode_bch_error_page(struct device *dev, u8 *ecc_calc, |