svn commit: r324020 - head/sys/arm/allwinner
Emmanuel Vadot
manu at FreeBSD.org
Tue Sep 26 19:19:46 UTC 2017
Author: manu
Date: Tue Sep 26 19:19:44 2017
New Revision: 324020
URL: https://svnweb.freebsd.org/changeset/base/324020
Log:
aw_usbphy: Fix write of unknown register
Some SoC require a write to a unknown register to work corectly.
This write should be in the pmu region not in the phy ctrl one.
Reported by: Mark Millard (markmi at dsl-only.net)
Modified:
head/sys/arm/allwinner/aw_usbphy.c
Modified: head/sys/arm/allwinner/aw_usbphy.c
==============================================================================
--- head/sys/arm/allwinner/aw_usbphy.c Tue Sep 26 17:52:52 2017 (r324019)
+++ head/sys/arm/allwinner/aw_usbphy.c Tue Sep 26 19:19:44 2017 (r324020)
@@ -158,7 +158,7 @@ awusbphy_configure(device_t dev, int phyno)
return;
if (sc->phy_conf->pmu_unk1 == true)
- CLR4(sc->phy_ctrl, PMU_UNK_H3, PMU_UNK_H3_CLR);
+ CLR4(sc->pmu[phyno], PMU_UNK_H3, PMU_UNK_H3_CLR);
if (sc->phy_conf->phy0_route == true) {
if (phyno == 0)
More information about the svn-src-all
mailing list