Commit 8da71eba authored by Chunfeng Yun's avatar Chunfeng Yun Committed by Vinod Koul

phy: phy-mtk-tphy: disable hardware efuse when set INTR

INTR's value is able autoload from hardware efuse by default, when
software tries to update its value, should disable hardware efuse
firstly.
Reviewed-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: default avatarChunfeng Yun <chunfeng.yun@mediatek.com>
Link: https://lore.kernel.org/r/20220914060746.10004-4-chunfeng.yun@mediatek.comSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 930981b4
...@@ -874,9 +874,14 @@ static void u2_phy_props_set(struct mtk_tphy *tphy, ...@@ -874,9 +874,14 @@ static void u2_phy_props_set(struct mtk_tphy *tphy,
mtk_phy_update_bits(com + U3P_USBPHYACR1, PA1_RG_TERM_SEL, mtk_phy_update_bits(com + U3P_USBPHYACR1, PA1_RG_TERM_SEL,
PA1_RG_TERM_SEL_VAL(instance->eye_term)); PA1_RG_TERM_SEL_VAL(instance->eye_term));
if (instance->intr) if (instance->intr) {
if (u2_banks->misc)
mtk_phy_set_bits(u2_banks->misc + U3P_MISC_REG1,
MR1_EFUSE_AUTO_LOAD_DIS);
mtk_phy_update_bits(com + U3P_USBPHYACR1, PA1_RG_INTR_CAL, mtk_phy_update_bits(com + U3P_USBPHYACR1, PA1_RG_INTR_CAL,
PA1_RG_INTR_CAL_VAL(instance->intr)); PA1_RG_INTR_CAL_VAL(instance->intr));
}
if (instance->discth) if (instance->discth)
mtk_phy_update_bits(com + U3P_USBPHYACR6, PA6_RG_U2_DISCTH, mtk_phy_update_bits(com + U3P_USBPHYACR6, PA6_RG_U2_DISCTH,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment