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 <[email protected]>
  • Loading branch information
Phil Elwell authored and TiejunChina committed Jun 19, 2019
1 parent 2eb6f8d commit 22fedd5
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 22fedd5

Please sign in to comment.