aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/devices/Kconfig
diff options
context:
space:
mode:
authorRobert Jarzmik <robert.jarzmik@free.fr>2011-11-19 10:02:55 -0500
committerDavid Woodhouse <David.Woodhouse@intel.com>2012-01-09 13:07:26 -0500
commitd13d19ece39f20bf097782e1812a9c31a5a4fcf1 (patch)
tree8ea5f606a95f7e3761e55945f247c818dfb0dfc0 /drivers/mtd/devices/Kconfig
parent7a7fcf14021bc0f0728dd0aaa2635475de0db54c (diff)
mtd: docg3: add ECC correction code
Credit for discovering the BCH algorith parameters, and bit reversing algorithm is to be give to Mike Dunn and Ivan Djelic. The BCH correction code relied upon the BCH library, where all data and ECC is bit-reversed. The BCH library works correctly when each input byte is bit-reversed, and accordingly ECC output is also bit-reversed. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Reviewed-by: Ivan Djelic <ivan.djelic@parrot.com> Reviewed-by: Mike Dunn <mikedunn@newsguy.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/devices/Kconfig')
-rw-r--r--drivers/mtd/devices/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/mtd/devices/Kconfig b/drivers/mtd/devices/Kconfig
index 283d887f7825..952e956ef01d 100644
--- a/drivers/mtd/devices/Kconfig
+++ b/drivers/mtd/devices/Kconfig
@@ -251,6 +251,8 @@ config MTD_DOC2001PLUS
251 251
252config MTD_DOCG3 252config MTD_DOCG3
253 tristate "M-Systems Disk-On-Chip G3" 253 tristate "M-Systems Disk-On-Chip G3"
254 select BCH
255 select BCH_CONST_PARAMS
254 ---help--- 256 ---help---
255 This provides an MTD device driver for the M-Systems DiskOnChip 257 This provides an MTD device driver for the M-Systems DiskOnChip
256 G3 devices. 258 G3 devices.
@@ -259,6 +261,13 @@ config MTD_DOCG3
259 M-Systems and now Sandisk. The support is very experimental, 261 M-Systems and now Sandisk. The support is very experimental,
260 and doesn't give access to any write operations. 262 and doesn't give access to any write operations.
261 263
264if MTD_DOCG3
265config BCH_CONST_M
266 default 14
267config BCH_CONST_T
268 default 4
269endif
270
262config MTD_DOCPROBE 271config MTD_DOCPROBE
263 tristate 272 tristate
264 select MTD_DOCECC 273 select MTD_DOCECC