Kconfig: Add entry for VF610 NAND NFC device tree aware driver
authorLukasz Majewski <lukma@denx.de>
Mon, 3 Dec 2018 09:24:50 +0000 (10:24 +0100)
committerStefano Babic <sbabic@denx.de>
Tue, 1 Jan 2019 13:12:18 +0000 (14:12 +0100)
This commit provides code to add proper entry to Kconfig to enable
support for VF610 device tree aware driver.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
drivers/mtd/nand/raw/Kconfig

index 008f7b4b4ba19b17f8c395dc8bc2c71f4360b686..fd1723fedadfea17fdf3067c09a75ba740931b64 100644 (file)
@@ -88,6 +88,15 @@ config NAND_VF610_NFC
          The driver supports a maximum 2k page size. The driver
          currently does not support hardware ECC.
 
+if NAND_VF610_NFC
+
+config NAND_VF610_NFC_DT
+        bool "Support Vybrid's vf610 NAND controller as a DT device"
+        depends on OF_CONTROL && MTD
+        help
+          Enable the driver for Vybrid's vf610 NAND flash on platforms
+         using device tree.
+
 choice
        prompt "Hardware ECC strength"
        depends on NAND_VF610_NFC
@@ -103,6 +112,8 @@ config SYS_NAND_VF610_NFC_60_ECC_BYTES
 
 endchoice
 
+endif
+
 config NAND_PXA3XX
        bool "Support for NAND on PXA3xx and Armada 370/XP/38x"
        select SYS_NAND_SELF_INIT