OSDN Git Service

tegav2_info: support azpen tablet
authorChih-Wei Huang <cwhuang@linux.org.tw>
Mon, 9 May 2011 03:37:13 +0000 (11:37 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Mon, 9 May 2011 03:37:57 +0000 (11:37 +0800)
tegav2_info

index ad1e6fb..d95eb10 100644 (file)
@@ -4,7 +4,7 @@ tegav2_info()
 {
        board=`cat $DMIPATH/product_name`
        case "$board" in
-               TEGA*|VPAD10*)
+               TEGA*|VPAD10*|X1*)
                        #BOARD_USES_TSLIB=true
                        # FIXME: a workaround for the race condition of auto-probing
                        EXTMOD="$EXTMOD hid-multitouch"
@@ -22,7 +22,7 @@ tegav2_info()
 detect_hardware()
 {
        case "`cat $DMIPATH/uevent`" in
-               *TEGA*|*VPAD10*)
+               *TEGA*|*VPAD10*|*azpen*)
                        tegav2_info
                        ;;
                *)
@@ -30,3 +30,15 @@ detect_hardware()
                        ;;
        esac
 }
+
+post_detect()
+{
+       board=`cat $DMIPATH/product_name`
+       case "$board" in
+               X1*)
+                       echo 3 03eb 201c 1 > /sys/module/hid_multitouch/drivers/hid:hid-multitouch/new_id
+                       ;;
+               *)
+                       ;;
+       esac
+}