OSDN Git Service

phy: phy-mtk-tphy: add support efuse setting
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Sat, 18 Dec 2021 08:27:59 +0000 (16:27 +0800)
committerVinod Koul <vkoul@kernel.org>
Fri, 24 Dec 2021 04:36:37 +0000 (10:06 +0530)
commit6f2b033cb883f64ad084a75f13634242c7e179a6
treefa6752951367878b64742df41ae3791666ffae34
parentc6d92a287ae718c3207dddea3f36ea1689ac59a8
phy: phy-mtk-tphy: add support efuse setting

Due to some SoCs have a bit shift issue that will drop a bit for usb3
phy or pcie phy, fix it by adding software efuse reading and setting,
but only support it optionally for version 2/3.

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Link: https://lore.kernel.org/r/20211218082802.5256-2-chunfeng.yun@mediatek.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/mediatek/phy-mtk-tphy.c