diff options
-rw-r--r-- | README | 5 | ||||
-rw-r--r-- | recipes-bsp/bootfiles/rpi-config_git.bb | 6 |
2 files changed, 11 insertions, 0 deletions
@@ -189,6 +189,11 @@ kernels. | |||
189 | NOTE: KERNEL_DEVICETREE is default enabled for kernel >= 3.18 and always disabled for | 189 | NOTE: KERNEL_DEVICETREE is default enabled for kernel >= 3.18 and always disabled for |
190 | older kernel versions. | 190 | older kernel versions. |
191 | 191 | ||
192 | 2.M. Optional - enable SPI bus | ||
193 | ============================== | ||
194 | When using device tree kernels, set this variable to enable the SPI bus | ||
195 | ENABLE_SPI_BUS = "1" | ||
196 | |||
192 | 3. Extra apps | 197 | 3. Extra apps |
193 | ============= | 198 | ============= |
194 | 199 | ||
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 | ||
71 | addtask deploy before do_package after do_install | 77 | addtask deploy before do_package after do_install |