diff options
Diffstat (limited to 'lib/Kconfig')
-rw-r--r-- | lib/Kconfig | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/lib/Kconfig b/lib/Kconfig index 0ee67e08ad3e..b9fef78ed04f 100644 --- a/lib/Kconfig +++ b/lib/Kconfig | |||
@@ -155,6 +155,45 @@ config REED_SOLOMON_DEC16 | |||
155 | boolean | 155 | boolean |
156 | 156 | ||
157 | # | 157 | # |
158 | # BCH support is selected if needed | ||
159 | # | ||
160 | config BCH | ||
161 | tristate | ||
162 | |||
163 | config BCH_CONST_PARAMS | ||
164 | boolean | ||
165 | help | ||
166 | Drivers may select this option to force specific constant | ||
167 | values for parameters 'm' (Galois field order) and 't' | ||
168 | (error correction capability). Those specific values must | ||
169 | be set by declaring default values for symbols BCH_CONST_M | ||
170 | and BCH_CONST_T. | ||
171 | Doing so will enable extra compiler optimizations, | ||
172 | improving encoding and decoding performance up to 2x for | ||
173 | usual (m,t) values (typically such that m*t < 200). | ||
174 | When this option is selected, the BCH library supports | ||
175 | only a single (m,t) configuration. This is mainly useful | ||
176 | for NAND flash board drivers requiring known, fixed BCH | ||
177 | parameters. | ||
178 | |||
179 | config BCH_CONST_M | ||
180 | int | ||
181 | range 5 15 | ||
182 | help | ||
183 | Constant value for Galois field order 'm'. If 'k' is the | ||
184 | number of data bits to protect, 'm' should be chosen such | ||
185 | that (k + m*t) <= 2**m - 1. | ||
186 | Drivers should declare a default value for this symbol if | ||
187 | they select option BCH_CONST_PARAMS. | ||
188 | |||
189 | config BCH_CONST_T | ||
190 | int | ||
191 | help | ||
192 | Constant value for error correction capability in bits 't'. | ||
193 | Drivers should declare a default value for this symbol if | ||
194 | they select option BCH_CONST_PARAMS. | ||
195 | |||
196 | # | ||
158 | # Textsearch support is select'ed if needed | 197 | # Textsearch support is select'ed if needed |
159 | # | 198 | # |
160 | config TEXTSEARCH | 199 | config TEXTSEARCH |