diff options
author | Frank Wunderlich <frank-w@public-files.de> | 2020-08-20 16:37:52 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-08-24 14:11:31 -0400 |
commit | 626892a779addb9604387ece522e3410d3ef3aa5 (patch) | |
tree | 1cbad689f1b3691be5c0d42f4e301bace2b5c9d7 /drivers | |
parent | c9875a5fe85901b272c8e7db1b9bce513f02f1af (diff) | |
download | u-boot-626892a779addb9604387ece522e3410d3ef3aa5.tar.gz u-boot-626892a779addb9604387ece522e3410d3ef3aa5.tar.xz u-boot-626892a779addb9604387ece522e3410d3ef3aa5.zip |
phy: mtk-tphy: make shared reg optional for v1
make the shared reg optional when version is v1 for sata
Suggested-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
Reviewed-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/phy/phy-mtk-tphy.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/phy/phy-mtk-tphy.c b/drivers/phy/phy-mtk-tphy.c index 326227a30d..3d7b9cd2b1 100644 --- a/drivers/phy/phy-mtk-tphy.c +++ b/drivers/phy/phy-mtk-tphy.c @@ -698,11 +698,10 @@ static int mtk_tphy_probe(struct udevice *dev) tphy->dev = dev; tphy->version = dev_get_driver_data(dev); - /* v1 has shared banks */ + /* v1 has shared banks for usb/pcie mode, */ + /* but not for sata mode */ if (tphy->version == MTK_TPHY_V1) { tphy->sif_base = dev_read_addr_ptr(dev); - if (!tphy->sif_base) - return -ENOENT; } dev_for_each_subnode(subnode, dev) { |