change u5501 modem usbport to 244

This commit is contained in:
llj
2013-06-07 14:56:21 +08:00
parent 299695211c
commit d09de70e18
2 changed files with 5 additions and 4 deletions

View File

@@ -171,7 +171,7 @@ static int bp_suspend(struct bp_private_data *bp)
printk("<-----u5501 bp_suspend-------->\n");
#if defined(CONFIG_ARCH_RK29)
rk29_mux_api_set(GPIO1C1_UART0RTSN_SDMMC1WRITEPRT_NAME, GPIO1H_GPIO1C1);
#elif defined(CONFIG_ARCH_RK30)
#elif defined(CONFIG_SOC_RK3066)
rk30_mux_api_set(GPIO1A7_UART1RTSN_SPI0TXD_NAME, GPIO1A_GPIO1A7);
#endif
@@ -183,7 +183,7 @@ static int bp_suspend(struct bp_private_data *bp)
#if defined(CONFIG_ARCH_RK2928)
rk29_mux_api_set(GPIO1B1_SPI_TXD_UART1_SOUT_NAME, GPIO1B_GPIO1B1);
gpio_set_value(RK2928_PIN1_PB1, GPIO_LOW);
#elif defined(CONFIG_ARCH_RK30)
#elif defined(CONFIG_SOC_RK3066)
rk30_mux_api_set(GPIO1A5_UART1SOUT_SPI0CLK_NAME, GPIO1A_GPIO1A5);
gpio_set_value(RK30_PIN1_PA5, GPIO_LOW);
#endif
@@ -197,13 +197,13 @@ static int bp_resume(struct bp_private_data *bp)
{
#if defined(CONFIG_ARCH_RK29)
rk29_mux_api_set(GPIO1C1_UART0RTSN_SDMMC1WRITEPRT_NAME, GPIO1H_UART0_RTS_N);
#elif defined(CONFIG_ARCH_RK30)
#elif defined(CONFIG_SOC_RK3066)
rk30_mux_api_set(GPIO1A7_UART1RTSN_SPI0TXD_NAME, GPIO1A_UART1_RTS_N);
#endif
#if defined(CONFIG_ARCH_RK2928)
rk29_mux_api_set(GPIO1B1_SPI_TXD_UART1_SOUT_NAME, GPIO1B_UART1_SOUT);
#elif defined(CONFIG_ARCH_RK30)
#elif defined(CONFIG_SOC_RK3066)
rk30_mux_api_set(GPIO1A5_UART1SOUT_SPI0CLK_NAME, GPIO1A_UART1_SOUT);
#endif
//bp->suspend_status = 0;

1
drivers/usb/serial/usb-serial.c Normal file → Executable file
View File

@@ -1079,6 +1079,7 @@ int usb_serial_probe(struct usb_interface *interface,
|| ((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))
){
BP_USB =1;