phy: rockchip-inno-usb2: set floating charger type as DCP
authorWilliam Wu <wulf@rock-chips.com>
Thu, 8 Dec 2016 03:00:45 +0000 (11:00 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 8 Dec 2016 12:16:10 +0000 (20:16 +0800)
commit58f09e08b34b9f8769cc7516845d82cf3e9c25d9
treeb9a1768d63bc6312e490c29289efd0a52e6ab955
parent83d3ced87600aa455f47882ae45c596cd3856d18
phy: rockchip-inno-usb2: set floating charger type as DCP

Floating charger is a kind of special USB charger that
dp/dm not shorted, which is incompatible with BC1.2 spec.

However, we need to support this floating charger, and
consider that the max charge current of floating charger
is the same as standard USB charger (dp/dm is shorted),
so we set the charger type as DCP for floating charger.

Change-Id: Ifaca7269a3d4660ac095c59776d7e935fe6126df
Signed-off-by: William Wu <wulf@rock-chips.com>
drivers/phy/phy-rockchip-inno-usb2.c