Lines Matching +full:hdmi +full:- +full:bridge

1 /* SPDX-License-Identifier: GPL-2.0-only */
15 #include <linux/hdmi.h>
20 #include "hdmi.xml.h"
33 struct hdmi {
63 struct drm_bridge *bridge;
67 /* the encoder we are hooked to (outside of hdmi block) */
98 struct hdmi *hdmi;
103 void msm_hdmi_set_mode(struct hdmi *hdmi, bool power_on);
105 static inline void hdmi_write(struct hdmi *hdmi, u32 reg, u32 data)
107 writel(data, hdmi->mmio + reg);
110 static inline u32 hdmi_read(struct hdmi *hdmi, u32 reg)
112 return readl(hdmi->mmio + reg);
115 static inline u32 hdmi_qfprom_read(struct hdmi *hdmi, u32 reg)
117 return readl(hdmi->qfprom_mmio + reg);
121 * hdmi phy:
160 writel(data, phy->mmio + reg);
165 return readl(phy->mmio + reg);
182 return -ENODEV;
187 return -ENODEV;
192 return -ENODEV;
202 int msm_hdmi_audio_update(struct hdmi *hdmi);
203 int msm_hdmi_bridge_audio_prepare(struct drm_bridge *bridge,
207 void msm_hdmi_bridge_audio_shutdown(struct drm_bridge *bridge,
211 * hdmi bridge:
214 int msm_hdmi_bridge_init(struct hdmi *hdmi);
216 void msm_hdmi_hpd_irq(struct drm_bridge *bridge);
218 struct drm_bridge *bridge, struct drm_connector *connector);
219 void msm_hdmi_hpd_enable(struct drm_bridge *bridge);
220 void msm_hdmi_hpd_disable(struct drm_bridge *bridge);
228 struct i2c_adapter *msm_hdmi_i2c_init(struct hdmi *hdmi);
234 struct hdmi_hdcp_ctrl *msm_hdmi_hdcp_init(struct hdmi *hdmi);
235 void msm_hdmi_hdcp_destroy(struct hdmi *hdmi);
240 static inline struct hdmi_hdcp_ctrl *msm_hdmi_hdcp_init(struct hdmi *hdmi)
242 return ERR_PTR(-ENXIO);
244 static inline void msm_hdmi_hdcp_destroy(struct hdmi *hdmi) {}