mirror of
git://git.yoctoproject.org/meta-raspberrypi.git
synced 2025-07-19 21:09:03 +02:00
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>
This commit is contained in:
parent
0776b86c66
commit
bc0d788b47
5
README
5
README
|
@ -189,6 +189,11 @@ kernels.
|
||||||
NOTE: KERNEL_DEVICETREE is default enabled for kernel >= 3.18 and always disabled for
|
NOTE: KERNEL_DEVICETREE is default enabled for kernel >= 3.18 and always disabled for
|
||||||
older kernel versions.
|
older kernel versions.
|
||||||
|
|
||||||
|
2.M. Optional - enable SPI bus
|
||||||
|
==============================
|
||||||
|
When using device tree kernels, set this variable to enable the SPI bus
|
||||||
|
ENABLE_SPI_BUS = "1"
|
||||||
|
|
||||||
3. Extra apps
|
3. Extra apps
|
||||||
=============
|
=============
|
||||||
|
|
||||||
|
|
|
@ -66,6 +66,12 @@ do_deploy() {
|
||||||
echo "# Enable offline compositing" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
echo "# Enable offline compositing" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||||
echo "dispmanx_offline=1" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
echo "dispmanx_offline=1" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# SPI bus support
|
||||||
|
if [ -n "${ENABLE_SPI_BUS}" ]; then
|
||||||
|
echo "# Enable SPI bus" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||||
|
echo "dtparam=spi=on" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
addtask deploy before do_package after do_install
|
addtask deploy before do_package after do_install
|
||||||
|
|
Loading…
Reference in New Issue
Block a user