projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5bc4861
)
spi: sun6i: Add support for GPIO chip select lines
author
Alistair Francis
<alistair@alistair23.me>
Mon, 11 May 2020 04:53:30 +0000
(21:53 -0700)
committer
Mark Brown
<broonie@kernel.org>
Mon, 11 May 2020 17:17:53 +0000
(18:17 +0100)
Set use_gpio_descriptors as true to support using generic GPIO
lines for the chip select.
Signed-off-by: Alistair Francis <alistair@alistair23.me>
Link:
https://lore.kernel.org/r/20200511045330.690507-1-alistair@alistair23.me
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-sun6i.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-sun6i.c
b/drivers/spi/spi-sun6i.c
index ec7967be9e2f5622fe1e8091e89c10e6d9399a17..ecea15534c42e1b66fa4798a85c8d2e33e085136 100644
(file)
--- a/
drivers/spi/spi-sun6i.c
+++ b/
drivers/spi/spi-sun6i.c
@@
-470,6
+470,7
@@
static int sun6i_spi_probe(struct platform_device *pdev)
master->max_speed_hz = 100 * 1000 * 1000;
master->min_speed_hz = 3 * 1000;
+ master->use_gpio_descriptors = true;
master->set_cs = sun6i_spi_set_cs;
master->transfer_one = sun6i_spi_transfer_one;
master->num_chipselect = 4;