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: raspberrypi/linux#1547

Signed-off-by: Phil Elwell <[email protected]>
  • Loading branch information
Phil Elwell authored and popcornmix committed Jan 7, 2019
1 parent eeaa308 commit df92d39
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 @@ -900,6 +900,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 @@ -949,6 +950,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 df92d39

Please sign in to comment.