1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (c) 2018 MediaTek Inc.
7 #ifndef _MTK_HDMI_PHY_H
8 #define _MTK_HDMI_PHY_H
10 #include <linux/clk-provider.h>
11 #include <linux/delay.h>
12 #include <linux/mfd/syscon.h>
13 #include <linux/module.h>
14 #include <linux/phy/phy.h>
15 #include <linux/platform_device.h>
16 #include <linux/types.h>
20 struct mtk_hdmi_phy_conf {
23 const struct clk_ops *hdmi_phy_clk_ops;
24 void (*hdmi_phy_enable_tmds)(struct mtk_hdmi_phy *hdmi_phy);
25 void (*hdmi_phy_disable_tmds)(struct mtk_hdmi_phy *hdmi_phy);
26 int (*hdmi_phy_configure)(struct phy *phy, union phy_configure_opts *opts);
32 struct mtk_hdmi_phy_conf *conf;
35 unsigned long pll_rate;
36 unsigned char drv_imp_clk;
37 unsigned char drv_imp_d2;
38 unsigned char drv_imp_d1;
39 unsigned char drv_imp_d0;
41 unsigned int ibias_up;
45 struct mtk_hdmi_phy *to_mtk_hdmi_phy(struct clk_hw *hw);
47 extern struct mtk_hdmi_phy_conf mtk_hdmi_phy_8195_conf;
48 extern struct mtk_hdmi_phy_conf mtk_hdmi_phy_8173_conf;
49 extern struct mtk_hdmi_phy_conf mtk_hdmi_phy_2701_conf;
51 #endif /* _MTK_HDMI_PHY_H */