Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/sunxi Add A83T USB PHY support



details:   https://anonhg.NetBSD.org/src/rev/7b68b872f741
branches:  trunk
changeset: 827440:7b68b872f741
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Oct 28 12:56:27 2017 +0000

description:
Add A83T USB PHY support

diffstat:

 sys/arch/arm/sunxi/sunxi_usbphy.c |  13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diffs (56 lines):

diff -r 9d34cf3be456 -r 7b68b872f741 sys/arch/arm/sunxi/sunxi_usbphy.c
--- a/sys/arch/arm/sunxi/sunxi_usbphy.c Sat Oct 28 12:56:10 2017 +0000
+++ b/sys/arch/arm/sunxi/sunxi_usbphy.c Sat Oct 28 12:56:27 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunxi_usbphy.c,v 1.9 2017/10/06 22:25:05 jmcneill Exp $ */
+/* $NetBSD: sunxi_usbphy.c,v 1.10 2017/10/28 12:56:27 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: sunxi_usbphy.c,v 1.9 2017/10/06 22:25:05 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunxi_usbphy.c,v 1.10 2017/10/28 12:56:27 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -78,8 +78,9 @@
        USBPHY_A13,
        USBPHY_A20,
        USBPHY_A31,
+       USBPHY_A64,
+       USBPHY_A83T,
        USBPHY_H3,
-       USBPHY_A64,
 };
 
 static const struct of_compat_data compat_data[] = {
@@ -87,6 +88,7 @@
        { "allwinner,sun5i-a13-usb-phy",        USBPHY_A13 },
        { "allwinner,sun6i-a31-usb-phy",        USBPHY_A31 },
        { "allwinner,sun7i-a20-usb-phy",        USBPHY_A20 },
+       { "allwinner,sun8i-a83t-usb-phy",       USBPHY_A83T },
        { "allwinner,sun8i-h3-usb-phy",         USBPHY_H3 },
        { "allwinner,sun50i-a64-usb-phy",       USBPHY_A64 },
        { NULL }
@@ -147,6 +149,7 @@
                break;
        case USBPHY_H3:
        case USBPHY_A64:
+       case USBPHY_A83T:
                reg = PHYCTL_A33;
                break;
        default:
@@ -230,6 +233,10 @@
                disc_thresh = 0x3;
                phy0_reroute = true;
                break;
+       case USBPHY_A83T:
+               disc_thresh = 0x0;
+               phy0_reroute = false;
+               break;
        default:
                aprint_error_dev(dev, "unsupported board\n");
                return ENXIO;



Home | Main Index | Thread Index | Old Index