OSDN Git Service

tegav2_info: initialize tegav2 stuff no matter what the tablet model is gingerbread-x86
authorChih-Wei Huang <cwhuang@linux.org.tw>
Mon, 8 Aug 2011 10:59:30 +0000 (18:59 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Mon, 8 Aug 2011 10:59:30 +0000 (18:59 +0800)
There are too many variants of tegav2. Just ignore the model name
and do the necessary initialization.

tegav2_info

index 747cca1..cc0070f 100644 (file)
@@ -5,17 +5,17 @@ tegav2_info()
        board=`cat $DMIPATH/product_name`
        case "$board" in
                TEGA*|VPAD10*|X1*|PC*)
-                       #BOARD_USES_TSLIB=true
-                       # FIXME: a workaround for the race condition of auto-probing
-                       EXTMOD="$EXTMOD hid-multitouch"
-                       mkdir /android/mnt/USB
-                       chown 1000.1015 /android/mnt/USB # system.sdcard_rw
-                       btn_switch 0x0 0x1 > /dev/null
                        ;;
                *)
+                       error WARNING: An unknown model
                        ;;
        esac
 
+       # FIXME: a workaround for the race condition of auto-probing
+       EXTMOD="$EXTMOD hid-multitouch"
+       mkdir /android/mnt/USB
+       chown 1000.1015 /android/mnt/USB # system.sdcard_rw
+
        return 1 # auto_detect
 }
 
@@ -23,12 +23,13 @@ detect_hardware()
 {
        case "`cat $DMIPATH/uevent`" in
                *TEGA*|*VPAD10*|*azpen*|*AZPENPC*)
-                       tegav2_info
                        ;;
                *)
                        error WARNING: An unknown tablet
                        ;;
        esac
+
+       tegav2_info
 }
 
 post_detect()