tslib: added h4000 support - close #1351
authorPaul Sokolovsky <pmiscml@gmail.com>
Tue, 22 Aug 2006 12:21:28 +0000 (12:21 +0000)
committerMarcin Juszkiewicz <hrw@openembedded.org>
Tue, 22 Aug 2006 12:21:28 +0000 (12:21 +0000)
packages/tslib/tslib/h4000/.mtn2git_empty [new file with mode: 0644]
packages/tslib/tslib/h4000/tslib.sh [new file with mode: 0644]

diff --git a/packages/tslib/tslib/h4000/.mtn2git_empty b/packages/tslib/tslib/h4000/.mtn2git_empty
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/packages/tslib/tslib/h4000/tslib.sh b/packages/tslib/tslib/h4000/tslib.sh
new file mode 100644 (file)
index 0000000..0de3534
--- /dev/null
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+module_id() {
+    awk 'BEGIN { FS=": " } /Hardware/ { print $2 } ' </proc/cpuinfo
+}
+
+case `uname -r` in
+2.4*)
+       TSLIB_TSDEVICE=/dev/touchscreen/0raw
+       TSLIB_CONFFILE=/usr/share/tslib/ts.conf-h3600-2.4
+       ;;
+*)
+       TSLIB_TSDEVICE=`detect-stylus --device`
+       TSLIB_CONFFILE=/usr/share/tslib/ts-2.6.conf
+       ;;
+esac
+
+export TSLIB_TSDEVICE TSLIB_CONFFILE
+