Skip to content

Commit

Permalink
spi-bcm2835: Disable forced software CS
Browse files Browse the repository at this point in the history
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 <phil@raspberrypi.org>
  • Loading branch information
Phil Elwell authored and popcornmix committed Aug 29, 2018
1 parent 51b6a6b commit 604f597
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/spi/spi-bcm2835.c
Expand Up @@ -707,6 +707,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 @@ -756,6 +757,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 604f597

Please sign in to comment.