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