Lines Matching refs:hdmi

22 	struct hdmi *hdmi;  member
34 struct hdmi *hdmi = hdmi_bridge->hdmi; in power_on() local
35 const struct hdmi_platform_config *config = hdmi->config; in power_on()
39 ret = regulator_enable(hdmi->pwr_regs[i]); in power_on()
47 DBG("pixclock: %lu", hdmi->pixclock); in power_on()
48 ret = clk_set_rate(hdmi->pwr_clks[0], hdmi->pixclock); in power_on()
56 ret = clk_prepare_enable(hdmi->pwr_clks[i]); in power_on()
68 struct hdmi *hdmi = hdmi_bridge->hdmi; in power_off() local
69 const struct hdmi_platform_config *config = hdmi->config; in power_off()
78 clk_disable_unprepare(hdmi->pwr_clks[i]); in power_off()
81 ret = regulator_disable(hdmi->pwr_regs[i]); in power_off()
92 struct hdmi *hdmi = hdmi_bridge->hdmi; in hdmi_bridge_pre_enable() local
93 struct hdmi_phy *phy = hdmi->phy; in hdmi_bridge_pre_enable()
97 if (!hdmi->power_on) { in hdmi_bridge_pre_enable()
99 hdmi->power_on = true; in hdmi_bridge_pre_enable()
100 hdmi_audio_update(hdmi); in hdmi_bridge_pre_enable()
104 phy->funcs->powerup(phy, hdmi->pixclock); in hdmi_bridge_pre_enable()
106 hdmi_set_mode(hdmi, true); in hdmi_bridge_pre_enable()
108 if (hdmi->hdcp_ctrl) in hdmi_bridge_pre_enable()
109 hdmi_hdcp_on(hdmi->hdcp_ctrl); in hdmi_bridge_pre_enable()
123 struct hdmi *hdmi = hdmi_bridge->hdmi; in hdmi_bridge_post_disable() local
124 struct hdmi_phy *phy = hdmi->phy; in hdmi_bridge_post_disable()
126 if (hdmi->hdcp_ctrl) in hdmi_bridge_post_disable()
127 hdmi_hdcp_off(hdmi->hdcp_ctrl); in hdmi_bridge_post_disable()
130 hdmi_set_mode(hdmi, false); in hdmi_bridge_post_disable()
135 if (hdmi->power_on) { in hdmi_bridge_post_disable()
137 hdmi->power_on = false; in hdmi_bridge_post_disable()
138 hdmi_audio_update(hdmi); in hdmi_bridge_post_disable()
147 struct hdmi *hdmi = hdmi_bridge->hdmi; in hdmi_bridge_mode_set() local
153 hdmi->pixclock = mode->clock * 1000; in hdmi_bridge_mode_set()
164 hdmi_write(hdmi, REG_HDMI_TOTAL, in hdmi_bridge_mode_set()
168 hdmi_write(hdmi, REG_HDMI_ACTIVE_HSYNC, in hdmi_bridge_mode_set()
171 hdmi_write(hdmi, REG_HDMI_ACTIVE_VSYNC, in hdmi_bridge_mode_set()
176 hdmi_write(hdmi, REG_HDMI_VSYNC_TOTAL_F2, in hdmi_bridge_mode_set()
178 hdmi_write(hdmi, REG_HDMI_VSYNC_ACTIVE_F2, in hdmi_bridge_mode_set()
182 hdmi_write(hdmi, REG_HDMI_VSYNC_TOTAL_F2, in hdmi_bridge_mode_set()
184 hdmi_write(hdmi, REG_HDMI_VSYNC_ACTIVE_F2, in hdmi_bridge_mode_set()
197 hdmi_write(hdmi, REG_HDMI_FRAME_CTRL, frame_ctrl); in hdmi_bridge_mode_set()
199 hdmi_audio_update(hdmi); in hdmi_bridge_mode_set()
212 struct drm_bridge *hdmi_bridge_init(struct hdmi *hdmi) in hdmi_bridge_init() argument
218 hdmi_bridge = devm_kzalloc(hdmi->dev->dev, in hdmi_bridge_init()
225 hdmi_bridge->hdmi = hdmi; in hdmi_bridge_init()
230 ret = drm_bridge_attach(hdmi->dev, bridge); in hdmi_bridge_init()