Lines Matching +full:hdmi +full:- +full:phy

1 /* SPDX-License-Identifier: GPL-2.0-only */
15 #include <linux/hdmi.h>
20 #include "hdmi.xml.h"
33 struct hdmi { struct
58 struct hdmi_phy *phy; member
67 /* the encoder we are hooked to (outside of hdmi block) */ argument
70 bool hdmi_mode; /* are we in hdmi mode? */ argument
112 struct hdmi *hdmi; member
117 void msm_hdmi_set_mode(struct hdmi *hdmi, bool power_on);
119 static inline void hdmi_write(struct hdmi *hdmi, u32 reg, u32 data) in hdmi_write() argument
121 msm_writel(data, hdmi->mmio + reg); in hdmi_write()
124 static inline u32 hdmi_read(struct hdmi *hdmi, u32 reg) in hdmi_read() argument
126 return msm_readl(hdmi->mmio + reg); in hdmi_read()
129 static inline u32 hdmi_qfprom_read(struct hdmi *hdmi, u32 reg) in hdmi_qfprom_read() argument
131 return msm_readl(hdmi->qfprom_mmio + reg); in hdmi_qfprom_read()
135 * hdmi phy:
148 void (*powerup)(struct hdmi_phy *phy, unsigned long int pixclock);
149 void (*powerdown)(struct hdmi_phy *phy);
170 static inline void hdmi_phy_write(struct hdmi_phy *phy, u32 reg, u32 data) in hdmi_phy_write() argument
172 msm_writel(data, phy->mmio + reg); in hdmi_phy_write()
175 static inline u32 hdmi_phy_read(struct hdmi_phy *phy, u32 reg) in hdmi_phy_read() argument
177 return msm_readl(phy->mmio + reg); in hdmi_phy_read()
180 int msm_hdmi_phy_resource_enable(struct hdmi_phy *phy);
181 void msm_hdmi_phy_resource_disable(struct hdmi_phy *phy);
182 void msm_hdmi_phy_powerup(struct hdmi_phy *phy, unsigned long int pixclock);
183 void msm_hdmi_phy_powerdown(struct hdmi_phy *phy);
193 return -ENODEV; in msm_hdmi_pll_8960_init()
198 return -ENODEV; in msm_hdmi_pll_8996_init()
205 /* Supported HDMI Audio channels and rates */
219 int msm_hdmi_audio_update(struct hdmi *hdmi);
220 int msm_hdmi_audio_info_setup(struct hdmi *hdmi, bool enabled,
223 void msm_hdmi_audio_set_sample_rate(struct hdmi *hdmi, int rate);
227 * hdmi bridge:
230 struct drm_bridge *msm_hdmi_bridge_init(struct hdmi *hdmi);
245 struct i2c_adapter *msm_hdmi_i2c_init(struct hdmi *hdmi);
251 struct hdmi_hdcp_ctrl *msm_hdmi_hdcp_init(struct hdmi *hdmi);
252 void msm_hdmi_hdcp_destroy(struct hdmi *hdmi);
257 static inline struct hdmi_hdcp_ctrl *msm_hdmi_hdcp_init(struct hdmi *hdmi) in msm_hdmi_hdcp_init() argument
259 return ERR_PTR(-ENXIO); in msm_hdmi_hdcp_init()
261 static inline void msm_hdmi_hdcp_destroy(struct hdmi *hdmi) {} in msm_hdmi_hdcp_destroy() argument