From 0d5aff5161d0fb6f91bc9021f86065248cd8cd1b Mon Sep 17 00:00:00 2001 From: Petter Mabäcker Date: Sun, 28 Feb 2016 14:46:12 +0100 Subject: pitft: Add basic support for PiTFT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Andrei Gherzan --- recipes-kernel/linux/linux-raspberrypi.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'recipes-kernel') 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() { do_deploy_append() { # Deploy cmdline.txt install -d ${DEPLOYDIR}/bcm2835-bootfiles - echo "${CMDLINE}" > ${DEPLOYDIR}/bcm2835-bootfiles/cmdline.txt + PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}" + if [ ${PITFT} = "1" ]; then + PITFT_PARAMS="fbcon=map:10 fbcon=font:VGA8x8" + fi + echo "${CMDLINE}${PITFT_PARAMS}" > ${DEPLOYDIR}/bcm2835-bootfiles/cmdline.txt } do_rpiboot_mkimage() { -- cgit v1.2.3-54-g00ecf