Linux: Default SPI driver set to SPIDEV (#847)

This commit is contained in:
Marcelo Aquino
2017-05-16 08:00:24 +02:00
committed by Olivier
parent 34444a48b3
commit 14766382d3
4 changed files with 7 additions and 7 deletions
Vendored
+5 -1
View File
@@ -510,12 +510,16 @@ if [ -z "${SPI_DRIVER}" ]; then
if [ -n "${SPI_DRIVER}" ]; then
echo " [OK] SPI driver detected:${SPI_DRIVER}."
else
echo " [WARNING] No supported SPI driver detected."
echo " [WARNING] No supported SPI driver detected. Using SPIDEV."
SPI_DRIVER=SPIDEV
fi
fi
if [ -n "${SPI_DRIVER}" ]; then
case ${SPI_DRIVER} in
BCM)
if [[ $SOC != "BCM2835" && $SOC != "BCM2836" && $SOC != "BCM2837" ]]; then
die "BCM SPI driver is only supported for SOCs BCM2835, BCM2836 or BCM2837" 5
fi
CPPFLAGS="-DLINUX_SPI_BCM $CPPFLAGS"
;;
SPIDEV)