initscripts-shr: add glamoFIFOtweak to Xsession.d
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Thu, 26 Nov 2009 08:33:17 +0000 (09:33 +0100)
committerSebastian Spaeth <Sebastian@SSpaeth.de>
Thu, 26 Nov 2009 08:33:17 +0000 (09:33 +0100)
Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
recipes/shr/initscripts-shr/70glamoFIFOtweak [new file with mode: 0644]
recipes/shr/initscripts-shr_0.0.1.bb

diff --git a/recipes/shr/initscripts-shr/70glamoFIFOtweak b/recipes/shr/initscripts-shr/70glamoFIFOtweak
new file mode 100644 (file)
index 0000000..fc8da9e
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+# Enable FIFO stage for the LCD engine's memory access
+# see http://git.bitwiz.org.uk/?p=kernel.git;a=commit;h=01e4e0c2a1c39d7e4556f8996f21dfaf73b2869c
+echo  "4366 16384" > /sys/class/i2c-adapter/i2c-0/0-0073/pcf50633-regltr.9/glamo3362.0/regs
\ No newline at end of file
index 23fa05f..683268c 100644 (file)
@@ -5,7 +5,7 @@ DEPENDS = ""
 RDEPENDS = ""
 LICENSE = "GPL"
 PV = "0.0.1"
-PR = "r11"
+PR = "r12"
 
 RPROVIDES_${PN} = "initscripts"
 RCONFLICTS_${PN} = "initscripts"
@@ -32,6 +32,7 @@ SRC_URI = "file://alignment.sh \
           file://sendsigs \
           file://umountfs \
           file://umountnfs.sh \
+          file://70glamoFIFOtweak \
           "
 
 inherit base
@@ -104,4 +105,8 @@ do_install () {
        ln -sf          ../init.d/umountnfs.sh          ${D}${sysconfdir}/rc6.d/S31umountnfs.sh
        ln -sf          ../init.d/umountfs              ${D}${sysconfdir}/rc6.d/S40umountfs
        ln -sf          ../init.d/reboot                ${D}${sysconfdir}/rc6.d/S90reboot
+
+       # install the Glamo FIFO tweak in an xsession.d file
+       install -d ${D}${sysconfdir}/X11/Xsession.d
+       install -m 0755 ${WORKDIR}/70glamoFIFOtweak     ${D}${sysconfdir}/X11/Xsession.d
 }