diff options
author | Richard Genoud <richard.genoud@gmail.com> | 2008-04-23 13:51:14 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2008-04-23 18:34:28 -0400 |
commit | 77f5492c43adb4eb351fa0d163136877e8b2ed92 (patch) | |
tree | 0057c375e48c1a98e05e403c218f562a2784029d /drivers/mtd/nand/Kconfig | |
parent | 2c61cb250cf7e8cdd3b83b79b76d2ea0b3da010a (diff) |
[MTD] [NAND] Hardware ECC controller on at91sam9263 / at91sam9260
This is a patch to use the hardware ECC controller of
the AT91SAM9260 and AT91SAM9263 for the AT91 nand.
On AT91 NAND, there's now a choice between ECC soft,
ECC hard or no ECC (for debug).
It has been tested on AT91SAM9263 with 8 bits large
and small page NAND.
Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/mtd/nand/Kconfig')
-rw-r--r-- | drivers/mtd/nand/Kconfig | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig index dcbb0decd465..5076faf9ca66 100644 --- a/drivers/mtd/nand/Kconfig +++ b/drivers/mtd/nand/Kconfig | |||
@@ -278,6 +278,47 @@ config MTD_NAND_AT91 | |||
278 | help | 278 | help |
279 | Enables support for NAND Flash / Smart Media Card interface | 279 | Enables support for NAND Flash / Smart Media Card interface |
280 | on Atmel AT91 processors. | 280 | on Atmel AT91 processors. |
281 | choice | ||
282 | prompt "ECC management for NAND Flash / SmartMedia on AT91" | ||
283 | depends on MTD_NAND_AT91 | ||
284 | |||
285 | config MTD_NAND_AT91_ECC_HW | ||
286 | bool "Hardware ECC" | ||
287 | depends on ARCH_AT91SAM9263 || ARCH_AT91SAM9260 | ||
288 | help | ||
289 | Uses hardware ECC provided by the at91sam9260/at91sam9263 chip | ||
290 | instead of software ECC. | ||
291 | The hardware ECC controller is capable of single bit error | ||
292 | correction and 2-bit random detection per page. | ||
293 | |||
294 | NB : hardware and software ECC schemes are incompatible. | ||
295 | If you switch from one to another, you'll have to erase your | ||
296 | mtd partition. | ||
297 | |||
298 | If unsure, say Y | ||
299 | |||
300 | config MTD_NAND_AT91_ECC_SOFT | ||
301 | bool "Software ECC" | ||
302 | help | ||
303 | Uses software ECC. | ||
304 | |||
305 | NB : hardware and software ECC schemes are incompatible. | ||
306 | If you switch from one to another, you'll have to erase your | ||
307 | mtd partition. | ||
308 | |||
309 | config MTD_NAND_AT91_ECC_NONE | ||
310 | bool "No ECC (testing only, DANGEROUS)" | ||
311 | depends on DEBUG_KERNEL | ||
312 | help | ||
313 | No ECC will be used. | ||
314 | It's not a good idea and it should be reserved for testing | ||
315 | purpose only. | ||
316 | |||
317 | If unsure, say N | ||
318 | |||
319 | endchoice | ||
320 | |||
321 | endchoice | ||
281 | 322 | ||
282 | config MTD_NAND_PXA3xx | 323 | config MTD_NAND_PXA3xx |
283 | bool "Support for NAND flash devices on PXA3xx" | 324 | bool "Support for NAND flash devices on PXA3xx" |