Skip to content

Commit 22fedd5

Browse files
Phil ElwellTiejunChina
Phil Elwell
authored andcommitted
spi-bcm2835: Disable forced software CS
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: #1547 Signed-off-by: Phil Elwell <[email protected]>
1 parent 2eb6f8d commit 22fedd5

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)