diff options
author | Jagan Teki <jagan@edgeble.ai> | 2024-01-17 13:21:39 +0530 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2024-04-21 09:07:00 +0200 |
commit | f889491d57ea14dfe57dd74a23a6393e3aad5e5c (patch) | |
tree | 9189fc5dd5c46a23b7a82b60287a3064386a22b1 /drivers/video/sunxi | |
parent | 41524d7f3add5a58f2fd5951d0182d1e94dd3d03 (diff) | |
download | u-boot-f889491d57ea14dfe57dd74a23a6393e3aad5e5c.zip u-boot-f889491d57ea14dfe57dd74a23a6393e3aad5e5c.tar.gz u-boot-f889491d57ea14dfe57dd74a23a6393e3aad5e5c.tar.bz2 |
video: dw_hdmi: Add Vendor PHY handling
DW HDMI support Vendor PHY like Rockchip RK3328 Inno HDMI PHY.
Extend the vendor phy handling by adding platform phy hooks.
Signed-off-by: Jagan Teki <jagan@edgeble.ai>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Diffstat (limited to 'drivers/video/sunxi')
-rw-r--r-- | drivers/video/sunxi/sunxi_dw_hdmi.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/video/sunxi/sunxi_dw_hdmi.c b/drivers/video/sunxi/sunxi_dw_hdmi.c index 0324a05..986e69d 100644 --- a/drivers/video/sunxi/sunxi_dw_hdmi.c +++ b/drivers/video/sunxi/sunxi_dw_hdmi.c @@ -369,6 +369,10 @@ static int sunxi_dw_hdmi_probe(struct udevice *dev) return 0; } +static const struct dw_hdmi_phy_ops dw_hdmi_sunxi_phy_ops = { + .phy_set = sunxi_dw_hdmi_phy_cfg, +}; + static int sunxi_dw_hdmi_of_to_plat(struct udevice *dev) { struct sunxi_dw_hdmi_priv *priv = dev_get_priv(dev); @@ -379,7 +383,7 @@ static int sunxi_dw_hdmi_of_to_plat(struct udevice *dev) hdmi->i2c_clk_high = 0xd8; hdmi->i2c_clk_low = 0xfe; hdmi->reg_io_width = 1; - hdmi->phy_set = sunxi_dw_hdmi_phy_cfg; + hdmi->ops = &dw_hdmi_sunxi_phy_ops; ret = reset_get_bulk(dev, &priv->resets); if (ret) |