Lines Matching refs:hdmi
93 struct sunxi_hdmi_reg * const hdmi = in sunxi_hdmi_hpd_detect() local
113 writel(SUNXI_HDMI_CTRL_ENABLE, &hdmi->ctrl); in sunxi_hdmi_hpd_detect()
114 writel(SUNXI_HDMI_PAD_CTRL0_HDP, &hdmi->pad_ctrl0); in sunxi_hdmi_hpd_detect()
117 if (readl(&hdmi->hpd) & SUNXI_HDMI_HPD_DETECT) in sunxi_hdmi_hpd_detect()
128 struct sunxi_hdmi_reg * const hdmi = in sunxi_hdmi_shutdown() local
131 clrbits_le32(&hdmi->ctrl, SUNXI_HDMI_CTRL_ENABLE); in sunxi_hdmi_shutdown()
142 struct sunxi_hdmi_reg * const hdmi = in sunxi_hdmi_ddc_do_command() local
145 setbits_le32(&hdmi->ddc_fifo_ctrl, SUNXI_HDMI_DDC_FIFO_CTRL_CLEAR); in sunxi_hdmi_ddc_do_command()
149 SUNXI_HMDI_DDC_ADDR_SLAVE_ADDR, &hdmi->ddc_addr); in sunxi_hdmi_ddc_do_command()
151 writel(n, &hdmi->ddc_byte_count); in sunxi_hdmi_ddc_do_command()
152 writel(cmnd, &hdmi->ddc_cmnd); in sunxi_hdmi_ddc_do_command()
154 writel(n << 16 | cmnd, &hdmi->ddc_cmnd); in sunxi_hdmi_ddc_do_command()
156 setbits_le32(&hdmi->ddc_ctrl, SUNXI_HMDI_DDC_CTRL_START); in sunxi_hdmi_ddc_do_command()
158 return await_completion(&hdmi->ddc_ctrl, SUNXI_HMDI_DDC_CTRL_START, 0); in sunxi_hdmi_ddc_do_command()
163 struct sunxi_hdmi_reg * const hdmi = in sunxi_hdmi_ddc_read() local
179 *buf++ = readb(&hdmi->ddc_fifo_data); in sunxi_hdmi_ddc_read()
212 struct sunxi_hdmi_reg * const hdmi = in sunxi_hdmi_edid_get_mode() local
220 &hdmi->pad_ctrl1); in sunxi_hdmi_edid_get_mode()
222 &hdmi->pll_ctrl); in sunxi_hdmi_edid_get_mode()
223 writel(SUNXI_HDMI_PLL_DBG0_PLL3, &hdmi->pll_dbg0); in sunxi_hdmi_edid_get_mode()
230 SUNXI_HMDI_DDC_CTRL_RESET, &hdmi->ddc_ctrl); in sunxi_hdmi_edid_get_mode()
231 if (await_completion(&hdmi->ddc_ctrl, SUNXI_HMDI_DDC_CTRL_RESET, 0)) in sunxi_hdmi_edid_get_mode()
234 writel(SUNXI_HDMI_DDC_CLOCK, &hdmi->ddc_clock); in sunxi_hdmi_edid_get_mode()
237 SUNXI_HMDI_DDC_LINE_CTRL_SCL_ENABLE, &hdmi->ddc_line_ctrl); in sunxi_hdmi_edid_get_mode()
262 clrbits_le32(&hdmi->ddc_ctrl, SUNXI_HMDI_DDC_CTRL_ENABLE); in sunxi_hdmi_edid_get_mode()
705 struct sunxi_hdmi_reg * const hdmi = local
736 writeb(avi_info_frame[i], &hdmi->avi_info_frame[i]);
738 writel(SUNXI_HDMI_QCP_PACKET0, &hdmi->qcp_packet0);
739 writel(SUNXI_HDMI_QCP_PACKET1, &hdmi->qcp_packet1);
742 writeb(vendor_info_frame[i], &hdmi->vendor_info_frame[i]);
744 writel(SUNXI_HDMI_PKT_CTRL0, &hdmi->pkt_ctrl0);
745 writel(SUNXI_HDMI_PKT_CTRL1, &hdmi->pkt_ctrl1);
747 setbits_le32(&hdmi->video_ctrl, SUNXI_HDMI_VIDEO_CTRL_HDMI);
753 struct sunxi_hdmi_reg * const hdmi = local
758 writel(SUNXI_HDMI_IRQ_STATUS_BITS, &hdmi->irq);
764 writel(SUNXI_HDMI_UNKNOWN_INPUT_SYNC, &hdmi->unknown);
767 writel(SUNXI_HDMI_VIDEO_POL_TX_CLK, &hdmi->video_polarity);
768 writel(SUNXI_HDMI_PAD_CTRL0_RUN, &hdmi->pad_ctrl0);
769 writel(SUNXI_HDMI_PAD_CTRL1, &hdmi->pad_ctrl1);
770 writel(SUNXI_HDMI_PLL_CTRL, &hdmi->pll_ctrl);
771 writel(SUNXI_HDMI_PLL_DBG0_PLL3, &hdmi->pll_dbg0);
774 clrsetbits_le32(&hdmi->pll_ctrl, SUNXI_HDMI_PLL_CTRL_DIV_MASK,
777 setbits_le32(&hdmi->pad_ctrl1, SUNXI_HDMI_PAD_CTRL1_HALVE);
781 &hdmi->video_size);
785 writel(SUNXI_HDMI_Y(y) | SUNXI_HDMI_X(x), &hdmi->video_bp);
789 writel(SUNXI_HDMI_Y(y) | SUNXI_HDMI_X(x), &hdmi->video_fp);
793 writel(SUNXI_HDMI_Y(y) | SUNXI_HDMI_X(x), &hdmi->video_spw);
796 setbits_le32(&hdmi->video_polarity, SUNXI_HDMI_VIDEO_POL_HOR);
799 setbits_le32(&hdmi->video_polarity, SUNXI_HDMI_VIDEO_POL_VER);
804 struct sunxi_hdmi_reg * const hdmi = local
808 setbits_le32(&hdmi->video_ctrl, SUNXI_HDMI_VIDEO_CTRL_ENABLE);