| /linux/drivers/gpu/drm/sun4i/ |
| H A D | sun4i_hdmi_i2c.c | 25 static int fifo_transfer(struct sun4i_hdmi *hdmi, u8 *buf, int len, bool read) in fifo_transfer() argument 41 (hdmi->variant->ddc_fifo_thres_incl ? 0 : 1); in fifo_transfer() 50 if (regmap_field_read_poll_timeout(hdmi->field_ddc_int_status, reg, in fifo_transfer() 59 ioread8_rep(hdmi->base + hdmi->variant->ddc_fifo_reg, buf, len); in fifo_transfer() 61 iowrite8_rep(hdmi->base + hdmi->variant->ddc_fifo_reg, buf, len); in fifo_transfer() 64 regmap_field_force_write(hdmi->field_ddc_int_status, in fifo_transfer() 70 static int xfer_msg(struct sun4i_hdmi *hdmi, struct i2c_msg *msg) in xfer_msg() argument 76 if (hdmi->variant->ddc_fifo_has_dir) { in xfer_msg() 77 reg = readl(hdmi->base + SUN4I_HDMI_DDC_CTRL_REG); in xfer_msg() 82 writel(reg, hdmi->base + SUN4I_HDMI_DDC_CTRL_REG); in xfer_msg() [all …]
|
| H A D | sun8i_dw_hdmi.c | 22 struct sun8i_dw_hdmi *hdmi = encoder_to_sun8i_dw_hdmi(encoder); in sun8i_dw_hdmi_encoder_mode_set() local 24 clk_set_rate(hdmi->clk_tmds, mode->crtc_clock * 1000); in sun8i_dw_hdmi_encoder_mode_set() 33 sun8i_dw_hdmi_mode_valid_a83t(struct dw_hdmi *hdmi, void *data, in sun8i_dw_hdmi_mode_valid_a83t() argument 44 sun8i_dw_hdmi_mode_valid_h6(struct dw_hdmi *hdmi, void *data, in sun8i_dw_hdmi_mode_valid_h6() argument 104 struct sun8i_dw_hdmi *hdmi; in sun8i_dw_hdmi_bind() local 110 hdmi = devm_kzalloc(&pdev->dev, sizeof(*hdmi), GFP_KERNEL); in sun8i_dw_hdmi_bind() 111 if (!hdmi) in sun8i_dw_hdmi_bind() 114 plat_data = &hdmi->plat_data; in sun8i_dw_hdmi_bind() 115 hdmi->dev = &pdev->dev; in sun8i_dw_hdmi_bind() 116 encoder = &hdmi->encoder; in sun8i_dw_hdmi_bind() [all …]
|
| H A D | sun8i_hdmi_phy.c | 142 static int sun8i_a83t_hdmi_phy_config(struct dw_hdmi *hdmi, void *data, in sun8i_a83t_hdmi_phy_config() argument 156 dw_hdmi_phy_gen2_txpwron(hdmi, 0); in sun8i_a83t_hdmi_phy_config() 157 dw_hdmi_phy_gen2_pddq(hdmi, 1); in sun8i_a83t_hdmi_phy_config() 159 dw_hdmi_phy_gen2_reset(hdmi); in sun8i_a83t_hdmi_phy_config() 161 dw_hdmi_phy_gen2_pddq(hdmi, 0); in sun8i_a83t_hdmi_phy_config() 163 dw_hdmi_phy_i2c_set_addr(hdmi, I2C_ADDR); in sun8i_a83t_hdmi_phy_config() 171 dw_hdmi_phy_i2c_write(hdmi, 0x01e0, 0x06); in sun8i_a83t_hdmi_phy_config() 172 dw_hdmi_phy_i2c_write(hdmi, 0x0000, 0x15); in sun8i_a83t_hdmi_phy_config() 173 dw_hdmi_phy_i2c_write(hdmi, 0x08da, 0x10); in sun8i_a83t_hdmi_phy_config() 174 dw_hdmi_phy_i2c_write(hdmi, 0x0007, 0x19); in sun8i_a83t_hdmi_phy_config() [all …]
|
| H A D | sun4i_hdmi_tmds_clk.c | 16 struct sun4i_hdmi *hdmi; member 131 reg = readl(tmds->hdmi->base + SUN4I_HDMI_PAD_CTRL1_REG); in sun4i_tmds_recalc_rate() 135 reg = readl(tmds->hdmi->base + SUN4I_HDMI_PLL_CTRL_REG); in sun4i_tmds_recalc_rate() 154 reg = readl(tmds->hdmi->base + SUN4I_HDMI_PAD_CTRL1_REG); in sun4i_tmds_set_rate() 158 writel(reg, tmds->hdmi->base + SUN4I_HDMI_PAD_CTRL1_REG); in sun4i_tmds_set_rate() 160 reg = readl(tmds->hdmi->base + SUN4I_HDMI_PLL_CTRL_REG); in sun4i_tmds_set_rate() 163 tmds->hdmi->base + SUN4I_HDMI_PLL_CTRL_REG); in sun4i_tmds_set_rate() 173 reg = readl(tmds->hdmi->base + SUN4I_HDMI_PLL_DBG0_REG); in sun4i_tmds_get_parent() 186 reg = readl(tmds->hdmi->base + SUN4I_HDMI_PLL_DBG0_REG); in sun4i_tmds_set_parent() 189 tmds->hdmi->base + SUN4I_HDMI_PLL_DBG0_REG); in sun4i_tmds_set_parent() [all …]
|
| H A D | Makefile | 8 sun4i-drm-hdmi-y += sun4i_hdmi_ddc_clk.o 9 sun4i-drm-hdmi-y += sun4i_hdmi_enc.o 10 sun4i-drm-hdmi-y += sun4i_hdmi_i2c.o 11 sun4i-drm-hdmi-y += sun4i_hdmi_tmds_clk.o 13 sun8i-drm-hdmi-y += sun8i_dw_hdmi.o 14 sun8i-drm-hdmi-y += sun8i_hdmi_phy.o 15 sun8i-drm-hdmi-y += sun8i_hdmi_phy_clk.o 36 obj-$(CONFIG_DRM_SUN4I_HDMI) += sun4i-drm-hdmi.o 38 obj-$(CONFIG_DRM_SUN8I_DW_HDMI) += sun8i-drm-hdmi.o
|
| /linux/drivers/gpu/drm/bridge/synopsys/ |
| H A D | dw-hdmi-qp.c | 174 static void dw_hdmi_qp_write(struct dw_hdmi_qp *hdmi, unsigned int val, in dw_hdmi_qp_write() argument 177 regmap_write(hdmi->regm, offset, val); in dw_hdmi_qp_write() 180 static unsigned int dw_hdmi_qp_read(struct dw_hdmi_qp *hdmi, int offset) in dw_hdmi_qp_read() argument 184 regmap_read(hdmi->regm, offset, &val); in dw_hdmi_qp_read() 189 static void dw_hdmi_qp_mod(struct dw_hdmi_qp *hdmi, unsigned int data, in dw_hdmi_qp_mod() argument 192 regmap_update_bits(hdmi->regm, reg, mask, data); in dw_hdmi_qp_mod() 200 static void dw_hdmi_qp_set_cts_n(struct dw_hdmi_qp *hdmi, unsigned int cts, in dw_hdmi_qp_set_cts_n() argument 204 dw_hdmi_qp_mod(hdmi, n, AUDPKT_ACR_N_VALUE, AUDPKT_ACR_CONTROL0); in dw_hdmi_qp_set_cts_n() 208 dw_hdmi_qp_mod(hdmi, AUDPKT_ACR_CTS_OVR_EN, AUDPKT_ACR_CTS_OVR_EN_MSK, in dw_hdmi_qp_set_cts_n() 211 dw_hdmi_qp_mod(hdmi, 0, AUDPKT_ACR_CTS_OVR_EN_MSK, in dw_hdmi_qp_set_cts_n() [all …]
|
| H A D | dw-hdmi-i2s-audio.c | 25 struct dw_hdmi *hdmi = audio->hdmi; in hdmi_write() local 27 audio->write(hdmi, val, offset); in hdmi_write() 32 struct dw_hdmi *hdmi = audio->hdmi; in hdmi_read() local 34 return audio->read(hdmi, offset); in hdmi_read() 42 struct dw_hdmi *hdmi = audio->hdmi; in dw_hdmi_i2s_hw_params() local 104 dw_hdmi_set_sample_rate(hdmi, hparms->sample_rate); in dw_hdmi_i2s_hw_params() 105 dw_hdmi_set_channel_status(hdmi, hparms->iec.status); in dw_hdmi_i2s_hw_params() 106 dw_hdmi_set_channel_count(hdmi, hparms->channels); in dw_hdmi_i2s_hw_params() 107 dw_hdmi_set_channel_allocation(hdmi, hparms->cea.channel_allocation); in dw_hdmi_i2s_hw_params() 119 struct dw_hdmi *hdmi = audio->hdmi; in dw_hdmi_i2s_audio_startup() local [all …]
|
| H A D | dw-hdmi-audio.h | 11 struct dw_hdmi *hdmi; member 12 u8 *(*get_eld)(struct dw_hdmi *hdmi); 16 struct dw_hdmi *hdmi; member 18 void (*write)(struct dw_hdmi *hdmi, u8 val, int offset); 19 u8 (*read)(struct dw_hdmi *hdmi, int offset); 20 u8 *(*get_eld)(struct dw_hdmi *hdmi);
|
| H A D | dw-hdmi-cec.h | 7 void (*write)(struct dw_hdmi *hdmi, u8 val, int offset); 8 u8 (*read)(struct dw_hdmi *hdmi, int offset); 9 void (*enable)(struct dw_hdmi *hdmi); 10 void (*disable)(struct dw_hdmi *hdmi); 14 struct dw_hdmi *hdmi; member
|
| /linux/drivers/gpu/drm/rockchip/ |
| H A D | dw_hdmi_qp-rockchip.c | 95 struct dw_hdmi_qp *hdmi; member 105 void (*io_init)(struct rockchip_hdmi_qp *hdmi); 106 void (*enc_init)(struct rockchip_hdmi_qp *hdmi, struct rockchip_crtc_state *state); 120 struct rockchip_hdmi_qp *hdmi = to_rockchip_hdmi_qp(encoder); in dw_hdmi_qp_rockchip_encoder_enable() local 124 gpiod_set_value_cansleep(hdmi->frl_enable_gpio, 0); in dw_hdmi_qp_rockchip_encoder_enable() 129 if (hdmi->ctrl_ops->enc_init) in dw_hdmi_qp_rockchip_encoder_enable() 130 hdmi->ctrl_ops->enc_init(hdmi, to_rockchip_crtc_state(crtc->state)); in dw_hdmi_qp_rockchip_encoder_enable() 138 struct rockchip_hdmi_qp *hdmi = to_rockchip_hdmi_qp(encoder); in dw_hdmi_qp_rockchip_encoder_atomic_check() local 143 if (hdmi->tmds_char_rate == conn_state->hdmi.tmds_char_rate && in dw_hdmi_qp_rockchip_encoder_atomic_check() 144 s->output_bpc == conn_state->hdmi.output_bpc) in dw_hdmi_qp_rockchip_encoder_atomic_check() [all …]
|
| /linux/drivers/gpu/drm/msm/hdmi/ |
| H A D | hdmi_hdcp.c | 49 struct hdmi *hdmi; member 78 static int msm_hdmi_ddc_read(struct hdmi *hdmi, u16 addr, u8 offset, in msm_hdmi_ddc_read() argument 99 rc = i2c_transfer(hdmi->i2c, msgs, 2); in msm_hdmi_ddc_read() 116 static int msm_hdmi_ddc_write(struct hdmi *hdmi, u16 addr, u8 offset, in msm_hdmi_ddc_write() argument 141 rc = i2c_transfer(hdmi->i2c, msgs, 1); in msm_hdmi_ddc_write() 159 struct hdmi *hdmi = hdcp_ctrl->hdmi; in msm_hdmi_hdcp_scm_wr() local 167 phy_addr = (u32)hdmi->mmio_phy_addr; in msm_hdmi_hdcp_scm_wr() 190 hdmi_write(hdmi, preg[i], pdata[i]); in msm_hdmi_hdcp_scm_wr() 198 struct hdmi *hdmi = hdcp_ctrl->hdmi; in msm_hdmi_hdcp_irq() local 202 spin_lock_irqsave(&hdmi->reg_lock, flags); in msm_hdmi_hdcp_irq() [all …]
|
| /linux/drivers/gpu/drm/mediatek/ |
| H A D | mtk_hdmi_common.c | 104 int mtk_hdmi_audio_params(struct mtk_hdmi *hdmi, in mtk_hdmi_audio_params() argument 111 dev_dbg(hdmi->dev, "%s: %u Hz, %d bit, %d channels\n", __func__, in mtk_hdmi_audio_params() 114 if (!hdmi->bridge.encoder) in mtk_hdmi_audio_params() 131 dev_err(hdmi->dev, "channel[%d] not supported!\n", chan); in mtk_hdmi_audio_params() 145 dev_err(hdmi->dev, "rate[%d] not supported!\n", in mtk_hdmi_audio_params() 164 dev_err(hdmi->dev, "%s: Invalid DAI format %d\n", __func__, in mtk_hdmi_audio_params() 169 memcpy(&hdmi->aud_param, &aud_params, sizeof(aud_params)); in mtk_hdmi_audio_params() 171 dev_dbg(hdmi->dev, "codec:%d, input:%d, channel:%d, fs:%d\n", in mtk_hdmi_audio_params() 181 struct mtk_hdmi *hdmi = dev_get_drvdata(dev); in mtk_hdmi_audio_get_eld() local 183 if (hdmi->enabled) in mtk_hdmi_audio_get_eld() [all …]
|
| /linux/drivers/video/fbdev/omap2/omapfb/dss/ |
| H A D | hdmi5.c | 38 static struct omap_hdmi hdmi; variable 46 r = pm_runtime_resume_and_get(&hdmi.pdev->dev); in hdmi_runtime_get() 59 r = pm_runtime_put_sync(&hdmi.pdev->dev); in hdmi_runtime_put() 88 v = hdmi_read_reg(hdmi.phy.base, HDMI_TXPHY_PAD_CFG_CTRL); in hdmi_irq_handler() 91 hdmi_write_reg(hdmi.phy.base, HDMI_TXPHY_PAD_CFG_CTRL, v); in hdmi_irq_handler() 98 REG_FLD_MOD(hdmi.phy.base, HDMI_TXPHY_PAD_CFG_CTRL, 0, 15, 15); in hdmi_irq_handler() 113 if (hdmi.vdda_reg != NULL) in hdmi_init_regulator() 116 reg = devm_regulator_get(&hdmi.pdev->dev, "vdda"); in hdmi_init_regulator() 122 hdmi.vdda_reg = reg; in hdmi_init_regulator() 131 r = regulator_enable(hdmi.vdda_reg); in hdmi_power_on_core() [all …]
|
| H A D | hdmi4.c | 34 static struct omap_hdmi hdmi; variable 42 r = pm_runtime_resume_and_get(&hdmi.pdev->dev); in hdmi_runtime_get() 55 r = pm_runtime_put_sync(&hdmi.pdev->dev); in hdmi_runtime_put() 94 if (hdmi.vdda_reg != NULL) in hdmi_init_regulator() 97 reg = devm_regulator_get(&hdmi.pdev->dev, "vdda"); in hdmi_init_regulator() 105 hdmi.vdda_reg = reg; in hdmi_init_regulator() 114 r = regulator_enable(hdmi.vdda_reg); in hdmi_power_on_core() 125 hdmi.core_enabled = true; in hdmi_power_on_core() 130 regulator_disable(hdmi.vdda_reg); in hdmi_power_on_core() 137 hdmi.core_enabled = false; in hdmi_power_off_core() [all …]
|
| /linux/sound/pci/oxygen/ |
| H A D | xonar_hdmi.c | 37 struct xonar_hdmi *hdmi) in xonar_hdmi_init_commands() argument 46 hdmi_write_command(chip, 0x54, 5, hdmi->params); in xonar_hdmi_init_commands() 49 void xonar_hdmi_init(struct oxygen *chip, struct xonar_hdmi *hdmi) in xonar_hdmi_init() argument 51 hdmi->params[1] = IEC958_AES3_CON_FS_48000; in xonar_hdmi_init() 52 hdmi->params[4] = 1; in xonar_hdmi_init() 53 xonar_hdmi_init_commands(chip, hdmi); in xonar_hdmi_init() 63 void xonar_hdmi_resume(struct oxygen *chip, struct xonar_hdmi *hdmi) in xonar_hdmi_resume() argument 65 xonar_hdmi_init_commands(chip, hdmi); in xonar_hdmi_resume() 80 void xonar_set_hdmi_params(struct oxygen *chip, struct xonar_hdmi *hdmi, in xonar_set_hdmi_params() argument 83 hdmi->params[0] = 0; /* 1 = non-audio */ in xonar_set_hdmi_params() [all …]
|
| /linux/drivers/gpu/drm/sti/ |
| H A D | sti_hdmi_tx3g4c28phy.c | 76 static bool sti_hdmi_tx3g4c28phy_start(struct sti_hdmi *hdmi) in sti_hdmi_tx3g4c28phy_start() argument 78 u32 ckpxpll = hdmi->mode.clock * 1000; in sti_hdmi_tx3g4c28phy_start() 116 hdmi->event_received = false; in sti_hdmi_tx3g4c28phy_start() 118 hdmi_write(hdmi, (pllctrl | PLL_CFG_EN), HDMI_SRZ_PLL_CFG); in sti_hdmi_tx3g4c28phy_start() 121 wait_event_interruptible_timeout(hdmi->wait_event, in sti_hdmi_tx3g4c28phy_start() 122 hdmi->event_received == true, in sti_hdmi_tx3g4c28phy_start() 126 if ((hdmi_read(hdmi, HDMI_STA) & HDMI_STA_DLL_LCK) == 0) { in sti_hdmi_tx3g4c28phy_start() 151 hdmi_write(hdmi, val, HDMI_SRZ_CFG); in sti_hdmi_tx3g4c28phy_start() 154 hdmi_write(hdmi, val, HDMI_SRZ_ICNTL); in sti_hdmi_tx3g4c28phy_start() 157 hdmi_write(hdmi, val, HDMI_SRZ_CALCODE_EXT); in sti_hdmi_tx3g4c28phy_start() [all …]
|
| /linux/arch/arm/boot/dts/ti/omap/ |
| H A D | am335x-boneblack.dts | 10 #include "am335x-boneblack-hdmi.dtsi" 50 "[hdmi cec]", 92 "[hdmi irq]", 94 "[hdmi audio]", 109 "P8_45 [hdmi]", 110 "P8_46 [hdmi]", 111 "P8_43 [hdmi]", 112 "P8_44 [hdmi]", 113 "P8_41 [hdmi]", 114 "P8_42 [hdmi]", [all …]
|
| /linux/sound/soc/codecs/ |
| H A D | hdac_hdmi.c | 17 #include <linux/hdmi.h> 143 hdac_hdmi_get_pcm_from_cvt(struct hdac_hdmi_priv *hdmi, in hdac_hdmi_get_pcm_from_cvt() argument 148 list_for_each_entry(pcm, &hdmi->pcm_list, head) { in hdac_hdmi_get_pcm_from_cvt() 281 static struct hdac_hdmi_pcm *get_hdmi_pcm_from_id(struct hdac_hdmi_priv *hdmi, in get_hdmi_pcm_from_id() argument 286 list_for_each_entry(pcm, &hdmi->pcm_list, head) { in get_hdmi_pcm_from_id() 362 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); in hdac_hdmi_setup_audio_infoframe() local 375 hdmi->chmap.ops.set_channel_count(hdev, cvt->nid, channels); in hdac_hdmi_setup_audio_infoframe() 377 snd_hdac_setup_channel_mapping(&hdmi->chmap, pin->nid, false, ca, in hdac_hdmi_setup_audio_infoframe() 441 struct hdac_hdmi_priv *hdmi = snd_soc_dai_get_drvdata(dai); in hdac_hdmi_set_stream() local 442 struct hdac_device *hdev = hdmi in hdac_hdmi_set_stream() 467 struct hdac_hdmi_priv *hdmi = snd_soc_dai_get_drvdata(dai); hdac_hdmi_set_hw_params() local 527 hdac_hdmi_get_port_from_cvt(struct hdac_device * hdev,struct hdac_hdmi_priv * hdmi,struct hdac_hdmi_cvt * cvt) hdac_hdmi_get_port_from_cvt() argument 566 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); hdac_hdmi_verify_connect_sel_all_pins() local 591 struct hdac_hdmi_priv *hdmi = snd_soc_dai_get_drvdata(dai); hdac_hdmi_pcm_open() local 634 struct hdac_hdmi_priv *hdmi = snd_soc_dai_get_drvdata(dai); hdac_hdmi_pcm_close() local 658 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); hdac_hdmi_query_cvt_params() local 721 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); hdac_hdmi_get_pcm() local 818 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); hdac_hdmi_cvt_output_widget_event() local 908 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); hdac_hdmi_set_pin_port_mux() local 966 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); hdac_hdmi_create_pin_port_muxs() local 1033 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); hdac_hdmi_add_pinmux_cvt_route() local 1076 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); create_fill_widget_route_map() local 1177 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); hdac_hdmi_init_dai_map() local 1204 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); hdac_hdmi_add_cvt() local 1256 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); hdac_hdmi_present_sense() local 1367 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); hdac_hdmi_add_pin() local 1399 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); hdac_hdmi_skl_enable_all_pins() local 1417 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); hdac_hdmi_skl_enable_dp12() local 1447 hdac_hdmi_create_dais(struct hdac_device * hdev,struct snd_soc_dai_driver ** dais,struct hdac_hdmi_priv * hdmi,int num_dais) hdac_hdmi_create_dais() argument 1519 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); hdac_hdmi_parse_and_map_nid() local 1586 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); hdac_hdmi_eld_notify_cb() local 1642 hdac_hdmi_present_sense_all_pins(struct hdac_device * hdev,struct hdac_hdmi_priv * hdmi,bool detect_pin_caps) hdac_hdmi_present_sense_all_pins() argument 1667 struct hdac_hdmi_priv *hdmi = snd_soc_component_get_drvdata(component); hdmi_codec_probe() local 1727 struct hdac_hdmi_priv *hdmi = snd_soc_component_get_drvdata(component); hdmi_codec_remove() local 1742 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); hdmi_codec_resume() local 1772 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); hdac_hdmi_get_chmap() local 1781 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); hdac_hdmi_set_chmap() local 1802 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); is_hdac_hdmi_pcm_attached() local 1816 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); hdac_hdmi_get_spk_alloc() local 1913 struct hdac_hdmi_priv *hdmi = hdev_to_hdmi_priv(hdev); clear_dapm_works() local [all...] |
| /linux/drivers/gpu/drm/renesas/rcar-du/ |
| H A D | rcar_dw_hdmi.c | 41 rcar_hdmi_mode_valid(struct dw_hdmi *hdmi, void *data, in rcar_hdmi_mode_valid() argument 55 static int rcar_hdmi_phy_configure(struct dw_hdmi *hdmi, void *data, in rcar_hdmi_phy_configure() argument 68 dw_hdmi_phy_i2c_write(hdmi, params->opmode_div, in rcar_hdmi_phy_configure() 70 dw_hdmi_phy_i2c_write(hdmi, params->curr_gmp, in rcar_hdmi_phy_configure() 72 dw_hdmi_phy_i2c_write(hdmi, params->div, RCAR_HDMI_PHY_PLLDIVCTRL); in rcar_hdmi_phy_configure() 85 struct dw_hdmi *hdmi; in rcar_dw_hdmi_probe() local 87 hdmi = dw_hdmi_probe(pdev, &rcar_dw_hdmi_plat_data); in rcar_dw_hdmi_probe() 88 if (IS_ERR(hdmi)) in rcar_dw_hdmi_probe() 89 return PTR_ERR(hdmi); in rcar_dw_hdmi_probe() 91 platform_set_drvdata(pdev, hdmi); in rcar_dw_hdmi_probe() [all …]
|
| /linux/drivers/gpu/drm/ingenic/ |
| H A D | ingenic-dw-hdmi.c | 47 ingenic_dw_hdmi_mode_valid(struct dw_hdmi *hdmi, void *data, in ingenic_dw_hdmi_mode_valid() argument 76 struct dw_hdmi *hdmi = (struct dw_hdmi *)data; in ingenic_dw_hdmi_cleanup() local 78 dw_hdmi_remove(hdmi); in ingenic_dw_hdmi_cleanup() 83 struct dw_hdmi *hdmi; in ingenic_dw_hdmi_probe() local 85 hdmi = dw_hdmi_probe(pdev, &ingenic_dw_hdmi_plat_data); in ingenic_dw_hdmi_probe() 86 if (IS_ERR(hdmi)) in ingenic_dw_hdmi_probe() 87 return PTR_ERR(hdmi); in ingenic_dw_hdmi_probe() 89 return devm_add_action_or_reset(&pdev->dev, ingenic_dw_hdmi_cleanup, hdmi); in ingenic_dw_hdmi_probe()
|
| /linux/drivers/gpu/drm/vc4/ |
| H A D | vc4_hdmi_regs.h | 632 void __iomem *__vc4_hdmi_get_field_base(struct vc4_hdmi *hdmi, in __vc4_hdmi_get_field_base() argument 637 return hdmi->hd_regs; in __vc4_hdmi_get_field_base() 640 return hdmi->hdmicore_regs; in __vc4_hdmi_get_field_base() 643 return hdmi->csc_regs; in __vc4_hdmi_get_field_base() 646 return hdmi->cec_regs; in __vc4_hdmi_get_field_base() 649 return hdmi->dvp_regs; in __vc4_hdmi_get_field_base() 652 return hdmi->phy_regs; in __vc4_hdmi_get_field_base() 655 return hdmi->ram_regs; in __vc4_hdmi_get_field_base() 658 return hdmi->rm_regs; in __vc4_hdmi_get_field_base() 667 static inline u32 vc4_hdmi_read(struct vc4_hdmi *hdmi, in vc4_hdmi_read() argument [all …]
|
| /linux/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
| H A D | gk104.c | 84 const u32 hdmi = head * 0x400; in gk104_sor_hdmi_ctrl() local 88 nvkm_mask(device, 0x690100 + hdmi, 0x00000001, 0x00000000); in gk104_sor_hdmi_ctrl() 89 nvkm_mask(device, 0x6900c0 + hdmi, 0x00000001, 0x00000000); in gk104_sor_hdmi_ctrl() 90 nvkm_mask(device, 0x690000 + hdmi, 0x00000001, 0x00000000); in gk104_sor_hdmi_ctrl() 95 nvkm_mask(device, 0x6900c0 + hdmi, 0x00000001, 0x00000000); in gk104_sor_hdmi_ctrl() 96 nvkm_wr32(device, 0x6900cc + hdmi, 0x00000010); in gk104_sor_hdmi_ctrl() 97 nvkm_mask(device, 0x6900c0 + hdmi, 0x00000001, 0x00000001); in gk104_sor_hdmi_ctrl() 100 nvkm_wr32(device, 0x690080 + hdmi, 0x82000000); in gk104_sor_hdmi_ctrl() 119 .hdmi = &gk104_sor_hdmi,
|
| /linux/drivers/video/fbdev/omap2/omapfb/displays/ |
| H A D | connector-hdmi.c | 60 return in->ops.hdmi->connect(in, dssdev); in hdmic_connect() 73 in->ops.hdmi->disconnect(in, dssdev); in hdmic_disconnect() 90 in->ops.hdmi->set_timings(in, &ddata->timings); in hdmic_enable() 92 r = in->ops.hdmi->enable(in); in hdmic_enable() 111 in->ops.hdmi->disable(in); in hdmic_disable() 125 in->ops.hdmi->set_timings(in, timings); in hdmic_set_timings() 142 return in->ops.hdmi->check_timings(in, timings); in hdmic_check_timings() 151 return in->ops.hdmi->read_edid(in, edid, len); in hdmic_read_edid() 162 return in->ops.hdmi->detect(in); in hdmic_detect() 170 return in->ops.hdmi->set_hdmi_mode(in, hdmi_mode); in hdmic_set_hdmi_mode() [all …]
|
| H A D | encoder-tpd12s015.c | 39 r = in->ops.hdmi->connect(in, dssdev); in tpd_connect() 71 in->ops.hdmi->disconnect(in, &ddata->dssdev); in tpd_disconnect() 83 in->ops.hdmi->set_timings(in, &ddata->timings); in tpd_enable() 85 r = in->ops.hdmi->enable(in); in tpd_enable() 102 in->ops.hdmi->disable(in); in tpd_disable() 116 in->ops.hdmi->set_timings(in, timings); in tpd_set_timings() 134 r = in->ops.hdmi->check_timings(in, timings); in tpd_check_timings() 151 r = in->ops.hdmi->read_edid(in, edid, len); in tpd_read_edid() 171 return in->ops.hdmi->set_infoframe(in, avi); in tpd_set_infoframe() 180 return in->ops.hdmi->set_hdmi_mode(in, hdmi_mode); in tpd_set_hdmi_mode() [all …]
|
| /linux/arch/arm/boot/dts/mediatek/ |
| H A D | mt7623n.dtsi | 228 hdmi0: hdmi@14015000 { 229 compatible = "mediatek,mt7623-hdmi", 230 "mediatek,mt2701-hdmi"; 238 phy-names = "hdmi"; 239 mediatek,syscon-hdmi = <&mmsys 0x900>; 263 hdmi_phy: hdmi-phy@10209100 { 264 compatible = "mediatek,mt7623-hdmi-phy", 265 "mediatek,mt2701-hdmi-phy"; 276 compatible = "mediatek,mt7623-hdmi-ddc", 277 "mediatek,mt8173-hdmi-ddc"; [all …]
|