diff options
Diffstat (limited to 'recipes-bsp')
| -rw-r--r-- | recipes-bsp/bootfiles/rpi-config_git.bb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/recipes-bsp/bootfiles/rpi-config_git.bb b/recipes-bsp/bootfiles/rpi-config_git.bb index bfe00d1..4d41723 100644 --- a/recipes-bsp/bootfiles/rpi-config_git.bb +++ b/recipes-bsp/bootfiles/rpi-config_git.bb | |||
| @@ -16,6 +16,7 @@ S = "${WORKDIR}/git" | |||
| 16 | PR = "r4" | 16 | PR = "r4" |
| 17 | 17 | ||
| 18 | PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}" | 18 | PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}" |
| 19 | PITFT22="${@bb.utils.contains("MACHINE_FEATURES", "pitft22", "1", "0", d)}" | ||
| 19 | 20 | ||
| 20 | inherit deploy | 21 | inherit deploy |
| 21 | 22 | ||
| @@ -83,6 +84,12 @@ do_deploy() { | |||
| 83 | echo "dtparam=i2c1=on" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt | 84 | echo "dtparam=i2c1=on" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt |
| 84 | echo "dtparam=i2c_arm=on" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt | 85 | echo "dtparam=i2c_arm=on" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt |
| 85 | fi | 86 | fi |
| 87 | |||
| 88 | # PiTFT22 display support | ||
| 89 | if [ "${PITFT22}" = "1" ]; then | ||
| 90 | echo "# Enable PITFT22 display" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt | ||
| 91 | echo "dtoverlay=pitft22,rotate=270,speed=32000000,txbuflen=32768" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt | ||
| 92 | fi | ||
| 86 | } | 93 | } |
| 87 | 94 | ||
| 88 | addtask deploy before do_package after do_install | 95 | addtask deploy before do_package after do_install |
