]> git.baikalelectronics.ru Git - kernel.git/commitdiff
mtd: rawnand: brcmnand: Move Kconfig to driver folder
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 11 Jul 2022 22:23:22 +0000 (15:23 -0700)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 21 Sep 2022 08:38:46 +0000 (10:38 +0200)
In preparation for allowing each of the brcmnand stub to be built
separately, move the Kconfig entry to the driver folder.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220711222323.4048197-2-f.fainelli@gmail.com
drivers/mtd/nand/raw/Kconfig
drivers/mtd/nand/raw/brcmnand/Kconfig [new file with mode: 0644]

index 8b6d7a515445e6dc828a8e01a481e6d4a92018ce..43a151b4c8fc69400596963d5fafec38cab75a7d 100644 (file)
@@ -200,27 +200,7 @@ config MTD_NAND_TMIO
          Support for NAND flash connected to a Toshiba Mobile IO
          Controller in some PDAs, including the Sharp SL6000x.
 
-config MTD_NAND_BRCMNAND
-       tristate "Broadcom STB NAND controller"
-       depends on ARM || ARM64 || MIPS || COMPILE_TEST
-       depends on HAS_IOMEM
-       help
-         Enables the Broadcom NAND controller driver. The controller was
-         originally designed for Set-Top Box but is used on various BCM7xxx,
-         BCM3xxx, BCM63xxx, iProc/Cygnus and more.
-
-if MTD_NAND_BRCMNAND
-
-config MTD_NAND_BRCMNAND_BCMA
-       tristate "Broadcom BCMA NAND controller"
-       depends on BCMA_NFLASH
-       depends on BCMA
-       help
-         Enables the BRCMNAND controller over BCMA on BCM47186/BCM5358 SoCs.
-         The glue driver will take care of performing the low-level I/O
-         operations to interface the BRCMNAND controller over the BCMA bus.
-
-endif # MTD_NAND_BRCMNAND
+source "drivers/mtd/nand/raw/brcmnand/Kconfig"
 
 config MTD_NAND_BCM47XXNFLASH
        tristate "BCM4706 BCMA NAND controller"
diff --git a/drivers/mtd/nand/raw/brcmnand/Kconfig b/drivers/mtd/nand/raw/brcmnand/Kconfig
new file mode 100644 (file)
index 0000000..d5a0265
--- /dev/null
@@ -0,0 +1,21 @@
+config MTD_NAND_BRCMNAND
+       tristate "Broadcom STB NAND controller"
+       depends on ARM || ARM64 || MIPS || COMPILE_TEST
+       depends on HAS_IOMEM
+       help
+         Enables the Broadcom NAND controller driver. The controller was
+         originally designed for Set-Top Box but is used on various BCM7xxx,
+         BCM3xxx, BCM63xxx, iProc/Cygnus and more.
+
+if MTD_NAND_BRCMNAND
+
+config MTD_NAND_BRCMNAND_BCMA
+       tristate "Broadcom BCMA NAND controller"
+       depends on BCMA_NFLASH
+       depends on BCMA
+       help
+         Enables the BRCMNAND controller over BCMA on BCM47186/BCM5358 SoCs.
+         The glue driver will take care of performing the low-level I/O
+         operations to interface the BRCMNAND controller over the BCMA bus.
+
+endif # MTD_NAND_BRCMNAND