diff options
Diffstat (limited to 'drivers/mtd/nand/Kconfig')
-rw-r--r-- | drivers/mtd/nand/Kconfig | 42 |
1 files changed, 41 insertions, 1 deletions
diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig index 7d17cecad69d..31bb7e5b504a 100644 --- a/drivers/mtd/nand/Kconfig +++ b/drivers/mtd/nand/Kconfig | |||
@@ -115,6 +115,46 @@ config MTD_NAND_OMAP2 | |||
115 | Support for NAND flash on Texas Instruments OMAP2, OMAP3 and OMAP4 | 115 | Support for NAND flash on Texas Instruments OMAP2, OMAP3 and OMAP4 |
116 | platforms. | 116 | platforms. |
117 | 117 | ||
118 | config MTD_NAND_OMAP_BCH | ||
119 | depends on MTD_NAND && MTD_NAND_OMAP2 && ARCH_OMAP3 | ||
120 | bool "Enable support for hardware BCH error correction" | ||
121 | default n | ||
122 | select BCH | ||
123 | select BCH_CONST_PARAMS | ||
124 | help | ||
125 | Support for hardware BCH error correction. | ||
126 | |||
127 | choice | ||
128 | prompt "BCH error correction capability" | ||
129 | depends on MTD_NAND_OMAP_BCH | ||
130 | |||
131 | config MTD_NAND_OMAP_BCH8 | ||
132 | bool "8 bits / 512 bytes (recommended)" | ||
133 | help | ||
134 | Support correcting up to 8 bitflips per 512-byte block. | ||
135 | This will use 13 bytes of spare area per 512 bytes of page data. | ||
136 | This is the recommended mode, as 4-bit mode does not work | ||
137 | on some OMAP3 revisions, due to a hardware bug. | ||
138 | |||
139 | config MTD_NAND_OMAP_BCH4 | ||
140 | bool "4 bits / 512 bytes" | ||
141 | help | ||
142 | Support correcting up to 4 bitflips per 512-byte block. | ||
143 | This will use 7 bytes of spare area per 512 bytes of page data. | ||
144 | Note that this mode does not work on some OMAP3 revisions, due to a | ||
145 | hardware bug. Please check your OMAP datasheet before selecting this | ||
146 | mode. | ||
147 | |||
148 | endchoice | ||
149 | |||
150 | if MTD_NAND_OMAP_BCH | ||
151 | config BCH_CONST_M | ||
152 | default 13 | ||
153 | config BCH_CONST_T | ||
154 | default 4 if MTD_NAND_OMAP_BCH4 | ||
155 | default 8 if MTD_NAND_OMAP_BCH8 | ||
156 | endif | ||
157 | |||
118 | config MTD_NAND_IDS | 158 | config MTD_NAND_IDS |
119 | tristate | 159 | tristate |
120 | 160 | ||
@@ -440,7 +480,7 @@ config MTD_NAND_NANDSIM | |||
440 | 480 | ||
441 | config MTD_NAND_GPMI_NAND | 481 | config MTD_NAND_GPMI_NAND |
442 | bool "GPMI NAND Flash Controller driver" | 482 | bool "GPMI NAND Flash Controller driver" |
443 | depends on MTD_NAND && (SOC_IMX23 || SOC_IMX28) | 483 | depends on MTD_NAND && (SOC_IMX23 || SOC_IMX28 || SOC_IMX6Q) |
444 | help | 484 | help |
445 | Enables NAND Flash support for IMX23 or IMX28. | 485 | Enables NAND Flash support for IMX23 or IMX28. |
446 | The GPMI controller is very powerful, with the help of BCH | 486 | The GPMI controller is very powerful, with the help of BCH |