3G:add U7501 and a8530
authorwlq <wlq@rock-chips.com>
Tue, 30 Jul 2013 12:37:53 +0000 (20:37 +0800)
committerwlq <wlq@rock-chips.com>
Mon, 5 Aug 2013 03:46:45 +0000 (11:46 +0800)
drivers/misc/bp/chips/a85xx.c
drivers/usb/serial/usb-serial.c

index ac38e8c9ce4718490231e4e803b26b3c1fcb08f0..894fe1bfb2e3fa894cc4af5ef0469837aeb1247b 100755 (executable)
@@ -203,7 +203,7 @@ struct bp_operate bp_a85xx_ops = {
        .bp_assert              = BP_UNKNOW_DATA,\r
        .bp_uart_en             = BP_UNKNOW_DATA,       //EINT9\r
        .bp_usb_en              = BP_UNKNOW_DATA,       //W_disable\r
-       .trig                           = IRQF_TRIGGER_FALLING,\r
+       .trig                           = IRQF_TRIGGER_RISING,\r
 \r
        .active                 = bp_active,\r
        .init                           = bp_init,\r
@@ -233,7 +233,7 @@ struct bp_operate bp_a85xx_ops = {
        .bp_assert              = BP_UNKNOW_DATA,\r
        .bp_uart_en             = BP_UNKNOW_DATA,       //EINT9\r
        .bp_usb_en              = BP_UNKNOW_DATA,       //W_disable\r
-       .trig                           = IRQF_TRIGGER_FALLING,\r
+       .trig                           = IRQF_TRIGGER_RISING,\r
 \r
        .active                 = bp_active,\r
        .init                           = bp_init,\r
index 0c47b262fc8f6b47ce703b51a9bab181e314c65a..e88a062dc28b1584746837febe2c7b722137e9ca 100755 (executable)
@@ -36,6 +36,8 @@
 #include <linux/usb/serial.h>
 #include <linux/kfifo.h>
 #include "pl2303.h"
+#include <linux/bp-auto.h>
+
 
 /*
  * Version Information
@@ -1075,12 +1077,13 @@ int usb_serial_probe(struct usb_interface *interface,
        }
 #ifdef CONFIG_BP_AUTO
                int bp_id = get_current_bp_id();
-               if (((le16_to_cpu(dev->descriptor.idVendor) == 0x1782 ) && (le16_to_cpu(dev->descriptor.idProduct) == 0x0002) && (bp_id == 12))
-                       || ((le16_to_cpu(dev->descriptor.idVendor) == 0x19f5) && (le16_to_cpu(dev->descriptor.idProduct) == 0x9013) && (bp_id == 4))                    
-                       || ((le16_to_cpu(dev->descriptor.idVendor) == 0x0E8D) && (le16_to_cpu(dev->descriptor.idProduct) == 0x00A2) && (bp_id == 1))
-                       || ((le16_to_cpu(dev->descriptor.idVendor) == 0x21f5) && (le16_to_cpu(dev->descriptor.idProduct) == 0x2012) && (bp_id == 10))
-                       || ((le16_to_cpu(dev->descriptor.idVendor) == 0x1c9e) && (le16_to_cpu(dev->descriptor.idProduct) == 0x9603) && (bp_id == 11))  
-                       || ((le16_to_cpu(dev->descriptor.idVendor) == 0x12D1) && (le16_to_cpu(dev->descriptor.idProduct) == 0x1001) && (bp_id == 2))
+               if (((le16_to_cpu(dev->descriptor.idVendor) == 0x12D1 ) && (le16_to_cpu(dev->descriptor.idProduct) == 0x1001) && (bp_id == BP_ID_MU509))
+                       || ((le16_to_cpu(dev->descriptor.idVendor) == 0x19f5) && (le16_to_cpu(dev->descriptor.idProduct) == 0x9013) && (bp_id == BP_ID_MW100))                  
+                       || ((le16_to_cpu(dev->descriptor.idVendor) == 0x0E8D) && (le16_to_cpu(dev->descriptor.idProduct) == 0x00A2) && (bp_id == BP_ID_MT6229))
+                       || ((le16_to_cpu(dev->descriptor.idVendor) == 0x1782) && (le16_to_cpu(dev->descriptor.idProduct) == 0x0002) && (bp_id == BP_ID_U7501))
+                       || ((le16_to_cpu(dev->descriptor.idVendor) == 0x1782) && (le16_to_cpu(dev->descriptor.idProduct) == 0x4D00) && (bp_id == BP_ID_U7501))
+                       || ((le16_to_cpu(dev->descriptor.idVendor) == 0x21f5) && (le16_to_cpu(dev->descriptor.idProduct) == 0x2012) && (bp_id == BP_ID_SEW290))
+                       || ((le16_to_cpu(dev->descriptor.idVendor) == 0x1c9e) && (le16_to_cpu(dev->descriptor.idProduct) == 0x9603) && (bp_id == BP_ID_U5501))
                ){
                        BP_USB =1;