提交 ce0069ed 编写于 作者: C Chunfeng Yun 提交者: Tom Rini

phy: phy-mtk-tphy: make ref clock optional

If make the ref clock optional, no need refer to fixed-clock when
the ref clock is always on or comes from oscillator directly.
Signed-off-by: NChunfeng Yun <chunfeng.yun@mediatek.com>
Reviewed-by: NSimon Glass <sjg@chromium.org>
Reviewed-by: NRyder Lee <ryder.lee@mediatek.com>
上级 3b6351a4
......@@ -338,7 +338,8 @@ static int mtk_tphy_probe(struct udevice *dev)
tphy->phys[index] = instance;
index++;
err = clk_get_by_index_nodev(subnode, 0, &instance->ref_clk);
err = clk_get_optional_nodev(subnode, "ref",
&instance->ref_clk);
if (err)
return err;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册