From 297d8663839606c086b02238e7f956d182e682cf Mon Sep 17 00:00:00 2001 From: wlq Date: Tue, 30 Jul 2013 20:37:53 +0800 Subject: [PATCH] 3G:add U7501 and a8530 --- drivers/misc/bp/chips/a85xx.c | 4 ++-- drivers/usb/serial/usb-serial.c | 15 +++++++++------ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/drivers/misc/bp/chips/a85xx.c b/drivers/misc/bp/chips/a85xx.c index ac38e8c9ce47..894fe1bfb2e3 100755 --- a/drivers/misc/bp/chips/a85xx.c +++ b/drivers/misc/bp/chips/a85xx.c @@ -203,7 +203,7 @@ struct bp_operate bp_a85xx_ops = { .bp_assert = BP_UNKNOW_DATA, .bp_uart_en = BP_UNKNOW_DATA, //EINT9 .bp_usb_en = BP_UNKNOW_DATA, //W_disable - .trig = IRQF_TRIGGER_FALLING, + .trig = IRQF_TRIGGER_RISING, .active = bp_active, .init = bp_init, @@ -233,7 +233,7 @@ struct bp_operate bp_a85xx_ops = { .bp_assert = BP_UNKNOW_DATA, .bp_uart_en = BP_UNKNOW_DATA, //EINT9 .bp_usb_en = BP_UNKNOW_DATA, //W_disable - .trig = IRQF_TRIGGER_FALLING, + .trig = IRQF_TRIGGER_RISING, .active = bp_active, .init = bp_init, diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c index 0c47b262fc8f..e88a062dc28b 100755 --- a/drivers/usb/serial/usb-serial.c +++ b/drivers/usb/serial/usb-serial.c @@ -36,6 +36,8 @@ #include #include #include "pl2303.h" +#include + /* * 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; -- 2.34.1