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