]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 16 Feb 2018 22:07:00 +0000 (17:07 -0500)
commit2d509b1b050e657ddc1ea629e91b22b5d682e4f2
tree9c9d43b92cdf9a72bb1e5ad256bec521df5eccd1
parent140c946d2a0c38415349068da38f68b882004285
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