Skip to content

Commit a38a223

Browse files
William Zhangbroonie
authored andcommitted
spi: bcmbca-hsspi: Add driver for newer HSSPI controller
The newer BCMBCA SoCs such as BCM6756, BCM4912 and BCM6855 include an updated SPI controller that add the capability to allow the driver to control chip select explicitly. Driver can control and keep cs low between the transfers natively. Hence the dummy cs workaround or prepend mode found in the bcm63xx-hsspi driver are no longer needed and this new driver is much cleaner. Signed-off-by: William Zhang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent c6182a1 commit a38a223

File tree

3 files changed

+661
-0
lines changed

3 files changed

+661
-0
lines changed

drivers/spi/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,15 @@ config SPI_BCM_QSPI
199199
based platforms. This driver works for both SPI master for SPI NOR
200200
flash device as well as MSPI device.
201201

202+
config SPI_BCMBCA_HSSPI
203+
tristate "Broadcom BCMBCA HS SPI controller driver"
204+
depends on ARCH_BCMBCA || COMPILE_TEST
205+
help
206+
This enables support for the High Speed SPI controller present on
207+
newer Broadcom BCMBCA SoCs. These SoCs include an updated SPI controller
208+
that adds the capability to allow the driver to control chip select
209+
explicitly.
210+
202211
config SPI_BITBANG
203212
tristate "Utilities for Bitbanging SPI masters"
204213
help

drivers/spi/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ obj-$(CONFIG_SPI_BCM2835) += spi-bcm2835.o
3030
obj-$(CONFIG_SPI_BCM2835AUX) += spi-bcm2835aux.o
3131
obj-$(CONFIG_SPI_BCM63XX) += spi-bcm63xx.o
3232
obj-$(CONFIG_SPI_BCM63XX_HSSPI) += spi-bcm63xx-hsspi.o
33+
obj-$(CONFIG_SPI_BCMBCA_HSSPI) += spi-bcmbca-hsspi.o
3334
obj-$(CONFIG_SPI_BCM_QSPI) += spi-iproc-qspi.o spi-brcmstb-qspi.o spi-bcm-qspi.o
3435
obj-$(CONFIG_SPI_BITBANG) += spi-bitbang.o
3536
obj-$(CONFIG_SPI_BUTTERFLY) += spi-butterfly.o

0 commit comments

Comments
 (0)