Skip to contentSkip to conversation

mtd: bcm53xxnflash: add driver for NAND on new BCMA SoCs

WIP New Rafał Miłecki 1 participant 2 messages Feb 24, 2014 – Feb 25, 2014

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

---
It doesn't implement NAND operations in any way yet. I'll continue working on this, but wanted avoid duplicating work with sb else.

---
 drivers/mtd/nand/Kconfig         |   9 +++
 drivers/mtd/nand/Makefile        |   1 +
 drivers/mtd/nand/bcm53xxnflash.c | 144 +++++++++++++++++++++++++++++++++++++++
 drivers/mtd/nand/bcm53xxnflash.h | 126 ++++++++++++++++++++++++++++++++++
 4 files changed, 280 insertions(+)
 create mode 100644 drivers/mtd/nand/bcm53xxnflash.c
 create mode 100644 drivers/mtd/nand/bcm53xxnflash.h
drivers/mtd/nand/Kconfig +9 -0
index a5bb738..d33c80a 100644
@@ -397,6 +397,15 @@ config MTD_NAND_BCM47XXNFLASH
 	  registered by bcma as platform devices. This enables driver for
 	  NAND flash memories. For now only BCM4706 is supported.
 
+config MTD_NAND_BCM53XXNFLASH
+	tristate "Support for BCMA NAND attached as standalone core"
+	depends on BCMA
+	help
+	  This enables support for NAND flash memories attached to BCMA bus as
+	  separated bus cores. They most probably can be found only on ARM based
+	  Broadcom SoCs. System reports such devices as:
+	  bcma: bus0: Core N found: NAND flash controller (...)
+
 config MTD_NAND_PLATFORM
 	tristate "Support for generic platform NAND driver"
 	depends on HAS_IOMEM
drivers/mtd/nand/Makefile +1 -0
index 542b568..680c356 100644
@@ -49,5 +49,6 @@ obj-$(CONFIG_MTD_NAND_JZ4740)		+= jz4740_nand.o
 obj-$(CONFIG_MTD_NAND_GPMI_NAND)	+= gpmi-nand/
 obj-$(CONFIG_MTD_NAND_XWAY)		+= xway_nand.o
 obj-$(CONFIG_MTD_NAND_BCM47XXNFLASH)	+= bcm47xxnflash/
+obj-$(CONFIG_MTD_NAND_BCM53XXNFLASH)	+= bcm53xxnflash.o
 
 nand-objs := nand_base.o nand_bbt.o
drivers/mtd/nand/bcm53xxnflash.c new file +144 -0

144 lines not on this page · raw message

drivers/mtd/nand/bcm53xxnflash.h new file +126 -0

126 lines not on this page · raw message

Signature · 1 line
1.8.4.5
#1 lore raw

PATCH v2 1/1 mtd: bcm53xxnflash: add driver for NAND on new BCMA SoCs

---
This version implements NAND_CMD_READID and few other simple ones.

---
 drivers/mtd/nand/Kconfig         |   9 ++
 drivers/mtd/nand/Makefile        |   1 +
 drivers/mtd/nand/bcm53xxnflash.c | 254 +++++++++++++++++++++++++++++++++++++++
 drivers/mtd/nand/bcm53xxnflash.h | 159 ++++++++++++++++++++++++
 4 files changed, 423 insertions(+)
 create mode 100644 drivers/mtd/nand/bcm53xxnflash.c
 create mode 100644 drivers/mtd/nand/bcm53xxnflash.h
drivers/mtd/nand/Kconfig +9 -0
index a5bb738..d33c80a 100644
@@ -397,6 +397,15 @@ config MTD_NAND_BCM47XXNFLASH
 	  registered by bcma as platform devices. This enables driver for
 	  NAND flash memories. For now only BCM4706 is supported.
 
+config MTD_NAND_BCM53XXNFLASH
+	tristate "Support for BCMA NAND attached as standalone core"
+	depends on BCMA
+	help
+	  This enables support for NAND flash memories attached to BCMA bus as
+	  separated bus cores. They most probably can be found only on ARM based
+	  Broadcom SoCs. System reports such devices as:
+	  bcma: bus0: Core N found: NAND flash controller (...)
+
 config MTD_NAND_PLATFORM
 	tristate "Support for generic platform NAND driver"
 	depends on HAS_IOMEM
drivers/mtd/nand/Makefile +1 -0
index 542b568..680c356 100644
@@ -49,5 +49,6 @@ obj-$(CONFIG_MTD_NAND_JZ4740)		+= jz4740_nand.o
 obj-$(CONFIG_MTD_NAND_GPMI_NAND)	+= gpmi-nand/
 obj-$(CONFIG_MTD_NAND_XWAY)		+= xway_nand.o
 obj-$(CONFIG_MTD_NAND_BCM47XXNFLASH)	+= bcm47xxnflash/
+obj-$(CONFIG_MTD_NAND_BCM53XXNFLASH)	+= bcm53xxnflash.o
 
 nand-objs := nand_base.o nand_bbt.o
drivers/mtd/nand/bcm53xxnflash.c new file +254 -0

254 lines not on this page · raw message

drivers/mtd/nand/bcm53xxnflash.h new file +159 -0

159 lines not on this page · raw message

Signature · 1 line
1.8.4.5