]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - drivers/mtd/nand/Kconfig
mtd: nand: atmel: add Atmel NAND controller configs to Kconfig
[karo-tx-uboot.git] / drivers / mtd / nand / Kconfig
1 menuconfig NAND
2         bool "NAND Device Support"
3
4 if NAND
5
6 config SYS_NAND_USE_FLASH_BBT
7         bool "Use a flash based bad block table"
8
9 config SYS_NAND_SELF_INIT
10         bool
11         help
12           This option, if enabled, provides more flexible and linux-like
13           NAND initialization process.
14
15 if !SPL_BUILD
16
17 config NAND_DENALI
18         bool "Support Denali NAND controller"
19         select SYS_NAND_SELF_INIT
20         help
21           Enable support for the Denali NAND controller.
22
23 config SYS_NAND_DENALI_64BIT
24         bool "Use 64-bit variant of Denali NAND controller"
25         depends on NAND_DENALI
26         help
27           The Denali NAND controller IP has some variations in terms of
28           the bus interface.  The DMA setup sequence is completely differenct
29           between 32bit / 64bit AXI bus variants.
30
31           If your Denali NAND controller is the 64-bit variant, say Y.
32           Otherwise (32 bit), say N.
33
34 config NAND_DENALI_SPARE_AREA_SKIP_BYTES
35         int "Number of bytes skipped in OOB area"
36         depends on NAND_DENALI
37         range 0 63
38         help
39           This option specifies the number of bytes to skip from the beginning
40           of OOB area before last ECC sector data starts.  This is potentially
41           used to preserve the bad block marker in the OOB area.
42
43 endif
44
45 if SPL_BUILD
46
47 config SPL_NAND_DENALI
48         bool "Support Denali NAND controller for SPL"
49         help
50           This is a small implementation of the Denali NAND controller
51           for use on SPL.
52
53 endif
54
55 config NAND_ATMEL
56         bool "AT91 NAND flash controller"
57         select SYS_NAND_SELF_INIT
58
59 config NAND_MXC
60         bool "Support Freescale i.MX NAND controller"
61         select SYS_NAND_SELF_INIT
62         help
63           Enable support for the Freescale NAND controller found on
64           i.MX processors.
65
66 config NAND_MXS
67         bool "Support Freescale GPMI NAND controller"
68         help
69           Enable support for the Freescale GPMI NAND controller found
70           on i.MX28 and i.MX6 processors.
71
72 config NAND_MXS_NO_BBM_SWAP
73         bool "disable bad block mark swapping"
74         depends on NAND_MXS && SOC_MX6
75         select SYS_NAND_USE_FLASH_BBT
76
77 endif