summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorPaul Sokolovsky <pmiscml@gmail.com>2006-08-22 12:21:28 +0000
committerMarcin Juszkiewicz <hrw@openembedded.org>2006-08-22 12:21:28 +0000
commit6e93602d9bb4ffe35c5d7a2a7870b89c1e4fb630 (patch)
tree5c623fb82c7f15aecc8be622e464c5fb36642ba3 /packages
parent083330ee5cebdee705f5e85bcfd7a9610fbfd756 (diff)
tslib: added h4000 support - close #1351
Diffstat (limited to 'packages')
-rw-r--r--packages/tslib/tslib/h4000/.mtn2git_empty0
-rw-r--r--packages/tslib/tslib/h4000/tslib.sh19
2 files changed, 19 insertions, 0 deletions
diff --git a/packages/tslib/tslib/h4000/.mtn2git_empty b/packages/tslib/tslib/h4000/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/tslib/tslib/h4000/.mtn2git_empty
diff --git a/packages/tslib/tslib/h4000/tslib.sh b/packages/tslib/tslib/h4000/tslib.sh
new file mode 100644
index 0000000000..0de3534a51
--- /dev/null
+++ b/packages/tslib/tslib/h4000/tslib.sh
@@ -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
+