tslib: Add config files for the omap3-pandora.
authorDavid-John Willis <John.Willis@Distant-earth.com>
Wed, 2 Dec 2009 16:29:01 +0000 (16:29 +0000)
committerKoen Kooi <koen@openembedded.org>
Fri, 4 Dec 2009 09:43:03 +0000 (10:43 +0100)
recipes/tslib/tslib.inc
recipes/tslib/tslib/omap3-pandora/ts.conf [new file with mode: 0644]
recipes/tslib/tslib/omap3-pandora/tslib.sh [new file with mode: 0644]

index e10351b..81f2a4e 100644 (file)
@@ -3,7 +3,7 @@ HOMEPAGE = "http://tslib.berlios.de/"
 AUTHOR = "Russell King w/ plugins by Chris Larson et. al."
 SECTION = "base"
 LICENSE = "LGPL"
-INC_PR = "r22"
+INC_PR = "r23"
 
 SRC_URI += "\
   file://ts.conf \
@@ -61,6 +61,7 @@ PACKAGE_ARCH_tslib-conf_jornada7xx = "${MACHINE_ARCH}"
 PACKAGE_ARCH_tslib-conf_netbook-pro = "${MACHINE_ARCH}"
 PACKAGE_ARCH_tslib-conf_omap1610h2 = "${MACHINE_ARCH}"
 PACKAGE_ARCH_tslib-conf_omap5912osk = "${MACHINE_ARCH}"
+PACKAGE_ARCH_tslib-conf_omap3-pandora = "${MACHINE_ARCH}"
 PACKAGE_ARCH_tslib-conf_simpad = "${MACHINE_ARCH}"
 
 PACKAGES =+ "tslib-conf libts-dev tslib-tests tslib-calibrate"
@@ -78,3 +79,4 @@ FILES_${PN} = "${libdir}/*.so.* ${libdir}/ts/*.so*"
 FILES_libts-dev = "${FILES_tslib-dev} ${libdir}/ts/*.la"
 FILES_tslib-calibrate += "${bindir}/ts_calibrate"
 FILES_tslib-tests = "${bindir}/ts_harvest ${bindir}/ts_print ${bindir}/ts_print_raw ${bindir}/ts_test"
+
diff --git a/recipes/tslib/tslib/omap3-pandora/ts.conf b/recipes/tslib/tslib/omap3-pandora/ts.conf
new file mode 100644 (file)
index 0000000..7b5271c
--- /dev/null
@@ -0,0 +1,8 @@
+# ts.conf for the OMAP3-PANDORA default touchscreen.
+
+module_raw input
+
+module pthres pmin=1
+module variance delta=30
+module dejitter delta=100
+module linear
diff --git a/recipes/tslib/tslib/omap3-pandora/tslib.sh b/recipes/tslib/tslib/omap3-pandora/tslib.sh
new file mode 100644 (file)
index 0000000..f73e39c
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+TSLIB_TSDEVICE=/dev/input/touchscreen0
+TSLIB_CONFFILE=/etc/ts.conf
+
+export TSLIB_TSDEVICE TSLIB_CONFFILE
+