Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/rockchip Fix USB2 on RK3399



details:   https://anonhg.NetBSD.org/src/rev/4014d98f1f5f
branches:  trunk
changeset: 365357:4014d98f1f5f
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Aug 12 18:00:32 2018 +0000

description:
Fix USB2 on RK3399

diffstat:

 sys/arch/arm/rockchip/rk_usb.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 7243ce29c42c -r 4014d98f1f5f sys/arch/arm/rockchip/rk_usb.c
--- a/sys/arch/arm/rockchip/rk_usb.c    Sun Aug 12 17:59:21 2018 +0000
+++ b/sys/arch/arm/rockchip/rk_usb.c    Sun Aug 12 18:00:32 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rk_usb.c,v 1.5 2018/08/12 17:46:49 jmcneill Exp $ */
+/* $NetBSD: rk_usb.c,v 1.6 2018/08/12 18:00:32 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2018 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: rk_usb.c,v 1.5 2018/08/12 17:46:49 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rk_usb.c,v 1.6 2018/08/12 18:00:32 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -314,7 +314,7 @@
                    RK3399_GRF_USB20_PHY0_CON1_REG :
                    RK3399_GRF_USB20_PHY1_CON1_REG;
                write_mask = (RK3399_USBPHY_SUSPEND_N|RK3399_USBPHY_UTMI_SEL) << 16;
-               write_val = RK3399_USBPHY_UTMI_SEL;
+               write_val = enable ? 0 : RK3399_USBPHY_UTMI_SEL;
                break;
        default:
                return ENXIO;
@@ -353,7 +353,7 @@
                    RK3399_GRF_USB20_PHY0_CON2_REG :
                    RK3399_GRF_USB20_PHY1_CON2_REG;
                write_mask = (RK3399_USBPHY_SUSPEND_N|RK3399_USBPHY_UTMI_SEL) << 16;
-               write_val = RK3399_USBPHY_UTMI_SEL;
+               write_val = enable ? 0 : RK3399_USBPHY_UTMI_SEL;
                break;
        default:
                return ENXIO;



Home | Main Index | Thread Index | Old Index