Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Oct 2019 21:56:42 +0000 (UTC)
From:      Emmanuel Vadot <manu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r353530 - head/sys/arm/allwinner
Message-ID:  <201910142156.x9ELugOx023819@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: manu
Date: Mon Oct 14 21:56:41 2019
New Revision: 353530
URL: https://svnweb.freebsd.org/changeset/base/353530

Log:
  arm64: allwinner: aw_usbphy: Add support for H6 PHY
  
  MFC after:	1 month

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

Modified: head/sys/arm/allwinner/aw_usbphy.c
==============================================================================
--- head/sys/arm/allwinner/aw_usbphy.c	Mon Oct 14 21:55:45 2019	(r353529)
+++ head/sys/arm/allwinner/aw_usbphy.c	Mon Oct 14 21:56:41 2019	(r353530)
@@ -60,7 +60,8 @@ enum awusbphy_type {
 	AWUSBPHY_TYPE_A31,
 	AWUSBPHY_TYPE_H3,
 	AWUSBPHY_TYPE_A64,
-	AWUSBPHY_TYPE_A83T
+	AWUSBPHY_TYPE_A83T,
+	AWUSBPHY_TYPE_H6,
 };
 
 struct aw_usbphy_conf {
@@ -119,6 +120,13 @@ static const struct aw_usbphy_conf a83t_usbphy_conf = 
 	.phy0_route = false,
 };
 
+static const struct aw_usbphy_conf h6_usbphy_conf = {
+	.num_phys = 4,
+	.phy_type = AWUSBPHY_TYPE_H6,
+	.pmu_unk1 = false,
+	.phy0_route = true,
+};
+
 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 },
@@ -127,6 +135,7 @@ static struct ofw_compat_data compat_data[] = {
 	{ "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 },
+	{ "allwinner,sun50i-h6-usb-phy",	(uintptr_t)&h6_usbphy_conf },
 	{ NULL,					0 }
 };
 



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