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

Commit b8685e2

Browse files
Phil ElwellTaoyuetao
Phil Elwell
authored andcommitted
spi-bcm2835: Disable forced software CS
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]>
1 parent e0288f0 commit b8685e2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/spi/spi-bcm2835.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,7 @@ static int bcm2835_spi_setup(struct spi_device *spi)
705705
return -EINVAL;
706706
}
707707

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

758760
return 0;
759761
}

0 commit comments

Comments
 (0)