Skip to contentSkip to conversation

bcma: allow enabling serial flash support on non-MIPS SoCs

PATCH In review Rafał Miłecki 2 participants 2 messages Jul 18, 2016 Broadcom specific amba driver (bcma)

lore
Share & tools
lore

Rafał Miłecki

author maintainer
#0 lore raw

PATCH 1/1 bcma: allow enabling serial flash support on non-MIPS SoCs

So far we had only MIPS devices with serial flash connected to the SoC's ChipCommon. ARM devices got a separated SPI controller and weere using standard SPI drivers.
This has changed with the wireless SoC BCM47189B0. It's ARM based but has serial flash attached just like older devices. This allows using existing driver with these devices.

---
 drivers/bcma/Kconfig | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
drivers/bcma/Kconfig +9 -2
index efdc2ae..b5c48a8 100644
@@ -76,9 +76,16 @@ config BCMA_PFLASH
 	default y
 
 config BCMA_SFLASH
-	bool
-	depends on BCMA_DRIVER_MIPS
+	bool "ChipCommon-attached serial flash support"
+	depends on BCMA_HOST_SOC
 	default y
+	help
+	  Some cheap devices have serial flash connected to the ChipCommon
+	  instead of independent SPI controller. It requires using a separated
+	  driver that implements ChipCommon specific interface communication.
+
+	  Enabling this symbol will let bcma recognize serial flash and register
+	  it as platform device.
 
 config BCMA_NFLASH
 	bool
Signature · 1 line
1.8.4.5
#1 lore raw
Quoted 8 lines · Rafał Miłecki

So far we had only MIPS devices with serial flash connected to the SoC's ChipCommon. ARM devices got a separated SPI controller and weere using standard SPI drivers.
This has changed with the wireless SoC BCM47189B0. It's ARM based but has serial flash attached just like older devices. This allows using existing driver with these devices.

Thanks, 1 patch applied to wireless-drivers-next.git:

57d8f7dd2132 bcma: allow enabling serial flash support on non-MIPS SoCs

Signature · 2 lines
Sent by pwcli
https://patchwork.kernel.org/patch/9234387/