]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit434099912851b942dc6438742e0153d82f7c7d8c
tree36420ae8ed10e7f2b83d7b9704ce10c926673075
parentd7cd6ffd5964e11d30ffe0e5f3ab4fab8ea98245
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]