mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
usb: rk312x: rk3126/3128 usb phy tuning set OTG port disconnect
trigger point to 600mv, default is 650mv
This commit is contained in:
@@ -9,6 +9,9 @@ static void usb20otg_hw_init(void)
|
||||
/* Turn off differential receiver in suspend mode */
|
||||
writel(UOC_HIWORD_UPDATE(0, 1, 2),
|
||||
RK_GRF_VIRT + RK312X_GRF_USBPHY0_CON6);
|
||||
/* Set disconnect detection trigger point to 600mv */
|
||||
writel(UOC_HIWORD_UPDATE(1, 0xf, 11),
|
||||
RK_GRF_VIRT + RK312X_GRF_USBPHY0_CON7);
|
||||
/* other haredware init,include:
|
||||
* DRV_VBUS GPIO init */
|
||||
if (gpio_is_valid(control_usb->otg_gpios->gpio)) {
|
||||
|
||||
Reference in New Issue
Block a user