]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/mtd/nand/Kconfig
mtd: nand: atmel: add Atmel NAND controller configs to Kconfig
[karo-tx-uboot.git] / drivers / mtd / nand / Kconfig
index 1d9bf4802caef5fc6c6b484b5303d3d8b2ddb2ea..3a5ffc1c226e0136747f2444936792051a01b8e2 100644 (file)
@@ -1,9 +1,22 @@
-menu "NAND Device Support"
+menuconfig NAND
+       bool "NAND Device Support"
+
+if NAND
+
+config SYS_NAND_USE_FLASH_BBT
+       bool "Use a flash based bad block table"
+
+config SYS_NAND_SELF_INIT
+       bool
+       help
+         This option, if enabled, provides more flexible and linux-like
+         NAND initialization process.
 
 if !SPL_BUILD
 
 config NAND_DENALI
        bool "Support Denali NAND controller"
+       select SYS_NAND_SELF_INIT
        help
          Enable support for the Denali NAND controller.
 
@@ -29,4 +42,36 @@ config NAND_DENALI_SPARE_AREA_SKIP_BYTES
 
 endif
 
-endmenu
+if SPL_BUILD
+
+config SPL_NAND_DENALI
+       bool "Support Denali NAND controller for SPL"
+       help
+         This is a small implementation of the Denali NAND controller
+         for use on SPL.
+
+endif
+
+config NAND_ATMEL
+       bool "AT91 NAND flash controller"
+       select SYS_NAND_SELF_INIT
+
+config NAND_MXC
+       bool "Support Freescale i.MX NAND controller"
+       select SYS_NAND_SELF_INIT
+       help
+         Enable support for the Freescale NAND controller found on
+         i.MX processors.
+
+config NAND_MXS
+       bool "Support Freescale GPMI NAND controller"
+       help
+         Enable support for the Freescale GPMI NAND controller found
+         on i.MX28 and i.MX6 processors.
+
+config NAND_MXS_NO_BBM_SWAP
+       bool "disable bad block mark swapping"
+       depends on NAND_MXS && SOC_MX6
+       select SYS_NAND_USE_FLASH_BBT
+
+endif