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>
This commit is contained in:
Pekon Gupta 2013-10-24 18:20:26 +05:30 committed by Brian Norris
parent 70ba6d71dd
commit 90c9c955db
1 changed files with 6 additions and 34 deletions

View File

@ -96,43 +96,15 @@ config MTD_NAND_OMAP2
config MTD_NAND_OMAP_BCH config MTD_NAND_OMAP_BCH
depends on MTD_NAND && MTD_NAND_OMAP2 && ARCH_OMAP3 depends on MTD_NAND && MTD_NAND_OMAP2 && ARCH_OMAP3
tristate "Enable support for hardware BCH error correction" tristate "Support hardware based BCH error correction"
default n default n
select BCH select BCH
select BCH_CONST_PARAMS
help help
Support for hardware BCH error correction. This config enables the ELM hardware engine, which can be used to
locate and correct errors when using BCH ECC scheme. This offloads
choice the cpu from doing ECC error searching and correction. However some
prompt "BCH error correction capability" legacy OMAP families like OMAP2xxx, OMAP3xxx do not have ELM engine
depends on MTD_NAND_OMAP_BCH so they should not enable this config symbol.
config MTD_NAND_OMAP_BCH8
bool "8 bits / 512 bytes (recommended)"
help
Support correcting up to 8 bitflips per 512-byte block.
This will use 13 bytes of spare area per 512 bytes of page data.
This is the recommended mode, as 4-bit mode does not work
on some OMAP3 revisions, due to a hardware bug.
config MTD_NAND_OMAP_BCH4
bool "4 bits / 512 bytes"
help
Support correcting up to 4 bitflips per 512-byte block.
This will use 7 bytes of spare area per 512 bytes of page data.
Note that this mode does not work on some OMAP3 revisions, due to a
hardware bug. Please check your OMAP datasheet before selecting this
mode.
endchoice
if MTD_NAND_OMAP_BCH
config BCH_CONST_M
default 13
config BCH_CONST_T
default 4 if MTD_NAND_OMAP_BCH4
default 8 if MTD_NAND_OMAP_BCH8
endif
config MTD_NAND_IDS config MTD_NAND_IDS
tristate tristate