summaryrefslogtreecommitdiffstats
path: root/lib/lcm.c
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2016-05-19 09:07:05 +0200
committerMark Brown <broonie@kernel.org>2016-05-30 18:01:20 +0200
commitb3c195b3a75b0aff9ede850ba2208cd1f40a702b (patch)
tree8b4fda2c2ab5fb2ae01bf2326bd93be639f35b08 /lib/lcm.c
parentLinux 4.7-rc1 (diff)
downloadlinux-b3c195b3a75b0aff9ede850ba2208cd1f40a702b.tar.xz
linux-b3c195b3a75b0aff9ede850ba2208cd1f40a702b.zip
spi: orion: Add direct access mode
This patch adds support for the direct access mode to the Orion SPI driver which is used on the Marvell Armada based SoCs. In this direct mode, all data written to (or read from) a specifically mapped MBus window (linked to one SPI chip-select on one of the SPI controllers) will be transferred directly to the SPI bus. Without the need to control the SPI registers in between. This can improve the SPI transfer rate in such cases. Both, direct-read and -write mode are supported. But only the write mode has been tested. This mode especially benefits from the SPI direct mode, as the data bytes are written head-to-head to the SPI bus, without any additional addresses. One use-case for this direct write mode is, programming a FPGA bitstream image into the FPGA connected to the SPI bus at maximum speed. This mode is described in chapter "22.5.2 Direct Write to SPI" in the Marvell Armada XP Functional Spec Datasheet. Signed-off-by: Stefan Roese <sr@denx.de> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'lib/lcm.c')
0 files changed, 0 insertions, 0 deletions