diff options
author | pekon gupta <pekon@ti.com> | 2014-04-11 12:55:30 +0530 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-06-06 17:45:48 -0400 |
commit | 41bbe4dd49a3825e024e874ee19c6527860a3f16 (patch) | |
tree | c04b28965d10c1c89496859e761bafcf330f1ffa /api | |
parent | b98c5755c04eb5e15c614efefa7b9a2f3b0cd06c (diff) | |
download | u-boot-imx-41bbe4dd49a3825e024e874ee19c6527860a3f16.zip u-boot-imx-41bbe4dd49a3825e024e874ee19c6527860a3f16.tar.gz u-boot-imx-41bbe4dd49a3825e024e874ee19c6527860a3f16.tar.bz2 |
mtd: nand: omap_elm: use bch_type instead of nibble count to differentiate between BCH4/BCH8/BCH16
ELM hardware engine support ECC error detection for multiple ECC strengths like
+------+------------------------+
|Type | ECC syndrome length |
+------+------------------------+
|BCH4 | 6.5 bytes = 13 nibbles |
|BCH8 | 13 byte = 26 nibbles |
|BCH16 | 26 bytes = 52 nibbles |
+------+------------------------+
Current implementation of omap_elm driver uses ECC syndrom length (in 'nibbles')
to differentiate between BCH4/BCH8/BCH16. This patch replaces it with 'bch_type'
Signed-off-by: Pekon Gupta <pekon@ti.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'api')
0 files changed, 0 insertions, 0 deletions