diff options
author | Alistair Francis <alistair@alistair23.me> | 2020-05-10 21:53:30 -0700 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-05-11 18:17:53 +0100 |
commit | 74750e0621cdcee53a7be72142a080bf40ed90c8 (patch) | |
tree | ec1be237be278dd8796b316b9423f7e351a97c2c /drivers/spi/spi-sun6i.c | |
parent | 5bc486156d840c15fb65c96da24f20687a07b2a4 (diff) |
spi: sun6i: Add support for GPIO chip select lines
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>
Diffstat (limited to 'drivers/spi/spi-sun6i.c')
-rw-r--r-- | drivers/spi/spi-sun6i.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spi-sun6i.c b/drivers/spi/spi-sun6i.c index ec7967be9e2f..ecea15534c42 100644 --- 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; |