diff options
author | Petter Mabäcker <petter@technux.se> | 2016-02-28 14:46:12 +0100 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.ro> | 2016-03-01 14:38:03 +0100 |
commit | 0d5aff5161d0fb6f91bc9021f86065248cd8cd1b (patch) | |
tree | 001df2131591ac7916acda8cebbb4646cb2e25a0 /recipes-graphics | |
parent | 52671faf4fd26db008a77f9815fb29c088b29cea (diff) | |
download | meta-raspberrypi-0d5aff5161d0fb6f91bc9021f86065248cd8cd1b.tar.gz |
pitft: Add basic support for PiTFT
Add basic support for PiTFT display by using device-trees.
In order get it working below configurations must be active in
local.conf:
MACHINE_FEATURES += "pitft"
- This will enable SPI bus and i2c device-trees, it will also setup
framebuffer for console and x server on PiTFT.
[Support #70]
Signed-off-by: Petter Mabäcker <petter@technux.se>
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Diffstat (limited to 'recipes-graphics')
-rw-r--r-- | recipes-graphics/xorg-xserver/xserver-xf86-config/rpi/xorg.conf.d/99-pitft.conf | 5 | ||||
-rw-r--r-- | recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend | 11 |
2 files changed, 14 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/99-pitft.conf new file mode 100644 index 0000000..0d2b36b --- /dev/null +++ b/recipes-graphics/xorg-xserver/xserver-xf86-config/rpi/xorg.conf.d/99-pitft.conf | |||
@@ -0,0 +1,5 @@ | |||
1 | Section "Device" | ||
2 | Identifier "Adafruit PiTFT" | ||
3 | Driver "fbdev" | ||
4 | Option "fbdev" "/dev/fb1" | ||
5 | 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 2cf40f8..0ae2ee0 100644 --- a/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend +++ b/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend | |||
@@ -1,10 +1,17 @@ | |||
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 \ | ||
5 | " | ||
4 | 6 | ||
5 | do_install_append_rpi () { | 7 | do_install_append_rpi () { |
6 | install -d ${D}/${sysconfdir}/X11/xorg.conf.d/ | 8 | install -d ${D}/${sysconfdir}/X11/xorg.conf.d/ |
7 | install -m 0644 ${WORKDIR}/xorg.conf.d/* ${D}/${sysconfdir}/X11/xorg.conf.d/ | 9 | install -m 0644 ${WORKDIR}/xorg.conf.d/10-evdev.conf ${D}/${sysconfdir}/X11/xorg.conf.d/ |
10 | |||
11 | PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}" | ||
12 | if [ "${PITFT}" = "1" ]; then | ||
13 | install -m 0644 ${WORKDIR}/xorg.conf.d/99-pitft.conf ${D}/${sysconfdir}/X11/xorg.conf.d/ | ||
14 | fi | ||
8 | } | 15 | } |
9 | 16 | ||
10 | FILES_${PN}_rpi += "${sysconfdir}/X11/xorg.conf ${sysconfdir}/X11/xorg.conf.d/*" | 17 | FILES_${PN}_rpi += "${sysconfdir}/X11/xorg.conf ${sysconfdir}/X11/xorg.conf.d/*" |