From d0ee42d1ae1d430cc5fe2dbcbe9216c4047dda27 Mon Sep 17 00:00:00 2001 From: Philippe Schenker Date: Thu, 20 Dec 2018 14:49:26 +0100 Subject: lvds-ctrl: add script for single channel 24bit mode2 Add a script to the lvds-ctrl recipe for setting the correct mode for 10.1" display Signed-off-by: Philippe Schenker Acked-by: Marcel Ziswiler --- .../lvds-ctrl/files/lvds-single-channel-24bit-mode2.sh | 11 +++++++++++ recipes-bsp/lvds-ctrl/lvds-ctrl_1.0.bb | 1 + 2 files changed, 12 insertions(+) create mode 100644 recipes-bsp/lvds-ctrl/files/lvds-single-channel-24bit-mode2.sh (limited to 'recipes-bsp') diff --git a/recipes-bsp/lvds-ctrl/files/lvds-single-channel-24bit-mode2.sh b/recipes-bsp/lvds-ctrl/files/lvds-single-channel-24bit-mode2.sh new file mode 100644 index 0000000..a4e5312 --- /dev/null +++ b/recipes-bsp/lvds-ctrl/files/lvds-single-channel-24bit-mode2.sh @@ -0,0 +1,11 @@ +#!/bin/sh +#enable the parallel RGB to LVDS controller in single channel mode + +echo high > /sys/class/gpio/gpio216/direction +echo low > /sys/class/gpio/gpio219/direction +echo high > /sys/class/gpio/gpio222/direction +echo low > /sys/class/gpio/gpio223/direction +echo high > /sys/class/gpio/gpio226/direction +echo high > /sys/class/gpio/gpio225/direction +echo high > /sys/class/gpio/gpio221/direction +echo high > /sys/class/gpio/gpio220/direction diff --git a/recipes-bsp/lvds-ctrl/lvds-ctrl_1.0.bb b/recipes-bsp/lvds-ctrl/lvds-ctrl_1.0.bb index 7632bb9..dc1d49c 100644 --- a/recipes-bsp/lvds-ctrl/lvds-ctrl_1.0.bb +++ b/recipes-bsp/lvds-ctrl/lvds-ctrl_1.0.bb @@ -4,6 +4,7 @@ LICENSE = "PD" SRC_URI = " \ file://lvds-dual-channel.sh \ file://lvds-single-channel.sh \ + file://lvds-single-channel-24bit-mode2.sh \ file://COPYING \ " -- cgit v1.2.3