diff options
| author | Petter Mabäcker <petter@technux.se> | 2016-03-30 16:35:45 +0200 |
|---|---|---|
| committer | Andrei Gherzan <andrei@gherzan.ro> | 2016-04-13 03:16:02 +0200 |
| commit | 9797874a23ccf61f7559e22c9bbfff4f27e24d32 (patch) | |
| tree | 3cac56e39d9cb9e0d4cf06ed742f965650530fb0 /recipes-bsp/bootfiles | |
| parent | 84af6e7de3b8ea64ab374028aa95dc3a288ae85c (diff) | |
| download | meta-raspberrypi-9797874a23ccf61f7559e22c9bbfff4f27e24d32.tar.gz | |
pitft: Add support for pitft28r
The support for PiTFT 28 inch resistive touchscreen is optional
and can be enabled by adding below in local.conf:
MACHINE_FEATURES += "pitft pitft28r"
While at it also fix a minor typo in README.
Signed-off-by: Petter Mabäcker <petter@technux.se>
Diffstat (limited to 'recipes-bsp/bootfiles')
| -rw-r--r-- | recipes-bsp/bootfiles/rpi-config_git.bb | 6 |
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 4d41723..2941982 100644 --- a/recipes-bsp/bootfiles/rpi-config_git.bb +++ b/recipes-bsp/bootfiles/rpi-config_git.bb | |||
| @@ -17,6 +17,7 @@ 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 | PITFT22="${@bb.utils.contains("MACHINE_FEATURES", "pitft22", "1", "0", d)}" |
| 20 | PITFT28r="${@bb.utils.contains("MACHINE_FEATURES", "pitft28r", "1", "0", d)}" | ||
| 20 | 21 | ||
| 21 | inherit deploy | 22 | inherit deploy |
| 22 | 23 | ||
| @@ -90,6 +91,11 @@ do_deploy() { | |||
| 90 | echo "# Enable PITFT22 display" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt | 91 | 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 | echo "dtoverlay=pitft22,rotate=270,speed=32000000,txbuflen=32768" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt |
| 92 | fi | 93 | fi |
| 94 | |||
| 95 | if [ "${PITFT28r}" = "1" ]; then | ||
| 96 | echo "# Enable PITFT28r display" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt | ||
| 97 | echo "dtoverlay=pitft28-resistive,rotate=90,speed=32000000,txbuflen=32768" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt | ||
| 98 | fi | ||
| 93 | } | 99 | } |
| 94 | 100 | ||
| 95 | addtask deploy before do_package after do_install | 101 | addtask deploy before do_package after do_install |
