mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
rk3026: usb-uart: fix compile err
This commit is contained in:
@@ -171,8 +171,8 @@ static irqreturn_t otg_id_irq_handler(int irq, void *dev_id)
|
||||
writel_relaxed(0x04000000, RK2928_GRF_BASE + GRF_UOC1_CON0); //enter usb phy
|
||||
}
|
||||
#endif
|
||||
writel_relaxed((0x3 << 16) | 0x3, RK2928_GRF_BASE + GRF_UOC_CON);//clear id fall irq pandding
|
||||
}
|
||||
writel_relaxed((0x3 << 16) | 0x3, RK2928_GRF_BASE + GRF_UOC_CON);//clear id fall irq pandding
|
||||
|
||||
rk28_send_wakeup_key();
|
||||
return IRQ_HANDLED;
|
||||
}
|
||||
|
||||
@@ -221,13 +221,13 @@ void dwc_otg_uart_mode(void* pdata, int enter_usb_uart_mode)
|
||||
if(1 == enter_usb_uart_mode) //uart mode
|
||||
{
|
||||
*otg_phy_con0 = (0x03 << 12 | (0x03<<(16+12)));//bypass dm
|
||||
printk("otg-phy enter uart mode USBGRF_UOC1_CON0 = %08x\n",*otg_phy_con1);
|
||||
//printk("otg-phy enter uart mode USBGRF_UOC1_CON0 = %08x\n",*otg_phy_con1);
|
||||
|
||||
}
|
||||
if(0 == enter_usb_uart_mode) //usb mode
|
||||
{
|
||||
*otg_phy_con0 = (0x03<<(12+16)); //bypass dm disable
|
||||
printk("otg-phy enter usb mode USBGRF_UOC1_CON0 = %8x\n",*otg_phy_con1);
|
||||
//printk("otg-phy enter usb mode USBGRF_UOC1_CON0 = %8x\n",*otg_phy_con1);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user