“c8f30ae54714abf494d79826d90b5e4844fbf355”上不存在“arch/mips/include/asm/bitops.h”
提交 08db7e5c 编写于 作者: H huang lin 提交者: Kishon Vijay Abraham I

phy: rockchip-usb: power down phy when rockchip phy probe

rockchip phy are enable when soc reset, to save power consumption,
we disable it when probe, and enable each phy when it use
Signed-off-by: Nhuang lin <hl@rock-chips.com>
Signed-off-by: NKishon Vijay Abraham I <kishon@ti.com>
上级 65d49b3d
...@@ -98,6 +98,7 @@ static int rockchip_usb_phy_probe(struct platform_device *pdev) ...@@ -98,6 +98,7 @@ static int rockchip_usb_phy_probe(struct platform_device *pdev)
struct device_node *child; struct device_node *child;
struct regmap *grf; struct regmap *grf;
unsigned int reg_offset; unsigned int reg_offset;
int err;
grf = syscon_regmap_lookup_by_phandle(dev->of_node, "rockchip,grf"); grf = syscon_regmap_lookup_by_phandle(dev->of_node, "rockchip,grf");
if (IS_ERR(grf)) { if (IS_ERR(grf)) {
...@@ -129,6 +130,11 @@ static int rockchip_usb_phy_probe(struct platform_device *pdev) ...@@ -129,6 +130,11 @@ static int rockchip_usb_phy_probe(struct platform_device *pdev)
return PTR_ERR(rk_phy->phy); return PTR_ERR(rk_phy->phy);
} }
phy_set_drvdata(rk_phy->phy, rk_phy); phy_set_drvdata(rk_phy->phy, rk_phy);
/* only power up usb phy when it use, so disable it when init*/
err = rockchip_usb_phy_power(rk_phy, 1);
if (err)
return err;
} }
phy_provider = devm_of_phy_provider_register(dev, of_phy_simple_xlate); phy_provider = devm_of_phy_provider_register(dev, of_phy_simple_xlate);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册