nand: arasan: Select CONFIG_SYS_NAND_SELF_INIT
authorEzequiel Garcia <ezequiel@vanguardiasur.com.ar>
Mon, 15 Jan 2018 15:48:12 +0000 (12:48 -0300)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 30 Jan 2018 13:29:07 +0000 (14:29 +0100)
The Arasan NFC driver requires the self-init mode,
so it should select it.

Instead of having the config header define the macro,
it's cleaner to select the option at the Kconfig level.

Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/mtd/nand/Kconfig
include/configs/xilinx_zynqmp.h

index 78a39abf7542e122e5c59be6dbb7cf07156c8913..97ec6cf5f9c34ff0a73dffe84bb350ee26d000dc 100644 (file)
@@ -123,6 +123,7 @@ endif
 
 config NAND_ARASAN
        bool "Configure Arasan Nand"
+       select SYS_NAND_SELF_INIT
        imply CMD_NAND
        help
          This enables Nand driver support for Arasan nand flash
index 9997fd095982fed4a58d7b25870e5b8c081c20ab..d883897c6cc2d522803359fcac2bd09a53d16620 100644 (file)
@@ -76,7 +76,6 @@
 
 #ifdef CONFIG_NAND_ARASAN
 # define CONFIG_SYS_MAX_NAND_DEVICE    1
-# define CONFIG_SYS_NAND_SELF_INIT
 # define CONFIG_SYS_NAND_ONFI_DETECTION
 # define CONFIG_MTD_DEVICE
 #endif