mtd: bcm53xxspiflash: new driver for SPI flahes on Broadcom ARM SoCs
Subsystems (2)
PATCH 1/1 mtd: bcm53xxspiflash: new driver for SPI flahes on Broadcom ARM SoCs
Broadcom ARM SoCs often include SPI controller, it's used to attach flash chip. It's registered as "bcm53xxspiflash" SPI device. This patch adds SPI driver that handles such flashes. It uses spi-nor framework to share some code and devices database.
Support for wait_till_ready is not implemented yet, so it's disabled (depends on BROKEN) right now. We'll be able to enable it once we clean the wait_till_ready.
---
This driver was succesfully tested with two ARM routers, one with "w25q128" and the other one with "mx25l25635f" chips. Support for the "mx25l25635f" is currently not included, as it needs some cleaning before I can push it.
This driver doesn't work for flash found in Netgear R6250. It replies with 0xFF all the time, so it may be some bug in controller driver.
--- drivers/mtd/spi-nor/Kconfig | 6 + drivers/mtd/spi-nor/Makefile | 1 + drivers/mtd/spi-nor/bcm53xxspiflash.c | 241 ++++++++++++++++++++++++++++++++++ 3 files changed, 248 insertions(+) create mode 100644 drivers/mtd/spi-nor/bcm53xxspiflash.c
drivers/mtd/spi-nor/Kconfig +6 -0
@@ -28,4 +28,10 @@ config SPI_FSL_QUADSPI This enables support for the Quad SPI controller in master mode. We only connect the NOR to this controller now. +config MTD_SPI_BCM53XXSPIFLASH + tristate "SPI-NOR flashes connected to the Broadcom ARM SoC" + depends on MTD_SPI_NOR && BROKEN + help + SPI driver for flashes used on Broadcom ARM SoCs. + endif # MTD_SPI_NOR
drivers/mtd/spi-nor/Makefile +1 -0
@@ -1,2 +1,3 @@ obj-$(CONFIG_MTD_SPI_NOR) += spi-nor.o obj-$(CONFIG_SPI_FSL_QUADSPI) += fsl-quadspi.o +obj-$(CONFIG_MTD_SPI_BCM53XXSPIFLASH) += bcm53xxspiflash.o
drivers/mtd/spi-nor/bcm53xxspiflash.c new file +241 -0
241 lines not on this page · raw message
Signature · 1 line
1.8.4.5