summaryrefslogtreecommitdiffstats
path: root/recipes-bsp
diff options
context:
space:
mode:
authorGary Thomas <gary@mlbassoc.com>2015-11-19 09:52:10 -0700
committerAndrei Gherzan <andrei@gherzan.ro>2015-12-02 15:33:43 +0100
commitbc0d788b47eeb86d7c4bee45a5131b3114f0ffc2 (patch)
tree3c93d28accb522b393dd13296a02432620217baa /recipes-bsp
parent0776b86c6629b7294ff61e67609f2d4e10e9712c (diff)
downloadmeta-raspberrypi-bc0d788b47eeb86d7c4bee45a5131b3114f0ffc2.tar.gz
rpi-config: SPI bus support
With the newer kernels that use device tree, the SPI bus is only enabled by a device tree setting. This is now supported by adding ENABLE_SPI_BUS = "1" in local.conf Signed-off-by: Gary Thomas <gary@mlbassoc.com>
Diffstat (limited to 'recipes-bsp')
-rw-r--r--recipes-bsp/bootfiles/rpi-config_git.bb6
1 files changed, 6 insertions, 0 deletions
diff --git a/recipes-bsp/bootfiles/rpi-config_git.bb b/recipes-bsp/bootfiles/rpi-config_git.bb
index 45b9f1d..aa11b25 100644
--- a/recipes-bsp/bootfiles/rpi-config_git.bb
+++ b/recipes-bsp/bootfiles/rpi-config_git.bb
@@ -66,6 +66,12 @@ do_deploy() {
66 echo "# Enable offline compositing" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt 66 echo "# Enable offline compositing" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
67 echo "dispmanx_offline=1" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt 67 echo "dispmanx_offline=1" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
68 fi 68 fi
69
70 # SPI bus support
71 if [ -n "${ENABLE_SPI_BUS}" ]; then
72 echo "# Enable SPI bus" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
73 echo "dtparam=spi=on" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
74 fi
69} 75}
70 76
71addtask deploy before do_package after do_install 77addtask deploy before do_package after do_install