Skip to content
This repository was archived by the owner on Oct 25, 2022. It is now read-only.

Commit

Permalink
spi-bcm2835: Disable forced software CS
Browse files Browse the repository at this point in the history
commit 04313c2a5fe850e7cf3ba246dad6a9b7448c626b from
https://github.com/raspberrypi/linux.git

Select software CS in bcm2708_common.dtsi, and disable the automatic
conversion in the driver to allow hardware CS to be re-enabled with an
overlay.

See: raspberrypi/linux#1547

Signed-off-by: Phil Elwell <[email protected]>
Signed-off-by: Xulin Sun <[email protected]>
  • Loading branch information
Phil Elwell authored and Taoyuetao committed Jul 18, 2019
1 parent e0288f0 commit b8685e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/spi/spi-bcm2835.c
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,7 @@ static int bcm2835_spi_setup(struct spi_device *spi)
return -EINVAL;
}

#if 0
/* now translate native cs to GPIO */
/* first look for chip select pins in the devices pin groups */
for (pingroup_index = 0;
Expand Down Expand Up @@ -754,6 +755,7 @@ static int bcm2835_spi_setup(struct spi_device *spi)
spi->chip_select, spi->cs_gpio, err);
return err;
}
#endif

return 0;
}
Expand Down

0 comments on commit b8685e2

Please sign in to comment.