aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Jones <thj@FreeBSD.org>2026-02-09 10:05:41 +0000
committerTom Jones <thj@FreeBSD.org>2026-02-09 10:22:19 +0000
commit84bc16a587fe69eaf50b6b012c5781f99a14c449 (patch)
treeb886f901530e5a10b8af49b4503eb6724810545d
parentc5c183a97dc18951a90af79ee0e7e4a1f8662d06 (diff)
aw_usbphy: Add H616 compat string and configuration
Reviewed by: manu Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D54912
-rw-r--r--sys/arm/allwinner/aw_usbphy.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/arm/allwinner/aw_usbphy.c b/sys/arm/allwinner/aw_usbphy.c
index 97c3d2207773..2082d2edfc90 100644
--- a/sys/arm/allwinner/aw_usbphy.c
+++ b/sys/arm/allwinner/aw_usbphy.c
@@ -56,6 +56,7 @@ enum awusbphy_type {
AWUSBPHY_TYPE_A64,
AWUSBPHY_TYPE_A83T,
AWUSBPHY_TYPE_H6,
+ AWUSBPHY_TYPE_H616,
AWUSBPHY_TYPE_D1,
};
@@ -122,6 +123,13 @@ static const struct aw_usbphy_conf h6_usbphy_conf = {
.phy0_route = true,
};
+static const struct aw_usbphy_conf h616_usbphy_conf = {
+ .num_phys = 4,
+ .phy_type = AWUSBPHY_TYPE_H616,
+ .pmu_unk1 = false,
+ .phy0_route = true,
+};
+
static const struct aw_usbphy_conf d1_usbphy_conf = {
.num_phys = 2,
.phy_type = AWUSBPHY_TYPE_D1,
@@ -138,6 +146,7 @@ static struct ofw_compat_data compat_data[] = {
{ "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 },
+ { "allwinner,sun50i-h616-usb-phy", (uintptr_t)&h616_usbphy_conf },
{ "allwinner,sun20i-d1-usb-phy", (uintptr_t)&d1_usbphy_conf },
{ NULL, 0 }
};