spi: rockchip_sfc: add support for Rockchip SFC
authorChris Morgan <macromorgan@hotmail.com>
Thu, 5 Aug 2021 08:26:38 +0000 (16:26 +0800)
committerKever Yang <kever.yang@rock-chips.com>
Thu, 12 Aug 2021 01:34:11 +0000 (09:34 +0800)
commit3fb08a21387b9f4f24cfd5b45f9d7f344d40fba4
tree36420ae8ed10e7f2b83d7b9704ce10c926673075
parent475bb949ed191bc00e08781a56a4a1e83fd76242
spi: rockchip_sfc: add support for Rockchip SFC

This patch adds support for the Rockchip serial flash controller
found on the PX30 SoC. It should work for versions 3-5 of the SFC
IP, however I am only able to test it on v3.

This is adapted from the WIP SPI-MEM driver for the SFC on mainline
Linux. Note that the main difference between this and earlier versions
of the driver is that this one does not support DMA. In testing
the performance difference (performing a dual mode read on a 128Mb
chip) is negligible. DMA, if used, must also be disabled in SPL
mode when using A-TF anyway.

Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
drivers/spi/Kconfig
drivers/spi/Makefile
drivers/spi/rockchip_sfc.c [new file with mode: 0644]