xref: /openbmc/linux/drivers/mtd/nand/raw/ingenic/Kconfig (revision 002dff36)
1# SPDX-License-Identifier: GPL-2.0-only
2config MTD_NAND_JZ4780
3	tristate "JZ4780 NAND controller"
4	depends on MIPS || COMPILE_TEST
5	depends on JZ4780_NEMC
6	help
7	  Enables support for NAND Flash connected to the NEMC on JZ4780 SoC
8	  based boards, using the BCH controller for hardware error correction.
9
10if MTD_NAND_JZ4780
11
12config MTD_NAND_INGENIC_ECC
13	bool
14
15config MTD_NAND_JZ4740_ECC
16	tristate "Hardware BCH support for JZ4740 SoC"
17	select MTD_NAND_INGENIC_ECC
18	help
19	  Enable this driver to support the Reed-Solomon error-correction
20	  hardware present on the JZ4740 SoC from Ingenic.
21
22	  This driver can also be built as a module. If so, the module
23	  will be called jz4740-ecc.
24
25config MTD_NAND_JZ4725B_BCH
26	tristate "Hardware BCH support for JZ4725B SoC"
27	select MTD_NAND_INGENIC_ECC
28	help
29	  Enable this driver to support the BCH error-correction hardware
30	  present on the JZ4725B SoC from Ingenic.
31
32	  This driver can also be built as a module. If so, the module
33	  will be called jz4725b-bch.
34
35config MTD_NAND_JZ4780_BCH
36	tristate "Hardware BCH support for JZ4780 SoC"
37	select MTD_NAND_INGENIC_ECC
38	help
39	  Enable this driver to support the BCH error-correction hardware
40	  present on the JZ4780 SoC from Ingenic.
41
42	  This driver can also be built as a module. If so, the module
43	  will be called jz4780-bch.
44
45endif # MTD_NAND_JZ4780
46