1 Index: linux-2.6.20.7/drivers/char/ts0710_mux_usb.c
2 ===================================================================
3 --- linux-2.6.20.7.orig/drivers/char/ts0710_mux_usb.c 2007-04-24 16:31:51.000000000 +0200
4 +++ linux-2.6.20.7/drivers/char/ts0710_mux_usb.c 2007-04-24 16:34:57.000000000 +0200
6 #include <linux/list.h>
7 #include <linux/errno.h>
8 #include <asm/uaccess.h>
10 +#ifdef CONFIG_PXA_EZX
11 #include <asm/hardware.h>
12 #include <asm/arch/hardware.h>
13 #include <asm/arch-pxa/pxa-regs.h>
14 #include <asm/arch-pxa/ezx.h>
17 #include <linux/slab.h>
18 #include <linux/miscdevice.h>
19 #include <linux/init.h>
22 static void wakeup_timeout(unsigned long data)
24 +#ifdef CONFIG_PXA_EZX
25 GPSR(GPIO_MCU_INT_SW) = GPIO_bit(GPIO_MCU_INT_SW);
26 bvd_dbg("wakup_timeout: send GPIO_MCU_INT_SW signal!");
30 static void suspend_timeout(unsigned long data)
32 bvd_dbg("suspend_timeout: add the suspend timer again");
34 unlink_urbs(&bvd_ipc->readurb_mux);
35 +#ifdef CONFIG_PXA_EZX
38 bvd_dbg("suspend_timeout: send SUSPEND signal! UHCRHPS3=0x%x",
45 bvd_ipc->writeurb_mux.transfer_buffer_length = buf_num;
46 bvd_dbg("ipcusb_xmit_data: copy data to write urb finished! ");
48 +#ifdef CONFIG_PXA_EZX
49 if ((UHCRHPS3 & 0x4) == 0x4) {
53 "failed! status=%d\n", ret);
54 bvd_dbg("ipcusb_xmit_data: Send a IN token successfully!");
59 bvd_ipc->write_finished_flag = 0;
62 static void usbipc_bh_bp_func(unsigned long param)
64 +#ifdef CONFIG_PXA_EZX
65 if ((UHCRHPS3 & 0x4) == 0x4) {
69 +#ifdef CONFIG_PXA_EZX
70 bvd_dbg("ipcusb_softint_send_readurb: Send RESUME signal! "
71 "UHCRHPS3=0x%x", UHCRHPS3);
74 if (bvd_ipc->ipc_flag == IPC_USB_PROBE_READY) {
78 printk("usb_ipc_disconnect. bvd_ipc_disconnect address: %p\n", bvd_ipc_disconnect);
81 +#ifdef CONFIG_PXA_EZX
82 if ((UHCRHPS3 & 0x4) == 0)
84 // usb_unlink_urb(&bvd_ipc_disconnect->readurb_mux);
86 //usb_unlink_urb(&bvd_ipc_disconnect->writeurb_mux);