aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-pxa2xx.h
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2018-11-13 11:22:27 +0100
committerMark Brown <broonie@kernel.org>2018-11-13 10:02:09 -0800
commit77d33897c68d56797a3201e06bdf10e2094a96d6 (patch)
tree8b762b220b3a3b7d72d2987fc844295dfb06cb98 /drivers/spi/spi-pxa2xx.h
parentspi: pxa2xx: dt-bindings: Add ready GPIO signal (diff)
downloadlinux-dev-77d33897c68d56797a3201e06bdf10e2094a96d6.tar.xz
linux-dev-77d33897c68d56797a3201e06bdf10e2094a96d6.zip
spi: pxa2xx: Add ready signal
Strobe a GPIO line when the slave TX FIFO is filled. This is how the Embedded Controller on an OLPC XO-1.75 machine, that happens to be a SPI master, learns that it can initiate a transaction. Signed-off-by: Lubomir Rintel <lkundrak@v3.sk> Tested-by: Pavel Machek <pavel@ucw.cz> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-pxa2xx.h')
-rw-r--r--drivers/spi/spi-pxa2xx.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/spi/spi-pxa2xx.h b/drivers/spi/spi-pxa2xx.h
index 513c53aaeab2..4e324da66ef7 100644
--- a/drivers/spi/spi-pxa2xx.h
+++ b/drivers/spi/spi-pxa2xx.h
@@ -64,6 +64,9 @@ struct driver_data {
/* GPIOs for chip selects */
struct gpio_desc **cs_gpiods;
+
+ /* Optional slave FIFO ready signal */
+ struct gpio_desc *gpiod_ready;
};
struct chip_data {