Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USB2 INNO PHY 驱动修改 #9

Draft
wants to merge 6 commits into
base: histb
Choose a base branch
from
Prev Previous commit
Next Next commit
phy: hisilicon: hisi-inno-phy: enable clocks for every ports
This is needed for port1 to work.

Fixes: ba8b0ee ("phy: add inno-usb2-phy driver for hi3798cv200 SoC")
Signed-off-by: Yang Xiwen <[email protected]>
185264646 committed Mar 3, 2024
commit c6d48881286326c9297ef0e306b8ef8a6f4e2e97
4 changes: 3 additions & 1 deletion drivers/phy/hisilicon/phy-hisi-inno-usb2.c
Original file line number Diff line number Diff line change
@@ -86,8 +86,10 @@ static void hisi_inno_phy_write_reg(struct hisi_inno_phy_priv *priv,

static void hisi_inno_phy_setup(struct hisi_inno_phy_priv *priv)
{
int i;
/* The phy clk is controlled by the port0 register 0x06. */
hisi_inno_phy_write_reg(priv, 0, 0x06, PHY_CLK_ENABLE);
for (i = 0; i < INNO_PHY_PORT_NUM; i++)
hisi_inno_phy_write_reg(priv, i, 0x06, PHY_CLK_ENABLE);
msleep(PHY_CLK_STABLE_TIME);
}