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
109 struct hdmi *hdmi; member
114 void msm_hdmi_set_mode(struct hdmi *hdmi, bool power_on);
116 static inline void hdmi_write(struct hdmi *hdmi, u32 reg, u32 data) in hdmi_write() argument
118 msm_writel(data, hdmi->mmio + reg); in hdmi_write()
121 static inline u32 hdmi_read(struct hdmi *hdmi, u32 reg) in hdmi_read() argument
123 return msm_readl(hdmi->mmio + reg); in hdmi_read()
126 static inline u32 hdmi_qfprom_read(struct hdmi *hdmi, u32 reg) in hdmi_qfprom_read() argument
128 return msm_readl(hdmi->qfprom_mmio + reg); in hdmi_qfprom_read()
132 * hdmi phy:
145 void (*powerup)(struct hdmi_phy *phy, unsigned long int pixclock);
146 void (*powerdown)(struct hdmi_phy *phy);
167 static inline void hdmi_phy_write(struct hdmi_phy *phy, u32 reg, u32 data) in hdmi_phy_write() argument
169 msm_writel(data, phy->mmio + reg); in hdmi_phy_write()
172 static inline u32 hdmi_phy_read(struct hdmi_phy *phy, u32 reg) in hdmi_phy_read() argument
174 return msm_readl(phy->mmio + reg); in hdmi_phy_read()
177 int msm_hdmi_phy_resource_enable(struct hdmi_phy *phy);
178 void msm_hdmi_phy_resource_disable(struct hdmi_phy *phy);
179 void msm_hdmi_phy_powerup(struct hdmi_phy *phy, unsigned long int pixclock);
180 void msm_hdmi_phy_powerdown(struct hdmi_phy *phy);
190 return -ENODEV; in msm_hdmi_pll_8960_init()
195 return -ENODEV; in msm_hdmi_pll_8996_init()
202 /* Supported HDMI Audio channels and rates */
216 int msm_hdmi_audio_update(struct hdmi *hdmi);
217 int msm_hdmi_audio_info_setup(struct hdmi *hdmi, bool enabled,
220 void msm_hdmi_audio_set_sample_rate(struct hdmi *hdmi, int rate);
224 * hdmi bridge:
227 struct drm_bridge *msm_hdmi_bridge_init(struct hdmi *hdmi);
242 struct i2c_adapter *msm_hdmi_i2c_init(struct hdmi *hdmi);
248 struct hdmi_hdcp_ctrl *msm_hdmi_hdcp_init(struct hdmi *hdmi);
249 void msm_hdmi_hdcp_destroy(struct hdmi *hdmi);
254 static inline struct hdmi_hdcp_ctrl *msm_hdmi_hdcp_init(struct hdmi *hdmi) in msm_hdmi_hdcp_init() argument
256 return ERR_PTR(-ENXIO); in msm_hdmi_hdcp_init()
258 static inline void msm_hdmi_hdcp_destroy(struct hdmi *hdmi) {} in msm_hdmi_hdcp_destroy() argument