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-graphics | |
| 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-graphics')
| -rw-r--r-- | recipes-graphics/xorg-xserver/xserver-xf86-config/rpi/xorg.conf.d/98-pitft.conf (renamed from recipes-graphics/xorg-xserver/xserver-xf86-config/rpi/xorg.conf.d/99-pitft.conf) | 0 | ||||
| -rw-r--r-- | recipes-graphics/xorg-xserver/xserver-xf86-config/rpi/xorg.conf.d/99-calibration.conf | 6 | ||||
| -rw-r--r-- | recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend | 6 |
3 files changed, 10 insertions, 2 deletions
diff --git a/recipes-graphics/xorg-xserver/xserver-xf86-config/rpi/xorg.conf.d/99-pitft.conf b/recipes-graphics/xorg-xserver/xserver-xf86-config/rpi/xorg.conf.d/98-pitft.conf index 0d2b36b..0d2b36b 100644 --- a/recipes-graphics/xorg-xserver/xserver-xf86-config/rpi/xorg.conf.d/99-pitft.conf +++ b/recipes-graphics/xorg-xserver/xserver-xf86-config/rpi/xorg.conf.d/98-pitft.conf | |||
diff --git a/recipes-graphics/xorg-xserver/xserver-xf86-config/rpi/xorg.conf.d/99-calibration.conf b/recipes-graphics/xorg-xserver/xserver-xf86-config/rpi/xorg.conf.d/99-calibration.conf new file mode 100644 index 0000000..f8b578c --- /dev/null +++ b/recipes-graphics/xorg-xserver/xserver-xf86-config/rpi/xorg.conf.d/99-calibration.conf | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | Section "InputClass" | ||
| 2 | Identifier "calibration" | ||
| 3 | MatchProduct "stmpe-ts" | ||
| 4 | Option "Calibration" "3800 200 200 3800" | ||
| 5 | Option "SwapAxes" "1" | ||
| 6 | EndSection | ||
diff --git a/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend b/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend index 0ae2ee0..062de2d 100644 --- a/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend +++ b/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend | |||
| @@ -1,7 +1,8 @@ | |||
| 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" |
| 2 | 2 | ||
| 3 | SRC_URI_append_rpi = " file://xorg.conf.d/10-evdev.conf \ | 3 | SRC_URI_append_rpi = " file://xorg.conf.d/10-evdev.conf \ |
| 4 | file://xorg.conf.d/99-pitft.conf \ | 4 | file://xorg.conf.d/98-pitft.conf \ |
| 5 | file://xorg.conf.d/99-calibration.conf \ | ||
| 5 | " | 6 | " |
| 6 | 7 | ||
| 7 | do_install_append_rpi () { | 8 | do_install_append_rpi () { |
| @@ -10,7 +11,8 @@ do_install_append_rpi () { | |||
| 10 | 11 | ||
| 11 | PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}" | 12 | PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}" |
| 12 | if [ "${PITFT}" = "1" ]; then | 13 | if [ "${PITFT}" = "1" ]; then |
| 13 | install -m 0644 ${WORKDIR}/xorg.conf.d/99-pitft.conf ${D}/${sysconfdir}/X11/xorg.conf.d/ | 14 | install -m 0644 ${WORKDIR}/xorg.conf.d/98-pitft.conf ${D}/${sysconfdir}/X11/xorg.conf.d/ |
| 15 | install -m 0644 ${WORKDIR}/xorg.conf.d/99-calibration.conf ${D}/${sysconfdir}/X11/xorg.conf.d/ | ||
| 14 | fi | 16 | fi |
| 15 | } | 17 | } |
| 16 | 18 | ||
