Skip to content

Commit 0b89fc0

Browse files
macromorganbroonie
authored andcommitted
spi: rockchip-sfc: add rockchip serial flash controller
Add the rockchip serial flash controller (SFC) driver. Signed-off-by: Chris Morgan <[email protected]> Signed-off-by: Jon Lin <[email protected]> Tested-by: Peter Geis <[email protected]> Tested-by: Chris Morgan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 538d7c2 commit 0b89fc0

File tree

3 files changed

+707
-0
lines changed

3 files changed

+707
-0
lines changed

drivers/spi/Kconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,18 @@ config SPI_ROCKCHIP
658658
The main usecase of this controller is to use spi flash as boot
659659
device.
660660

661+
config SPI_ROCKCHIP_SFC
662+
tristate "Rockchip Serial Flash Controller (SFC)"
663+
depends on ARCH_ROCKCHIP || COMPILE_TEST
664+
depends on HAS_IOMEM && HAS_DMA
665+
help
666+
This enables support for Rockchip serial flash controller. This
667+
is a specialized controller used to access SPI flash on some
668+
Rockchip SOCs.
669+
670+
ROCKCHIP SFC supports DMA and PIO modes. When DMA is not available,
671+
the driver automatically falls back to PIO mode.
672+
661673
config SPI_RB4XX
662674
tristate "Mikrotik RB4XX SPI master"
663675
depends on SPI_MASTER && ATH79

drivers/spi/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ obj-$(CONFIG_SPI_QCOM_GENI) += spi-geni-qcom.o
9595
obj-$(CONFIG_SPI_QCOM_QSPI) += spi-qcom-qspi.o
9696
obj-$(CONFIG_SPI_QUP) += spi-qup.o
9797
obj-$(CONFIG_SPI_ROCKCHIP) += spi-rockchip.o
98+
obj-$(CONFIG_SPI_ROCKCHIP_SFC) += spi-rockchip-sfc.o
9899
obj-$(CONFIG_SPI_RB4XX) += spi-rb4xx.o
99100
obj-$(CONFIG_MACH_REALTEK_RTL) += spi-realtek-rtl.o
100101
obj-$(CONFIG_SPI_RPCIF) += spi-rpc-if.o

0 commit comments

Comments
 (0)