aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPekon Gupta <pekon@ti.com>2013-10-24 08:50:26 -0400
committerBrian Norris <computersforpeace@gmail.com>2013-11-07 02:33:11 -0500
commit90c9c955db75f4f85db1f6b4fe17fbc3bcd513b3 (patch)
tree968b9b6c8cda4af911ea783005fa9f9ac402ad33
parent70ba6d71ddcde8aa5a6e2b7f616e77b4bb96b984 (diff)
mtd: nand: omap: remove selection of BCH ecc-scheme via KConfig
With OMAP NAND driver updates, selection of ecc-scheme: *DT enabled kernel* depends on ti,nand-ecc-opt and ti,elm-id DT bindings. *Non DT enabled kernel* depends on elm_dev and ecc-scheme passed along with platform-data from board file. So, selection of ecc-scheme (BCH8 or BCH4) from KConfig can be removed Signed-off-by: Pekon Gupta <pekon@ti.com> Tested-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
-rw-r--r--drivers/mtd/nand/Kconfig40
1 files changed, 6 insertions, 34 deletions
diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig
index d88529841d3f..93ae6a6d94f7 100644
--- a/drivers/mtd/nand/Kconfig
+++ b/drivers/mtd/nand/Kconfig
@@ -96,43 +96,15 @@ config MTD_NAND_OMAP2
96 96
97config MTD_NAND_OMAP_BCH 97config MTD_NAND_OMAP_BCH
98 depends on MTD_NAND && MTD_NAND_OMAP2 && ARCH_OMAP3 98 depends on MTD_NAND && MTD_NAND_OMAP2 && ARCH_OMAP3
99 tristate "Enable support for hardware BCH error correction" 99 tristate "Support hardware based BCH error correction"
100 default n 100 default n
101 select BCH 101 select BCH
102 select BCH_CONST_PARAMS
103 help 102 help
104 Support for hardware BCH error correction. 103 This config enables the ELM hardware engine, which can be used to
105 104 locate and correct errors when using BCH ECC scheme. This offloads
106choice 105 the cpu from doing ECC error searching and correction. However some
107 prompt "BCH error correction capability" 106 legacy OMAP families like OMAP2xxx, OMAP3xxx do not have ELM engine
108 depends on MTD_NAND_OMAP_BCH 107 so they should not enable this config symbol.
109
110config MTD_NAND_OMAP_BCH8
111 bool "8 bits / 512 bytes (recommended)"
112 help
113 Support correcting up to 8 bitflips per 512-byte block.
114 This will use 13 bytes of spare area per 512 bytes of page data.
115 This is the recommended mode, as 4-bit mode does not work
116 on some OMAP3 revisions, due to a hardware bug.
117
118config MTD_NAND_OMAP_BCH4
119 bool "4 bits / 512 bytes"
120 help
121 Support correcting up to 4 bitflips per 512-byte block.
122 This will use 7 bytes of spare area per 512 bytes of page data.
123 Note that this mode does not work on some OMAP3 revisions, due to a
124 hardware bug. Please check your OMAP datasheet before selecting this
125 mode.
126
127endchoice
128
129if MTD_NAND_OMAP_BCH
130config BCH_CONST_M
131 default 13
132config BCH_CONST_T
133 default 4 if MTD_NAND_OMAP_BCH4
134 default 8 if MTD_NAND_OMAP_BCH8
135endif
136 108
137config MTD_NAND_IDS 109config MTD_NAND_IDS
138 tristate 110 tristate