162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_ciconfig MTD_NAND_JZ4780
362306a36Sopenharmony_ci	tristate "JZ4780 NAND controller"
462306a36Sopenharmony_ci	depends on MIPS || COMPILE_TEST
562306a36Sopenharmony_ci	depends on JZ4780_NEMC
662306a36Sopenharmony_ci	help
762306a36Sopenharmony_ci	  Enables support for NAND Flash connected to the NEMC on JZ4780 SoC
862306a36Sopenharmony_ci	  based boards, using the BCH controller for hardware error correction.
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ciif MTD_NAND_JZ4780
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ciconfig MTD_NAND_INGENIC_ECC
1362306a36Sopenharmony_ci	bool
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_ciconfig MTD_NAND_JZ4740_ECC
1662306a36Sopenharmony_ci	tristate "Hardware BCH support for JZ4740 SoC"
1762306a36Sopenharmony_ci	select MTD_NAND_INGENIC_ECC
1862306a36Sopenharmony_ci	help
1962306a36Sopenharmony_ci	  Enable this driver to support the Reed-Solomon error-correction
2062306a36Sopenharmony_ci	  hardware present on the JZ4740 SoC from Ingenic.
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_ci	  This driver can also be built as a module. If so, the module
2362306a36Sopenharmony_ci	  will be called jz4740-ecc.
2462306a36Sopenharmony_ci
2562306a36Sopenharmony_ciconfig MTD_NAND_JZ4725B_BCH
2662306a36Sopenharmony_ci	tristate "Hardware BCH support for JZ4725B SoC"
2762306a36Sopenharmony_ci	select MTD_NAND_INGENIC_ECC
2862306a36Sopenharmony_ci	help
2962306a36Sopenharmony_ci	  Enable this driver to support the BCH error-correction hardware
3062306a36Sopenharmony_ci	  present on the JZ4725B SoC from Ingenic.
3162306a36Sopenharmony_ci
3262306a36Sopenharmony_ci	  This driver can also be built as a module. If so, the module
3362306a36Sopenharmony_ci	  will be called jz4725b-bch.
3462306a36Sopenharmony_ci
3562306a36Sopenharmony_ciconfig MTD_NAND_JZ4780_BCH
3662306a36Sopenharmony_ci	tristate "Hardware BCH support for JZ4780 SoC"
3762306a36Sopenharmony_ci	select MTD_NAND_INGENIC_ECC
3862306a36Sopenharmony_ci	help
3962306a36Sopenharmony_ci	  Enable this driver to support the BCH error-correction hardware
4062306a36Sopenharmony_ci	  present on the JZ4780 SoC from Ingenic.
4162306a36Sopenharmony_ci
4262306a36Sopenharmony_ci	  This driver can also be built as a module. If so, the module
4362306a36Sopenharmony_ci	  will be called jz4780-bch.
4462306a36Sopenharmony_ci
4562306a36Sopenharmony_ciendif # MTD_NAND_JZ4780
46