diff options
author | Kyle Evans <kevans@FreeBSD.org> | 2017-11-25 16:46:35 +0000 |
---|---|---|
committer | Kyle Evans <kevans@FreeBSD.org> | 2017-11-25 16:46:35 +0000 |
commit | 5b48129e9b7eb07faa3a79d2fee94a13a9c77820 (patch) | |
tree | 08a6a76c6284f115cfc6e04c3b1a4c57f6dc7d7b | |
parent | 3579d98f0b7bb98f1f5ab3b93e42d56e3646d7c7 (diff) | |
download | src-5b48129e9b7eb07faa3a79d2fee94a13a9c77820.tar.gz src-5b48129e9b7eb07faa3a79d2fee94a13a9c77820.zip |
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
Notes
Notes:
svn path=/head/; revision=326191
-rw-r--r-- | sys/arm/allwinner/aw_usbphy.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/arm/allwinner/aw_usbphy.c b/sys/arm/allwinner/aw_usbphy.c index db13f88197e8..f069af2a4bc9 100644 --- a/sys/arm/allwinner/aw_usbphy.c +++ b/sys/arm/allwinner/aw_usbphy.c @@ -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 } }; |