#ifdef CONFIG_USB20_OTG
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_USBPHY1_CON6);
/* other haredware init,include:
* DRV_VBUS GPIO init */
if (gpio_is_valid(control_usb->otg_gpios->gpio)) {
#ifdef CONFIG_USB20_HOST
static void usb20host_hw_init(void)
{
+ /* Switch to DWC HOST */
writel(UOC_HIWORD_UPDATE(1, 1, 3),
RK_GRF_VIRT + RK312X_GRF_SOC_CON2);
+ /* Turn off differential receiver in suspend mode */
+ writel(UOC_HIWORD_UPDATE(0, 1, 2),
+ RK_GRF_VIRT + RK312X_GRF_USBPHY0_CON6);
/* other haredware init,include:
* DRV_VBUS GPIO init */
if (gpio_is_valid(control_usb->host_gpios->gpio)) {