summaryrefslogtreecommitdiffstats
path: root/recipes-kernel
diff options
context:
space:
mode:
authorPetter Mabäcker <petter@technux.se>2016-02-28 14:46:12 +0100
committerAndrei Gherzan <andrei@gherzan.ro>2016-03-01 14:38:03 +0100
commit0d5aff5161d0fb6f91bc9021f86065248cd8cd1b (patch)
tree001df2131591ac7916acda8cebbb4646cb2e25a0 /recipes-kernel
parent52671faf4fd26db008a77f9815fb29c088b29cea (diff)
downloadmeta-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-kernel')
-rw-r--r--recipes-kernel/linux/linux-raspberrypi.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/recipes-kernel/linux/linux-raspberrypi.inc b/recipes-kernel/linux/linux-raspberrypi.inc
index 5a8a175..4f59c97 100644
--- a/recipes-kernel/linux/linux-raspberrypi.inc
+++ b/recipes-kernel/linux/linux-raspberrypi.inc
@@ -53,7 +53,11 @@ do_install_prepend() {
53do_deploy_append() { 53do_deploy_append() {
54 # Deploy cmdline.txt 54 # Deploy cmdline.txt
55 install -d ${DEPLOYDIR}/bcm2835-bootfiles 55 install -d ${DEPLOYDIR}/bcm2835-bootfiles
56 echo "${CMDLINE}" > ${DEPLOYDIR}/bcm2835-bootfiles/cmdline.txt 56 PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}"
57 if [ ${PITFT} = "1" ]; then
58 PITFT_PARAMS="fbcon=map:10 fbcon=font:VGA8x8"
59 fi
60 echo "${CMDLINE}${PITFT_PARAMS}" > ${DEPLOYDIR}/bcm2835-bootfiles/cmdline.txt
57} 61}
58 62
59do_rpiboot_mkimage() { 63do_rpiboot_mkimage() {