Skip to contentSkip to conversation

mtd: rawnand: brcmnand: Glue driver Kconfig entries

PATCH Applied Florian Fainelli 2 participants 9 messages Jul 11, 2022 – Sep 20, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover mtd: rawnand: brcmnand: Glue driver Kconfig entries

Hi all,

This patch series allows for a finer control over the BRCMNAND driver glue driver selection such that it defaults to the various platforms enabled in the configuration file.

Florian Fainelli (2):
mtd: rawnand: brcmnand: Move Kconfig to driver folder
mtd: rawnand: brcmnand: Add individual glue driver selection

 drivers/mtd/nand/raw/Kconfig           | 22 +-----------
 drivers/mtd/nand/raw/brcmnand/Kconfig  | 49 ++++++++++++++++++++++++++
 drivers/mtd/nand/raw/brcmnand/Makefile |  8 ++---
 3 files changed, 54 insertions(+), 25 deletions(-)
 create mode 100644 drivers/mtd/nand/raw/brcmnand/Kconfig
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/2 mtd: rawnand: brcmnand: Move Kconfig to driver folder

In preparation for allowing each of the brcmnand stub to be built separately, move the Kconfig entry to the driver folder.

---
 drivers/mtd/nand/raw/Kconfig          | 22 +---------------------
 drivers/mtd/nand/raw/brcmnand/Kconfig | 21 +++++++++++++++++++++
 2 files changed, 22 insertions(+), 21 deletions(-)
 create mode 100644 drivers/mtd/nand/raw/brcmnand/Kconfig
drivers/mtd/nand/raw/Kconfig +1 -21
index 8b6d7a515445..43a151b4c8fc 100644
@@ -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"
drivers/mtd/nand/raw/brcmnand/Kconfig new file +21 -0
new file mode 100644
index 000000000000..d5a0265525ca
@@ -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
Signature · 1 line
2.25.1
maintainer Applied
#2 lore raw

Re: [PATCH 1/2] mtd: rawnand: brcmnand: Move Kconfig to driver folder

Quoted 4 lines · Florian Fainelli

In preparation for allowing each of the brcmnand stub to be built separately, move the Kconfig entry to the driver folder.

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

Miquel

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

#3 lore raw

PATCH 2/2 mtd: rawnand: brcmnand: Add individual glue driver selection

In reply to Florian Fainelli

Allow each platform to define a dedicated Kconfig entry for its glue driver such that we can decide on a per-platfomr basis whether to build it or not. This allows for a finer grained control over the resulting kernel image or set of modules.

---
 drivers/mtd/nand/raw/brcmnand/Kconfig  | 28 ++++++++++++++++++++++++++
 drivers/mtd/nand/raw/brcmnand/Makefile |  8 ++++----
 2 files changed, 32 insertions(+), 4 deletions(-)
drivers/mtd/nand/raw/brcmnand/Kconfig +28 -0
index d5a0265525ca..4bc51bf60aca 100644
@@ -9,6 +9,13 @@ config MTD_NAND_BRCMNAND
 
 if MTD_NAND_BRCMNAND
 
+config MTD_NAND_BRCMNAND_BCM63XX
+	tristate "Broadcom BCM63xx NAND controller glue"
+	default BCM63XX
+	help
+	  Enables the BRCMNAND glue driver to register the NAND controller
+	  on Broadcom BCM63xx MIPS-based DSL platforms.
+
 config MTD_NAND_BRCMNAND_BCMA
 	tristate "Broadcom BCMA NAND controller"
 	depends on BCMA_NFLASH
@@ -18,4 +25,25 @@ config MTD_NAND_BRCMNAND_BCMA
 	  The glue driver will take care of performing the low-level I/O
 	  operations to interface the BRCMNAND controller over the BCMA bus.
 
+config MTD_NAND_BRCMNAND_BCMBCA
+	tristate "Broadcom BCMBCA NAND controller glue"
+	default ARCH_BCMBCA
+	help
+	  Enables the BRCMNAND glue driver to register the NAND controller
+	  on Broadcom BCA platforms.
+
+config MTD_NAND_BRCMNAND_BRCMSTB
+	tristate "Broadcom STB Nand controller glue"
+	default ARCH_BRCMSTB
+	help
+	  Enables the BRCMNAND glue driver to register the NAND controller
+	  on Broadcom STB platforms.
+
+config MTD_NAND_BRCMNAND_IPROC
+	tristate "Broadcom iProc NAND controller glue"
+	default ARCH_BCM_IPROC
+	help
+	  Enables the BRCMNAND controller glue driver to register the NAND
+	  controller on Broadcom iProc platforms.
+
 endif # MTD_NAND_BRCMNAND
drivers/mtd/nand/raw/brcmnand/Makefile +4 -4
index 16dc7254200e..9907e3ec4bb2 100644
@@ -1,10 +1,10 @@
 # SPDX-License-Identifier: GPL-2.0
 # link order matters; don't link the more generic brcmstb_nand.o before the
 # more specific iproc_nand.o, for instance
-obj-$(CONFIG_MTD_NAND_BRCMNAND)		+= iproc_nand.o
-obj-$(CONFIG_MTD_NAND_BRCMNAND)		+= bcm63138_nand.o
-obj-$(CONFIG_MTD_NAND_BRCMNAND)		+= bcm6368_nand.o
-obj-$(CONFIG_MTD_NAND_BRCMNAND)		+= brcmstb_nand.o
+obj-$(CONFIG_MTD_NAND_BRCMNAND_IPROC)	+= iproc_nand.o
+obj-$(CONFIG_MTD_NAND_BRCMNAND_BCMBCA)	+= bcm63138_nand.o
+obj-$(CONFIG_MTD_NAND_BRCMNAND_BCM63XX)	+= bcm6368_nand.o
+obj-$(CONFIG_MTD_NAND_BRCMNAND_BRCMSTB)	+= brcmstb_nand.o
 obj-$(CONFIG_MTD_NAND_BRCMNAND)		+= brcmnand.o
 
 obj-$(CONFIG_MTD_NAND_BRCMNAND_BCMA)	+= bcma_nand.o
Signature · 1 line
2.25.1
maintainer Applied
#4 lore raw

Re: [PATCH 2/2] mtd: rawnand: brcmnand: Add individual glue driver selection

Quoted 6 lines · Florian Fainelli

Allow each platform to define a dedicated Kconfig entry for its glue driver such that we can decide on a per-platfomr basis whether to build it or not. This allows for a finer grained control over the resulting kernel image or set of modules.

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

Miquel

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

#5 lore raw
In reply to Florian Fainelli
Quoted 5 lines · Florian Fainelli

Hi all,

This patch series allows for a finer control over the BRCMNAND driver glue driver selection such that it defaults to the various platforms enabled in the configuration file.

Miquel are you able to review and apply those patches if satisfactory? Thanks!

Quoted 11 lines

Florian Fainelli (2):
mtd: rawnand: brcmnand: Move Kconfig to driver folder
mtd: rawnand: brcmnand: Add individual glue driver selection

 drivers/mtd/nand/raw/Kconfig           | 22 +-----------
 drivers/mtd/nand/raw/brcmnand/Kconfig  | 49 ++++++++++++++++++++++++++
 drivers/mtd/nand/raw/brcmnand/Makefile |  8 ++---
 3 files changed, 54 insertions(+), 25 deletions(-)
 create mode 100644 drivers/mtd/nand/raw/brcmnand/Kconfig
Signature · 1 line
Florian
#6 lore raw
Quoted 8 lines · Florian Fainelli
Quoted 5 lines · Florian Fainelli

Hi all,

This patch series allows for a finer control over the BRCMNAND driver glue driver selection such that it defaults to the various platforms enabled in the configuration file.

Miquel are you able to review and apply those patches if satisfactory? Thanks!

Ping?

Signature · 1 line
Florian
maintainer
#7 lore raw

Hello Florian,

[email protected] wrote on Sat, 3 Sep 2022 11:42:07 -0700:

Quoted 11 lines · Florian Fainelli
Quoted 8 lines · Florian Fainelli
Quoted 5 lines

Hi all,

This patch series allows for a finer control over the BRCMNAND driver glue driver selection such that it defaults to the various platforms enabled in the configuration file.

Miquel are you able to review and apply those patches if satisfactory? Thanks!

Ping?

Sorry for the delay, I was off for almost all July/August, I need to sync with Richard and start catching up. I'll do my best but with LPC/ELC-E approaching, I'm far from close to have enough spare time! At the latest, I will settle the situation right after those conferences.

Thanks,
Miquèl

maintainer
#8 lore raw
In reply to Florian Fainelli

Hi Florian,

[email protected] wrote on Thu, 4 Aug 2022 10:55:21 -0700:

Quoted 8 lines · Florian Fainelli
Quoted 5 lines

Hi all,

This patch series allows for a finer control over the BRCMNAND driver glue driver selection such that it defaults to the various platforms enabled in the configuration file.

Miquel are you able to review and apply those patches if satisfactory? Thanks!

Sorry for the huge delay, I'm now trying to catch up on all my work left since end of June, the series looks ok at a first glance and received no comments so I'll apply it soon.

Thanks,
Miquèl

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/