Linux-libre 5.4.49-gnu
[librecmc/linux-libre.git] / drivers / mtd / nand / raw / ingenic / Kconfig
1 # SPDX-License-Identifier: GPL-2.0-only
2 config 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
9 if MTD_NAND_JZ4780
10
11 config MTD_NAND_INGENIC_ECC
12         bool
13
14 config 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
24 config 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
34 config 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
44 endif # MTD_NAND_JZ4780