]> git.ipfire.org Git - thirdparty/u-boot.git/commit
gpio: mscc-bitbang-spi: Add a simple gpio driver for bitbgang spi
authorGregory CLEMENT <gregory.clement@bootlin.com>
Tue, 9 Oct 2018 12:08:42 +0000 (14:08 +0200)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Wed, 19 Dec 2018 14:23:01 +0000 (15:23 +0100)
commit02aea4da1d6d32e9085c2767ad55170338c27f96
treefdaa3d24666103578a27aacf08733763c9310d5c
parent53bdae241888de3d23a51735e9610389921b80ae
gpio: mscc-bitbang-spi: Add a simple gpio driver for bitbgang spi

The VCore III SoCs such as the Luton but also the Ocelot can remap an SPI
flash directly in memory. However, for writing in the flash the
communication has to be done by software.

Each of the signal used for the SPI are exposed in a single register. In
order to be able to use the soft-spi driver, the management of this pin
is done through this simple gpio driver.

Even if the main purpose of this driver is to be used by soft-spi, it can
still be used as a normal gpio driver but with limitation: for example
the first pin can't be used as output.

Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
drivers/gpio/Kconfig
drivers/gpio/Makefile
drivers/gpio/gpio-mscc-bitbang-spi.c [new file with mode: 0644]