mirror of
git://git.yoctoproject.org/meta-raspberrypi.git
synced 2025-07-19 21:09:03 +02:00
rpi-config_git: Added ENABLE_DUAL_CAN build configuration
Currently ENABLE_CAN adds mcp2525-can0 to the dtoverlay. ENABLE_DUAL_CAN was added to also add mcp2515-can1 to the dtoverlay. This will allow a user to enable dual CAN when using a hat like the PiCAN 2 Duo board. Signed-off-by: Colin McAllister <colinmca242@gmail.com>
This commit is contained in:
parent
73c686a70a
commit
85d3dd81c5
|
@ -198,8 +198,13 @@ do_deploy() {
|
||||||
echo "dtoverlay=at86rf233,speed=3000000" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
echo "dtoverlay=at86rf233,speed=3000000" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# ENABLE DUAL CAN
|
||||||
|
if [ "${ENABLE_DUAL_CAN}" = "1" ]; then
|
||||||
|
echo "# Enable DUAL CAN" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||||
|
echo "dtoverlay=mcp2515-can0,oscillator=16000000,interrupt=25" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||||
|
echo "dtoverlay=mcp2515-can1,oscillator=16000000,interrupt=24" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||||
# ENABLE CAN
|
# ENABLE CAN
|
||||||
if [ "${ENABLE_CAN}" = "1" ]; then
|
elif [ "${ENABLE_CAN}" = "1" ]; then
|
||||||
echo "# Enable CAN" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
echo "# Enable CAN" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||||
echo "dtoverlay=mcp2515-can0,oscillator=16000000,interrupt=25" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
echo "dtoverlay=mcp2515-can0,oscillator=16000000,interrupt=25" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user