spi-bcm2835: Support pin groups other than 7-11
authorPhil Elwell <phil@raspberrypi.org>
Wed, 24 Jun 2015 13:10:44 +0000 (14:10 +0100)
committerpopcornmix <popcornmix@gmail.com>
Mon, 20 Feb 2017 12:17:40 +0000 (12:17 +0000)
commit99d3e41dd131bad3608e45c8a4ffe4587430631a
treec6e315fba74ebd4523fb6c6f1fa5e99b0a31e69d
parent3d696cd1e30fd3fa0ff5856ed32e04b9ad8d50bd
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: Phil Elwell <phil@raspberrypi.org>
drivers/spi/spi-bcm2835.c