Home
last modified time | relevance | path

Searched hist:"41 bbe4dd49a3825e024e874ee19c6527860a3f16" (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/include/linux/mtd/
H A Domap_elm.h41bbe4dd49a3825e024e874ee19c6527860a3f16 Fri Apr 11 07:25:30 UTC 2014 pekon gupta <pekon@ti.com> 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>