Commit 19bcdacc authored by Phil Elwell's avatar Phil Elwell Committed by popcornmix
Browse files

spi-bcm2835: Support pin groups other than 7-11



The spi-bcm2835 driver automatically uses GPIO chip-selects due to
some unreliability of the native ones. In doing so it chooses the
same pins as the native chip-selects would use, but the existing
code always uses pins 7 and 8, wherever the SPI function is mapped.

Search the pinctrl group assigned to the driver for pins that
correspond to native chip-selects, and use those for GPIO chip-
selects.

Signed-off-by: default avatarPhil Elwell <phil@raspberrypi.org>
parent b949246b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment