• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修订版25ba5be1c2b6324917254f0c22df1ad9d3d3c9e7 (tree)
时间2022-07-19 07:48:37
作者Samuel Holland <samuel@shol...>
CommiterAndre Przywara

Log Message

phy: sun4i-usb: Add D1 variant

D1 has a register layout like A100 and H616, with the moved SIDDQ bit.
Unlike H616 it does not have any dependencies between PHY instances.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>

更改概述

差异

--- a/drivers/phy/allwinner/phy-sun4i-usb.c
+++ b/drivers/phy/allwinner/phy-sun4i-usb.c
@@ -610,6 +610,15 @@ static const struct sun4i_usb_phy_cfg sun8i_v3s_cfg = {
610610 .phy0_dual_route = true,
611611 };
612612
613+static const struct sun4i_usb_phy_cfg sun20i_d1_cfg = {
614+ .num_phys = 2,
615+ .type = sun50i_h6_phy,
616+ .phyctl_offset = REG_PHYCTL_A33,
617+ .dedicated_clocks = true,
618+ .hci_phy_ctl_clear = PHY_CTL_SIDDQ,
619+ .phy0_dual_route = true,
620+};
621+
613622 static const struct sun4i_usb_phy_cfg sun50i_a64_cfg = {
614623 .num_phys = 2,
615624 .type = sun50i_a64_phy,
@@ -641,6 +650,7 @@ static const struct udevice_id sun4i_usb_phy_ids[] = {
641650 { .compatible = "allwinner,sun8i-h3-usb-phy", .data = (ulong)&sun8i_h3_cfg },
642651 { .compatible = "allwinner,sun8i-r40-usb-phy", .data = (ulong)&sun8i_r40_cfg },
643652 { .compatible = "allwinner,sun8i-v3s-usb-phy", .data = (ulong)&sun8i_v3s_cfg },
653+ { .compatible = "allwinner,sun20i-d1-usb-phy", .data = (ulong)&sun20i_d1_cfg },
644654 { .compatible = "allwinner,sun50i-a64-usb-phy", .data = (ulong)&sun50i_a64_cfg},
645655 { .compatible = "allwinner,sun50i-h6-usb-phy", .data = (ulong)&sun50i_h6_cfg},
646656 { }