commit | d699c1d0860aa8b3031d56ec861e6c2f2e37df95 | [log] [tgz] |
---|---|---|
author | Icenowy Zheng <icenowy@aosc.xyz> | Sat Mar 25 22:50:09 2017 +0800 |
committer | Kishon Vijay Abraham I <kishon@ti.com> | Mon Apr 10 16:42:57 2017 +0530 |
tree | a95a2630b1256a7bf6fa4f150978b035892e2165 | |
parent | a0b1910e857897ae6c420fa0ece52c87d7cff373 [diff] |
phy: sun4i-usb: change PHYCTL register clearing code It seems that all SoCs with the PHYCTL register offset as 0x10 need the PHYCTL register to be cleared before it's written. Change PHYCTL register clearing code to judge whether clearing is needed based on the PHYCTL offset. Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>