Add preliminary support for CyIO/BooEvent

This commit is contained in:
mlt
2009-12-18 18:29:29 +00:00
committed by Godzil
parent 76f20f4d40
commit 6a09ec6d7a
15 changed files with 111641 additions and 28806 deletions

View File

@@ -128,7 +128,9 @@ static void reconfig_usbd(void);
/*send key code F6 1 when USB plugin*/
/*send key code F6 0 when USB unplugin*/
/*send key code F6 0 when USB safety remove USB{*/
void USB_SaftRemove_keypad_message_to_ap(uint uiSleep);
#ifdef QISDA
void USB_SaftRemove_keypad_message_to_ap(uint uiSleep)
#endif
/*}Qisda,Leo SJ Yang,2009/10/26*/
static __inline__ u32 usb_read(u32 port, u8 ind)
{
@@ -1125,8 +1127,10 @@ static irqreturn_t s3c_udc_irq(int irq, void *_dev)
/*send key code F6 0 when USB safety remove USB{*/
/*Qisda,Leo SJ Yang,2009/11/13*/
/*prevent from sending saftremove event to MMI when the event to be occured is not the action of saftremove{*/
#ifdef QISDA
if((intr_status&S3C_UDC_INT_VBUSON)==0)
USB_SaftRemove_keypad_message_to_ap(0);
#endif
/*}Qisda,Leo SJ Yang,2009/11/13*/
#endif
/*}Qisda,Leo SJ Yang,2009/08/26 set g_EMUSBTestIsOK=0 when uplug USB*/
@@ -1793,8 +1797,9 @@ static void s3c_ep0_setup(struct s3c_udc *dev, u32 csr)
/*Qisda,Leo SJ Yang,2009/07/28 add /proc/driver/udc for EM mode{*/
#ifdef CONFIG_USB_GADGET_DEBUG_FILES
g_EMUSBTestIsOK=1;
#ifdef QISDA
USB_SaftRemove_keypad_message_to_ap(1);
#endif
#endif
/*}Qisda,Leo SJ Yang,2009/07/28 add /proc/driver/udc for EM mode*/