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 /include | |
parent | 41524d7f3add5a58f2fd5951d0182d1e94dd3d03 (diff) | |
download | u-boot-f889491d57ea14dfe57dd74a23a6393e3aad5e5c.tar.gz |
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 'include')
-rw-r--r-- | include/dw_hdmi.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/dw_hdmi.h b/include/dw_hdmi.h index 8acae3839fb..17bdd2dbf9e 100644 --- a/include/dw_hdmi.h +++ b/include/dw_hdmi.h @@ -534,6 +534,12 @@ struct hdmi_data_info { struct hdmi_vmode video_mode; }; +struct dw_hdmi; + +struct dw_hdmi_phy_ops { + int (*phy_set)(struct dw_hdmi *hdmi, uint mpixelclock); +}; + struct dw_hdmi { ulong ioaddr; const struct hdmi_mpll_config *mpll_cfg; @@ -543,8 +549,8 @@ struct dw_hdmi { u8 reg_io_width; struct hdmi_data_info hdmi_data; struct udevice *ddc_bus; + const struct dw_hdmi_phy_ops *ops; - int (*phy_set)(struct dw_hdmi *hdmi, uint mpixelclock); void (*write_reg)(struct dw_hdmi *hdmi, u8 val, int offset); u8 (*read_reg)(struct dw_hdmi *hdmi, int offset); }; |