Lines Matching refs:hdmi_write
55 static void hdmi_write(struct dw_hdmi *hdmi, u8 val, int offset) in hdmi_write() function
90 hdmi_write(hdmi, val, reg); in hdmi_mod()
100 hdmi_write(hdmi, n3, HDMI_AUD_N3); in hdmi_set_clock_regenerator()
109 hdmi_write(hdmi, cts3, HDMI_AUD_CTS3); in hdmi_set_clock_regenerator()
110 hdmi_write(hdmi, (cts >> 8) & 0xff, HDMI_AUD_CTS2); in hdmi_set_clock_regenerator()
111 hdmi_write(hdmi, cts & 0xff, HDMI_AUD_CTS1); in hdmi_set_clock_regenerator()
115 hdmi_write(hdmi, n3, HDMI_AUD_N3); in hdmi_set_clock_regenerator()
116 hdmi_write(hdmi, (n >> 8) & 0xff, HDMI_AUD_N2); in hdmi_set_clock_regenerator()
117 hdmi_write(hdmi, n & 0xff, HDMI_AUD_N3); in hdmi_set_clock_regenerator()
119 hdmi_write(hdmi, HDMI_AUD_INPUTCLKFS_128, HDMI_AUD_INPUTCLKFS); in hdmi_set_clock_regenerator()
168 hdmi_write(hdmi, val, HDMI_TX_INVID0); in hdmi_video_sample()
174 hdmi_write(hdmi, val, HDMI_TX_INSTUFFING); in hdmi_video_sample()
175 hdmi_write(hdmi, 0x0, HDMI_TX_GYDATA0); in hdmi_video_sample()
176 hdmi_write(hdmi, 0x0, HDMI_TX_GYDATA1); in hdmi_video_sample()
177 hdmi_write(hdmi, 0x0, HDMI_TX_RCRDATA0); in hdmi_video_sample()
178 hdmi_write(hdmi, 0x0, HDMI_TX_RCRDATA1); in hdmi_video_sample()
179 hdmi_write(hdmi, 0x0, HDMI_TX_BCBDATA0); in hdmi_video_sample()
180 hdmi_write(hdmi, 0x0, HDMI_TX_BCBDATA1); in hdmi_video_sample()
195 hdmi_write(hdmi, val, HDMI_VP_PR_CD); in hdmi_video_packetize()
210 hdmi_write(hdmi, remap_size, HDMI_VP_REMAP); in hdmi_video_packetize()
244 hdmi_write(hdmi, val, HDMI_IH_I2CMPHY_STAT0); in hdmi_phy_wait_i2c_done()
256 hdmi_write(hdmi, 0xff, HDMI_IH_I2CMPHY_STAT0); in hdmi_phy_i2c_write()
257 hdmi_write(hdmi, addr, HDMI_PHY_I2CM_ADDRESS_ADDR); in hdmi_phy_i2c_write()
258 hdmi_write(hdmi, (u8)(data >> 8), HDMI_PHY_I2CM_DATAO_1_ADDR); in hdmi_phy_i2c_write()
259 hdmi_write(hdmi, (u8)(data >> 0), HDMI_PHY_I2CM_DATAO_0_ADDR); in hdmi_phy_i2c_write()
260 hdmi_write(hdmi, HDMI_PHY_I2CM_OPERATION_ADDR_WRITE, in hdmi_phy_i2c_write()
326 hdmi_write(hdmi, HDMI_MC_PHYRSTZ_DEASSERT, HDMI_MC_PHYRSTZ); in hdmi_phy_configure()
327 hdmi_write(hdmi, HDMI_MC_PHYRSTZ_ASSERT, HDMI_MC_PHYRSTZ); in hdmi_phy_configure()
328 hdmi_write(hdmi, HDMI_MC_HEACPHY_RST_ASSERT, HDMI_MC_HEACPHY_RST); in hdmi_phy_configure()
331 hdmi_write(hdmi, HDMI_PHY_I2CM_SLAVE_ADDR_PHY_GEN2, in hdmi_phy_configure()
424 hdmi_write(hdmi, inv_val, HDMI_FC_INVIDCONF); in hdmi_av_composer()
427 hdmi_write(hdmi, edid->hactive.typ >> 8, HDMI_FC_INHACTV1); in hdmi_av_composer()
428 hdmi_write(hdmi, edid->hactive.typ, HDMI_FC_INHACTV0); in hdmi_av_composer()
431 hdmi_write(hdmi, edid->vactive.typ >> 8, HDMI_FC_INVACTV1); in hdmi_av_composer()
432 hdmi_write(hdmi, edid->vactive.typ, HDMI_FC_INVACTV0); in hdmi_av_composer()
435 hdmi_write(hdmi, hbl >> 8, HDMI_FC_INHBLANK1); in hdmi_av_composer()
436 hdmi_write(hdmi, hbl, HDMI_FC_INHBLANK0); in hdmi_av_composer()
439 hdmi_write(hdmi, vbl, HDMI_FC_INVBLANK); in hdmi_av_composer()
442 hdmi_write(hdmi, edid->hfront_porch.typ >> 8, HDMI_FC_HSYNCINDELAY1); in hdmi_av_composer()
443 hdmi_write(hdmi, edid->hfront_porch.typ, HDMI_FC_HSYNCINDELAY0); in hdmi_av_composer()
446 hdmi_write(hdmi, edid->vfront_porch.typ, HDMI_FC_VSYNCINDELAY); in hdmi_av_composer()
449 hdmi_write(hdmi, edid->hsync_len.typ >> 8, HDMI_FC_HSYNCINWIDTH1); in hdmi_av_composer()
450 hdmi_write(hdmi, edid->hsync_len.typ, HDMI_FC_HSYNCINWIDTH0); in hdmi_av_composer()
453 hdmi_write(hdmi, edid->vsync_len.typ, HDMI_FC_VSYNCINWIDTH); in hdmi_av_composer()
462 hdmi_write(hdmi, 12, HDMI_FC_CTRLDUR); in hdmi_enable_video_path()
463 hdmi_write(hdmi, 32, HDMI_FC_EXCTRLDUR); in hdmi_enable_video_path()
464 hdmi_write(hdmi, 1, HDMI_FC_EXCTRLSPAC); in hdmi_enable_video_path()
467 hdmi_write(hdmi, 0x0b, HDMI_FC_CH0PREAM); in hdmi_enable_video_path()
468 hdmi_write(hdmi, 0x16, HDMI_FC_CH1PREAM); in hdmi_enable_video_path()
469 hdmi_write(hdmi, 0x21, HDMI_FC_CH2PREAM); in hdmi_enable_video_path()
471 hdmi_write(hdmi, HDMI_MC_FLOWCTRL_FEED_THROUGH_OFF_CSC_BYPASS, in hdmi_enable_video_path()
477 hdmi_write(hdmi, clkdis, HDMI_MC_CLKDIS); in hdmi_enable_video_path()
480 hdmi_write(hdmi, clkdis, HDMI_MC_CLKDIS); in hdmi_enable_video_path()
484 hdmi_write(hdmi, clkdis, HDMI_MC_CLKDIS); in hdmi_enable_video_path()
494 hdmi_write(hdmi, (u8)~HDMI_MC_SWRSTZ_TMDSSWRST_REQ, HDMI_MC_SWRSTZ); in hdmi_clear_overflow()
499 hdmi_write(hdmi, val, HDMI_FC_INVIDCONF); in hdmi_clear_overflow()
504 hdmi_write(hdmi, HDMI_AUD_CONF0_I2S_SELECT | HDMI_AUD_CONF0_I2S_IN_EN_0, in hdmi_audio_set_format()
508 hdmi_write(hdmi, HDMI_AUD_CONF1_I2S_MODE_STANDARD_MODE | in hdmi_audio_set_format()
511 hdmi_write(hdmi, 0x00, HDMI_AUD_CONF2); in hdmi_audio_set_format()
516 hdmi_write(hdmi, (u8)~HDMI_MC_SWRSTZ_II2SSWRST_REQ, HDMI_MC_SWRSTZ); in hdmi_audio_fifo_reset()
517 hdmi_write(hdmi, HDMI_AUD_CONF0_SW_AUDIO_FIFO_RST, HDMI_AUD_CONF0); in hdmi_audio_fifo_reset()
519 hdmi_write(hdmi, 0x00, HDMI_AUD_INT); in hdmi_audio_fifo_reset()
520 hdmi_write(hdmi, 0x00, HDMI_AUD_INT1); in hdmi_audio_fifo_reset()
539 hdmi_write(hdmi, val, HDMI_IH_I2CM_STAT0); in hdmi_ddc_wait_i2c_done()
562 hdmi_write(hdmi, hdmi->i2c_clk_high, HDMI_I2CM_SS_SCL_HCNT_0_ADDR); in hdmi_read_edid()
563 hdmi_write(hdmi, hdmi->i2c_clk_low, HDMI_I2CM_SS_SCL_LCNT_0_ADDR); in hdmi_read_edid()
567 hdmi_write(hdmi, HDMI_I2CM_SLAVE_DDC_ADDR, HDMI_I2CM_SLAVE); in hdmi_read_edid()
568 hdmi_write(hdmi, HDMI_I2CM_SEGADDR_DDC, HDMI_I2CM_SEGADDR); in hdmi_read_edid()
569 hdmi_write(hdmi, block >> 1, HDMI_I2CM_SEGPTR); in hdmi_read_edid()
575 hdmi_write(hdmi, shift + n, HDMI_I2CM_ADDRESS); in hdmi_read_edid()
578 hdmi_write(hdmi, HDMI_I2CM_OP_RD8, in hdmi_read_edid()
581 hdmi_write(hdmi, HDMI_I2CM_OP_RD8_EXT, in hdmi_read_edid()
673 hdmi_write(hdmi, HDMI_PHY_I2CM_INT_ADDR_DONE_POL, in dw_hdmi_phy_init()
677 hdmi_write(hdmi, HDMI_PHY_I2CM_CTLINT_ADDR_NAC_POL | in dw_hdmi_phy_init()
682 hdmi_write(hdmi, (u8)~HDMI_PHY_HPD, HDMI_PHY_MASK0); in dw_hdmi_phy_init()
685 hdmi_write(hdmi, HDMI_IH_PHY_STAT0_HPD, HDMI_IH_PHY_STAT0); in dw_hdmi_phy_init()
757 hdmi_write(hdmi, ih_mute, HDMI_IH_MUTE); in dw_hdmi_init()
760 hdmi_write(hdmi, ~0x04, HDMI_I2CM_INT); in dw_hdmi_init()
763 hdmi_write(hdmi, ~0x44, HDMI_I2CM_CTLINT); in dw_hdmi_init()