mtd: rawnand: Move drivers for Ingenic SoCs to subfolder
authorPaul Cercueil <paul@crapouillou.net>
Tue, 19 Mar 2019 14:53:54 +0000 (15:53 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 21 Mar 2019 15:56:18 +0000 (16:56 +0100)
Before adding support for more SoCs and seeing the number of files for
these drivers grow, we move them to their own subfolder to keep it tidy.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/Kconfig
drivers/mtd/nand/raw/Makefile
drivers/mtd/nand/raw/ingenic/Kconfig [new file with mode: 0644]
drivers/mtd/nand/raw/ingenic/Makefile [new file with mode: 0644]
drivers/mtd/nand/raw/ingenic/jz4740_nand.c [moved from drivers/mtd/nand/raw/jz4740_nand.c with 100% similarity]
drivers/mtd/nand/raw/ingenic/jz4780_bch.c [moved from drivers/mtd/nand/raw/jz4780_bch.c with 100% similarity]
drivers/mtd/nand/raw/ingenic/jz4780_bch.h [moved from drivers/mtd/nand/raw/jz4780_bch.h with 100% similarity]
drivers/mtd/nand/raw/ingenic/jz4780_nand.c [moved from drivers/mtd/nand/raw/jz4780_nand.c with 100% similarity]

index e604625..705863c 100644 (file)
@@ -470,19 +470,7 @@ config MTD_NAND_NUC900
          This enables the driver for the NAND Flash on evaluation board based
          on w90p910 / NUC9xx.
 
-config MTD_NAND_JZ4740
-       tristate "Support for JZ4740 SoC NAND controller"
-       depends on MACH_JZ4740 || COMPILE_TEST
-       depends on HAS_IOMEM
-       help
-         Enables support for NAND Flash on JZ4740 SoC based boards.
-
-config MTD_NAND_JZ4780
-       tristate "Support for NAND on JZ4780 SoC"
-       depends on JZ4780_NEMC
-       help
-         Enables support for NAND Flash connected to the NEMC on JZ4780 SoC
-         based boards, using the BCH controller for hardware error correction.
+source "drivers/mtd/nand/raw/ingenic/Kconfig"
 
 config MTD_NAND_FSMC
        tristate "Support for NAND on ST Micros FSMC"
index 5a5a72f..5552c4a 100644 (file)
@@ -45,8 +45,7 @@ obj-$(CONFIG_MTD_NAND_NUC900)         += nuc900_nand.o
 obj-$(CONFIG_MTD_NAND_MPC5121_NFC)     += mpc5121_nfc.o
 obj-$(CONFIG_MTD_NAND_VF610_NFC)       += vf610_nfc.o
 obj-$(CONFIG_MTD_NAND_RICOH)           += r852.o
-obj-$(CONFIG_MTD_NAND_JZ4740)          += jz4740_nand.o
-obj-$(CONFIG_MTD_NAND_JZ4780)          += jz4780_nand.o jz4780_bch.o
+obj-y                                  += ingenic/
 obj-$(CONFIG_MTD_NAND_GPMI_NAND)       += gpmi-nand/
 obj-$(CONFIG_MTD_NAND_XWAY)            += xway_nand.o
 obj-$(CONFIG_MTD_NAND_BCM47XXNFLASH)   += bcm47xxnflash/
diff --git a/drivers/mtd/nand/raw/ingenic/Kconfig b/drivers/mtd/nand/raw/ingenic/Kconfig
new file mode 100644 (file)
index 0000000..67806c8
--- /dev/null
@@ -0,0 +1,13 @@
+config MTD_NAND_JZ4740
+       tristate "Support for JZ4740 SoC NAND controller"
+       depends on MACH_JZ4740 || COMPILE_TEST
+       depends on HAS_IOMEM
+       help
+         Enables support for NAND Flash on JZ4740 SoC based boards.
+
+config MTD_NAND_JZ4780
+       tristate "Support for NAND on JZ4780 SoC"
+       depends on JZ4780_NEMC
+       help
+         Enables support for NAND Flash connected to the NEMC on JZ4780 SoC
+         based boards, using the BCH controller for hardware error correction.
diff --git a/drivers/mtd/nand/raw/ingenic/Makefile b/drivers/mtd/nand/raw/ingenic/Makefile
new file mode 100644 (file)
index 0000000..44c2ca0
--- /dev/null
@@ -0,0 +1,2 @@
+obj-$(CONFIG_MTD_NAND_JZ4740) += jz4740_nand.o
+obj-$(CONFIG_MTD_NAND_JZ4780) += jz4780_nand.o jz4780_bch.o