Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Nov 2017 16:46:35 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r326191 - head/sys/arm/allwinner
Message-ID:  <201711251646.vAPGkZIb017893@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevans
Date: Sat Nov 25 16:46:35 2017
New Revision: 326191
URL: https://svnweb.freebsd.org/changeset/base/326191

Log:
  Allwinner a83t: enable USB support
  
  Originally a patch by Mark Millard, augmented with information from work
  done on NetBSD by jmcneill@.
  
  Submitted by:	Mark Millard (markmi@dsl-only.net)
  Reviewed by:	emaste, manu
  Approved by:	emaste (mentor)
  Differential Revision:	https://reviews.freebsd.org/D13240

Modified:
  head/sys/arm/allwinner/aw_usbphy.c

Modified: head/sys/arm/allwinner/aw_usbphy.c
==============================================================================
--- head/sys/arm/allwinner/aw_usbphy.c	Sat Nov 25 15:14:40 2017	(r326190)
+++ head/sys/arm/allwinner/aw_usbphy.c	Sat Nov 25 16:46:35 2017	(r326191)
@@ -59,7 +59,8 @@ enum awusbphy_type {
 	AWUSBPHY_TYPE_A20,
 	AWUSBPHY_TYPE_A31,
 	AWUSBPHY_TYPE_H3,
-	AWUSBPHY_TYPE_A64
+	AWUSBPHY_TYPE_A64,
+	AWUSBPHY_TYPE_A83T
 };
 
 struct aw_usbphy_conf {
@@ -111,6 +112,13 @@ static const struct aw_usbphy_conf a64_usbphy_conf = {
 	.phy0_route = true,
 };
 
+static const struct aw_usbphy_conf a83t_usbphy_conf = {
+	.num_phys = 3,
+	.phy_type = AWUSBPHY_TYPE_A83T,
+	.pmu_unk1 = false,
+	.phy0_route = false,
+};
+
 static struct ofw_compat_data compat_data[] = {
 	{ "allwinner,sun4i-a10-usb-phy",	(uintptr_t)&a10_usbphy_conf },
 	{ "allwinner,sun5i-a13-usb-phy",	(uintptr_t)&a13_usbphy_conf },
@@ -118,6 +126,7 @@ static struct ofw_compat_data compat_data[] = {
 	{ "allwinner,sun7i-a20-usb-phy",	(uintptr_t)&a20_usbphy_conf },
 	{ "allwinner,sun8i-h3-usb-phy",		(uintptr_t)&h3_usbphy_conf },
 	{ "allwinner,sun50i-a64-usb-phy",	(uintptr_t)&a64_usbphy_conf },
+	{ "allwinner,sun8i-a83t-usb-phy",	(uintptr_t)&a83t_usbphy_conf },
 	{ NULL,					0 }
 };
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711251646.vAPGkZIb017893>