2 bool "NAND Device Support"
6 config SYS_NAND_USE_FLASH_BBT
7 bool "Use a flash based bad block table"
9 config SYS_NAND_SELF_INIT
12 This option, if enabled, provides more flexible and linux-like
13 NAND initialization process.
16 bool "Support Denali NAND controller"
17 select SYS_NAND_SELF_INIT
19 Enable support for the Denali NAND controller.
21 config SYS_NAND_DENALI_64BIT
22 bool "Use 64-bit variant of Denali NAND controller"
23 depends on NAND_DENALI
25 The Denali NAND controller IP has some variations in terms of
26 the bus interface. The DMA setup sequence is completely differenct
27 between 32bit / 64bit AXI bus variants.
29 If your Denali NAND controller is the 64-bit variant, say Y.
30 Otherwise (32 bit), say N.
32 config NAND_DENALI_SPARE_AREA_SKIP_BYTES
33 int "Number of bytes skipped in OOB area"
34 depends on NAND_DENALI
37 This option specifies the number of bytes to skip from the beginning
38 of OOB area before last ECC sector data starts. This is potentially
39 used to preserve the bad block marker in the OOB area.
42 bool "Support for Freescale NFC for VF610/MPC5125"
43 select SYS_NAND_SELF_INIT
45 Enables support for NAND Flash Controller on some Freescale
46 processors like the VF610, MPC5125, MCF54418 or Kinetis K70.
47 The driver supports a maximum 2k page size. The driver
48 currently does not support hardware ECC.
51 prompt "Hardware ECC strength"
52 depends on NAND_VF610_NFC
53 default SYS_NAND_VF610_NFC_45_ECC_BYTES
55 Select the ECC strength used in the hardware BCH ECC block.
57 config SYS_NAND_VF610_NFC_45_ECC_BYTES
58 bool "24-error correction (45 ECC bytes)"
60 config SYS_NAND_VF610_NFC_60_ECC_BYTES
61 bool "32-error correction (60 ECC bytes)"
65 comment "Generic NAND options"
67 # Enhance depends when converting drivers to Kconfig which use this config
68 # option (mxc_nand, ndfc, omap_gpmc).
69 config SYS_NAND_BUSWIDTH_16BIT
70 bool "Use 16-bit NAND interface"
71 depends on NAND_VF610_NFC
73 Indicates that NAND device has 16-bit wide data-bus. In absence of this
74 config, bus-width of NAND device is assumed to be either 8-bit and later
75 determined by reading ONFI params.
76 Above config is useful when NAND device's bus-width information cannot
77 be determined from on-chip ONFI params, like in following scenarios:
78 - SPL boot does not support reading of ONFI parameters. This is done to
79 keep SPL code foot-print small.
80 - In current U-Boot flow using nand_init(), driver initialization
81 happens in board_nand_init() which is called before any device probe
82 (nand_scan_ident + nand_scan_tail), thus device's ONFI parameters are
83 not available while configuring controller. So a static CONFIG_NAND_xx
84 is needed to know the device's bus-width in advance.
88 config SPL_NAND_DENALI
89 bool "Support Denali NAND controller for SPL"
91 This is a small implementation of the Denali NAND controller
95 bool "Support for NAND on Allwinner A20 in SPL"
98 Enable support for NAND. This option allows SPL to read from
99 sunxi NAND using DMA transfers.
100 Depending on the NAND chip, values like ECC strength and page sizes
101 have to be configured.
103 config NAND_SUNXI_SPL_SYNDROME_PARTITIONS_END
104 hex "Size of syndrome partitions in sunxi NAND"
106 depends on SPL_NAND_SUNXI
108 End address for boot partitions on NAND. Those partitions have a
109 different random seed that has to match the sunxi BROM setting.
111 config NAND_SUNXI_SPL_ECC_STRENGTH
112 int "ECC Strength for sunxi NAND"
114 depends on SPL_NAND_SUNXI
116 ECC strength used by the sunxi NAND SPL driver. This is specific to the
117 chosen NAND chip and has to match the value used by the sunxi BROM.
119 config NAND_SUNXI_SPL_ECC_PAGE_SIZE
120 hex "ECC page size for sunxi NAND"
122 depends on SPL_NAND_SUNXI
124 ECC page size used by the sunxi NAND SPL driver for syndrome partitions.
125 This setting has to match the value used by the sunxi BROM.
127 config NAND_SUNXI_SPL_PAGE_SIZE
128 hex "Page size for sunxi NAND"
130 depends on SPL_NAND_SUNXI
132 Page size of the NAND flash used by the sunxi NAND SPL driver. This is
133 specific to the chosen NAND chip.
137 bool "AT91 NAND flash controller"
138 select SYS_NAND_SELF_INIT
141 bool "Support Freescale i.MX NAND controller"
142 select SYS_NAND_SELF_INIT
144 Enable support for the Freescale NAND controller found on
148 bool "Support Freescale GPMI NAND controller"
150 Enable support for the Freescale GPMI NAND controller found
151 on i.MX28 and i.MX6 processors.
153 config NAND_MXS_NO_BBM_SWAP
154 bool "disable bad block mark swapping"
155 depends on NAND_MXS && SOC_MX6
156 select SYS_NAND_USE_FLASH_BBT