mirror of
https://xff.cz/git/u-boot/
synced 2025-10-27 16:43:32 +01:00
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: Chunfeng Yun <chunfeng.yun@mediatek.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Ryder Lee <ryder.lee@mediatek.com>
This commit is contained in:
@@ -338,7 +338,8 @@ static int mtk_tphy_probe(struct udevice *dev)
|
|||||||
tphy->phys[index] = instance;
|
tphy->phys[index] = instance;
|
||||||
index++;
|
index++;
|
||||||
|
|
||||||
err = clk_get_by_index_nodev(subnode, 0, &instance->ref_clk);
|
err = clk_get_optional_nodev(subnode, "ref",
|
||||||
|
&instance->ref_clk);
|
||||||
if (err)
|
if (err)
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user