/linux/drivers/gpu/drm/bridge/synopsys/ |
H A D | dw-hdmi.c | 126 int (*configure)(struct dw_hdmi *hdmi, 189 void (*enable_audio)(struct dw_hdmi *hdmi); 190 void (*disable_audio)(struct dw_hdmi *hdmi); 208 static inline void hdmi_writeb(struct dw_hdmi *hdmi, u8 val, int offset) in hdmi_writeb() argument 210 regmap_write(hdmi->regm, offset << hdmi->reg_shift, val); in hdmi_writeb() 213 static inline u8 hdmi_readb(struct dw_hdmi *hdmi, int offset) in hdmi_readb() argument 217 regmap_read(hdmi->regm, offset << hdmi->reg_shift, &val); in hdmi_readb() 222 static void handle_plugged_change(struct dw_hdmi *hdmi, bool plugged) in handle_plugged_change() argument 224 if (hdmi->plugged_cb && hdmi->codec_dev) in handle_plugged_change() 225 hdmi->plugged_cb(hdmi->codec_dev, plugged); in handle_plugged_change() [all …]
|
H A D | dw-hdmi-qp.c | 65 static void dw_hdmi_qp_write(struct dw_hdmi_qp *hdmi, unsigned int val, in dw_hdmi_qp_write() argument 68 regmap_write(hdmi->regm, offset, val); in dw_hdmi_qp_write() 71 static unsigned int dw_hdmi_qp_read(struct dw_hdmi_qp *hdmi, int offset) in dw_hdmi_qp_read() argument 75 regmap_read(hdmi->regm, offset, &val); in dw_hdmi_qp_read() 80 static void dw_hdmi_qp_mod(struct dw_hdmi_qp *hdmi, unsigned int data, in dw_hdmi_qp_mod() argument 83 regmap_update_bits(hdmi->regm, reg, mask, data); in dw_hdmi_qp_mod() 86 static int dw_hdmi_qp_i2c_read(struct dw_hdmi_qp *hdmi, in dw_hdmi_qp_i2c_read() argument 89 struct dw_hdmi_qp_i2c *i2c = hdmi->i2c; in dw_hdmi_qp_i2c_read() 93 dev_dbg(hdmi->dev, "set read register address to 0\n"); in dw_hdmi_qp_i2c_read() 101 dw_hdmi_qp_mod(hdmi, i2c->slave_reg++ << 12, I2CM_ADDR, in dw_hdmi_qp_i2c_read() [all …]
|
/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 | sun4i_hdmi_enc.c | 47 struct sun4i_hdmi *hdmi = drm_connector_to_sun4i_hdmi(connector); in sun4i_hdmi_write_infoframe() local 57 writeb(buffer[i], hdmi->base + SUN4I_HDMI_AVI_INFOFRAME_REG(i)); in sun4i_hdmi_write_infoframe() 66 struct sun4i_hdmi *hdmi = drm_encoder_to_sun4i_hdmi(encoder); in sun4i_hdmi_disable() local 71 val = readl(hdmi->base + SUN4I_HDMI_VID_CTRL_REG); in sun4i_hdmi_disable() 73 writel(val, hdmi->base + SUN4I_HDMI_VID_CTRL_REG); in sun4i_hdmi_disable() 75 clk_disable_unprepare(hdmi->tmds_clk); in sun4i_hdmi_disable() 82 struct sun4i_hdmi *hdmi = drm_encoder_to_sun4i_hdmi(encoder); in sun4i_hdmi_enable() local 83 struct drm_connector *connector = &hdmi->connector; in sun4i_hdmi_enable() 87 unsigned long long tmds_rate = conn_state->hdmi.tmds_char_rate; in sun4i_hdmi_enable() 93 clk_set_rate(hdmi->mod_clk, tmds_rate); in sun4i_hdmi_enable() [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 …]
|
/linux/drivers/gpu/drm/rockchip/ |
H A D | rk3066_hdmi.c | 72 static inline u8 hdmi_readb(struct rk3066_hdmi *hdmi, u16 offset) in hdmi_readb() argument 74 return readl_relaxed(hdmi->regs + offset); in hdmi_readb() 77 static inline void hdmi_writeb(struct rk3066_hdmi *hdmi, u16 offset, u32 val) in hdmi_writeb() argument 79 writel_relaxed(val, hdmi->regs + offset); in hdmi_writeb() 82 static inline void hdmi_modb(struct rk3066_hdmi *hdmi, u16 offset, in hdmi_modb() argument 85 u8 temp = hdmi_readb(hdmi, offset) & ~msk; in hdmi_modb() 88 hdmi_writeb(hdmi, offset, temp); in hdmi_modb() 91 static void rk3066_hdmi_i2c_init(struct rk3066_hdmi *hdmi) in rk3066_hdmi_i2c_init() argument 95 ddc_bus_freq = (hdmi->tmdsclk >> 2) / HDMI_SCL_RATE; in rk3066_hdmi_i2c_init() 97 hdmi_writeb(hdmi, HDMI_DDC_BUS_FREQ_L, ddc_bus_freq & 0xFF); in rk3066_hdmi_i2c_init() [all …]
|
H A D | inno_hdmi.c | 145 static int inno_hdmi_find_phy_config(struct inno_hdmi *hdmi, in inno_hdmi_find_phy_config() argument 149 hdmi->variant->phy_configs; in inno_hdmi_find_phy_config() 157 DRM_DEV_DEBUG(hdmi->dev, "No phy configuration for pixelclock %lu\n", in inno_hdmi_find_phy_config() 163 static inline u8 hdmi_readb(struct inno_hdmi *hdmi, u16 offset) in hdmi_readb() argument 165 return readl_relaxed(hdmi->regs + (offset) * 0x04); in hdmi_readb() 168 static inline void hdmi_writeb(struct inno_hdmi *hdmi, u16 offset, u32 val) in hdmi_writeb() argument 170 writel_relaxed(val, hdmi->regs + (offset) * 0x04); in hdmi_writeb() 173 static inline void hdmi_modb(struct inno_hdmi *hdmi, u16 offset, in hdmi_modb() argument 176 u8 temp = hdmi_readb(hdmi, offset) & ~msk; in hdmi_modb() 179 hdmi_writeb(hdmi, offset, temp); in hdmi_modb() [all …]
|
H A D | dw_hdmi_qp-rockchip.c | 58 struct dw_hdmi_qp *hdmi; member 74 struct rockchip_hdmi_qp *hdmi = to_rockchip_hdmi_qp(encoder); in dw_hdmi_qp_rockchip_encoder_enable() local 79 gpiod_set_value(hdmi->enable_gpio, 1); in dw_hdmi_qp_rockchip_encoder_enable() 84 clk_set_rate(hdmi->ref_clk, rate); in dw_hdmi_qp_rockchip_encoder_enable() 92 phy_set_bus_width(hdmi->phy, div_u64(rate, 100)); in dw_hdmi_qp_rockchip_encoder_enable() 117 struct rockchip_hdmi_qp *hdmi = (struct rockchip_hdmi_qp *)data; in dw_hdmi_qp_rk3588_phy_init() local 119 return phy_power_on(hdmi->phy); in dw_hdmi_qp_rk3588_phy_init() 125 struct rockchip_hdmi_qp *hdmi = (struct rockchip_hdmi_qp *)data; in dw_hdmi_qp_rk3588_phy_disable() local 127 phy_power_off(hdmi->phy); in dw_hdmi_qp_rk3588_phy_disable() 133 struct rockchip_hdmi_qp *hdmi = (struct rockchip_hdmi_qp *)data; in dw_hdmi_qp_rk3588_read_hpd() local [all …]
|
H A D | dw_hdmi-rockchip.c | 82 struct dw_hdmi *hdmi; member 199 static int rockchip_hdmi_parse_dt(struct rockchip_hdmi *hdmi) in rockchip_hdmi_parse_dt() argument 201 struct device_node *np = hdmi->dev->of_node; in rockchip_hdmi_parse_dt() 204 hdmi->regmap = syscon_regmap_lookup_by_phandle(np, "rockchip,grf"); in rockchip_hdmi_parse_dt() 205 if (IS_ERR(hdmi->regmap)) { in rockchip_hdmi_parse_dt() 206 drm_err(hdmi, "Unable to get rockchip,grf\n"); in rockchip_hdmi_parse_dt() 207 return PTR_ERR(hdmi->regmap); in rockchip_hdmi_parse_dt() 210 hdmi->ref_clk = devm_clk_get_optional_enabled(hdmi->dev, "ref"); in rockchip_hdmi_parse_dt() 211 if (!hdmi->ref_clk) in rockchip_hdmi_parse_dt() 212 hdmi->ref_clk = devm_clk_get_optional_enabled(hdmi->dev, "vpll"); in rockchip_hdmi_parse_dt() [all …]
|
/linux/drivers/gpu/drm/mediatek/ |
H A D | mtk_hdmi.c | 190 static u32 mtk_hdmi_read(struct mtk_hdmi *hdmi, u32 offset) in mtk_hdmi_read() argument 192 return readl(hdmi->regs + offset); in mtk_hdmi_read() 195 static void mtk_hdmi_write(struct mtk_hdmi *hdmi, u32 offset, u32 val) in mtk_hdmi_write() argument 197 writel(val, hdmi->regs + offset); in mtk_hdmi_write() 200 static void mtk_hdmi_clear_bits(struct mtk_hdmi *hdmi, u32 offset, u32 bits) in mtk_hdmi_clear_bits() argument 202 void __iomem *reg = hdmi->regs + offset; in mtk_hdmi_clear_bits() 210 static void mtk_hdmi_set_bits(struct mtk_hdmi *hdmi, u32 offset, u32 bits) in mtk_hdmi_set_bits() argument 212 void __iomem *reg = hdmi->regs + offset; in mtk_hdmi_set_bits() 220 static void mtk_hdmi_mask(struct mtk_hdmi *hdmi, u32 offset, u32 val, u32 mask) in mtk_hdmi_mask() argument 222 void __iomem *reg = hdmi->regs + offset; in mtk_hdmi_mask() [all …]
|
/linux/drivers/gpu/drm/msm/hdmi/ |
H A D | hdmi.c | 19 void msm_hdmi_set_mode(struct hdmi *hdmi, bool power_on) in msm_hdmi_set_mode() argument 24 spin_lock_irqsave(&hdmi->reg_lock, flags); in msm_hdmi_set_mode() 27 if (!hdmi->hdmi_mode) { in msm_hdmi_set_mode() 29 hdmi_write(hdmi, REG_HDMI_CTRL, ctrl); in msm_hdmi_set_mode() 38 hdmi_write(hdmi, REG_HDMI_CTRL, ctrl); in msm_hdmi_set_mode() 39 spin_unlock_irqrestore(&hdmi->reg_lock, flags); in msm_hdmi_set_mode() 46 struct hdmi *hdmi = dev_id; in msm_hdmi_irq() local 49 msm_hdmi_hpd_irq(hdmi->bridge); in msm_hdmi_irq() 52 msm_hdmi_i2c_irq(hdmi->i2c); in msm_hdmi_irq() 55 if (hdmi->hdcp_ctrl) in msm_hdmi_irq() [all …]
|
H A D | hdmi_hpd.c | 14 static void msm_hdmi_phy_reset(struct hdmi *hdmi) in msm_hdmi_phy_reset() argument 18 val = hdmi_read(hdmi, REG_HDMI_PHY_CTRL); in msm_hdmi_phy_reset() 22 hdmi_write(hdmi, REG_HDMI_PHY_CTRL, in msm_hdmi_phy_reset() 26 hdmi_write(hdmi, REG_HDMI_PHY_CTRL, in msm_hdmi_phy_reset() 32 hdmi_write(hdmi, REG_HDMI_PHY_CTRL, in msm_hdmi_phy_reset() 36 hdmi_write(hdmi, REG_HDMI_PHY_CTRL, in msm_hdmi_phy_reset() 44 hdmi_write(hdmi, REG_HDMI_PHY_CTRL, in msm_hdmi_phy_reset() 48 hdmi_write(hdmi, REG_HDMI_PHY_CTRL, in msm_hdmi_phy_reset() 54 hdmi_write(hdmi, REG_HDMI_PHY_CTRL, in msm_hdmi_phy_reset() 58 hdmi_write(hdmi, REG_HDMI_PHY_CTRL, in msm_hdmi_phy_reset() [all …]
|
H A D | hdmi_bridge.c | 18 struct hdmi *hdmi = hdmi_bridge->hdmi; in msm_hdmi_power_on() local 19 const struct hdmi_platform_config *config = hdmi->config; in msm_hdmi_power_on() 22 pm_runtime_get_sync(&hdmi->pdev->dev); in msm_hdmi_power_on() 24 ret = regulator_bulk_enable(config->pwr_reg_cnt, hdmi->pwr_regs); in msm_hdmi_power_on() 29 DBG("pixclock: %lu", hdmi->pixclock); in msm_hdmi_power_on() 30 ret = clk_set_rate(hdmi->pwr_clks[0], hdmi->pixclock); in msm_hdmi_power_on() 38 ret = clk_prepare_enable(hdmi->pwr_clks[i]); in msm_hdmi_power_on() 50 struct hdmi *hdmi = hdmi_bridge->hdmi; in power_off() local 51 const struct hdmi_platform_config *config = hdmi->config; in power_off() 60 clk_disable_unprepare(hdmi->pwr_clks[i]); in power_off() [all …]
|
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 …]
|
H A D | hdmi_i2c.c | 11 struct hdmi *hdmi; member 19 struct hdmi *hdmi = hdmi_i2c->hdmi; in init_ddc() local 21 hdmi_write(hdmi, REG_HDMI_DDC_CTRL, in init_ddc() 23 hdmi_write(hdmi, REG_HDMI_DDC_CTRL, in init_ddc() 26 hdmi_write(hdmi, REG_HDMI_DDC_SPEED, in init_ddc() 30 hdmi_write(hdmi, REG_HDMI_DDC_SETUP, in init_ddc() 34 hdmi_write(hdmi, REG_HDMI_DDC_REF, in init_ddc() 41 struct hdmi *hdmi = hdmi_i2c->hdmi; in ddc_clear_irq() local 42 struct drm_device *dev = hdmi->dev; in ddc_clear_irq() 49 hdmi_write(hdmi, REG_HDMI_DDC_INT_CTRL, in ddc_clear_irq() [all …]
|
H A D | hdmi.h | 33 struct hdmi { struct 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 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 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 readl(hdmi->qfprom_mmio + reg); in hdmi_qfprom_read() 224 int msm_hdmi_audio_update(struct hdmi *hdmi); [all …]
|
/linux/drivers/gpu/drm/omapdrm/dss/ |
H A D | hdmi4.c | 40 static int hdmi_runtime_get(struct omap_hdmi *hdmi) in hdmi_runtime_get() argument 46 r = pm_runtime_get_sync(&hdmi->pdev->dev); in hdmi_runtime_get() 48 pm_runtime_put_noidle(&hdmi->pdev->dev); in hdmi_runtime_get() 54 static void hdmi_runtime_put(struct omap_hdmi *hdmi) in hdmi_runtime_put() argument 60 r = pm_runtime_put_sync(&hdmi->pdev->dev); in hdmi_runtime_put() 66 struct omap_hdmi *hdmi = data; in hdmi_irq_handler() local 67 struct hdmi_wp_data *wp = &hdmi->wp; in hdmi_irq_handler() 93 u32 intr4 = hdmi_read_reg(hdmi->core.base, HDMI_CORE_SYS_INTR4); in hdmi_irq_handler() 95 hdmi_write_reg(hdmi->core.base, HDMI_CORE_SYS_INTR4, intr4); in hdmi_irq_handler() 97 hdmi4_cec_irq(&hdmi->core); in hdmi_irq_handler() [all …]
|
H A D | hdmi5.c | 41 static int hdmi_runtime_get(struct omap_hdmi *hdmi) in hdmi_runtime_get() argument 47 r = pm_runtime_get_sync(&hdmi->pdev->dev); in hdmi_runtime_get() 49 pm_runtime_put_noidle(&hdmi->pdev->dev); in hdmi_runtime_get() 55 static void hdmi_runtime_put(struct omap_hdmi *hdmi) in hdmi_runtime_put() argument 61 r = pm_runtime_put_sync(&hdmi->pdev->dev); in hdmi_runtime_put() 67 struct omap_hdmi *hdmi = data; in hdmi_irq_handler() local 68 struct hdmi_wp_data *wp = &hdmi->wp; in hdmi_irq_handler() 91 v = hdmi_read_reg(hdmi->phy.base, HDMI_TXPHY_PAD_CFG_CTRL); in hdmi_irq_handler() 94 hdmi_write_reg(hdmi->phy.base, HDMI_TXPHY_PAD_CFG_CTRL, v); in hdmi_irq_handler() 101 REG_FLD_MOD(hdmi->phy.base, HDMI_TXPHY_PAD_CFG_CTRL, 0, 15, 15); in hdmi_irq_handler() [all …]
|
/linux/drivers/gpu/drm/tegra/ |
H A D | hdmi.c | 68 struct regulator *hdmi; member 114 static inline u32 tegra_hdmi_readl(struct tegra_hdmi *hdmi, in tegra_hdmi_readl() argument 117 u32 value = readl(hdmi->regs + (offset << 2)); in tegra_hdmi_readl() 119 trace_hdmi_readl(hdmi->dev, offset, value); in tegra_hdmi_readl() 124 static inline void tegra_hdmi_writel(struct tegra_hdmi *hdmi, u32 value, in tegra_hdmi_writel() argument 127 trace_hdmi_writel(hdmi->dev, offset, value); in tegra_hdmi_writel() 128 writel(value, hdmi->regs + (offset << 2)); in tegra_hdmi_writel() 374 static void tegra_hdmi_audio_lock(struct tegra_hdmi *hdmi) in tegra_hdmi_audio_lock() argument 376 mutex_lock(&hdmi->audio_lock); in tegra_hdmi_audio_lock() 377 disable_irq(hdmi->irq); in tegra_hdmi_audio_lock() [all …]
|
/linux/drivers/gpu/drm/sti/ |
H A D | sti_hdmi.c | 164 struct sti_hdmi *hdmi; member 177 u32 hdmi_read(struct sti_hdmi *hdmi, int offset) in hdmi_read() argument 179 return readl(hdmi->regs + offset); in hdmi_read() 182 void hdmi_write(struct sti_hdmi *hdmi, u32 val, int offset) in hdmi_write() argument 184 writel(val, hdmi->regs + offset); in hdmi_write() 195 struct sti_hdmi *hdmi = arg; in hdmi_irq_thread() local 198 if (hdmi->irq_status & HDMI_INT_HOT_PLUG) { in hdmi_irq_thread() 199 hdmi->hpd = readl(hdmi->regs + HDMI_STA) & HDMI_STA_HOT_PLUG; in hdmi_irq_thread() 200 if (hdmi->drm_dev) in hdmi_irq_thread() 201 drm_helper_hpd_irq_event(hdmi->drm_dev); in hdmi_irq_thread() [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/include/drm/bridge/ |
H A D | dw_hdmi.h | 116 int (*init)(struct dw_hdmi *hdmi, void *data, 119 void (*disable)(struct dw_hdmi *hdmi, void *data); 120 enum drm_connector_status (*read_hpd)(struct dw_hdmi *hdmi, void *data); 121 void (*update_hpd)(struct dw_hdmi *hdmi, void *data, 123 void (*setup_hpd)(struct dw_hdmi *hdmi, void *data); 142 enum drm_mode_status (*mode_valid)(struct dw_hdmi *hdmi, void *data, 147 void (*enable_audio)(struct dw_hdmi *hdmi, int channel, 149 void (*disable_audio)(struct dw_hdmi *hdmi); 161 int (*configure_phy)(struct dw_hdmi *hdmi, void *data, 169 void dw_hdmi_remove(struct dw_hdmi *hdmi); [all …]
|
/linux/drivers/gpu/drm/imx/ipuv3/ |
H A D | dw_hdmi-imx.c | 31 struct imx_hdmi *hdmi; member 37 struct dw_hdmi *hdmi; member 43 return container_of(e, struct imx_hdmi_encoder, encoder)->hdmi; in enc_to_imx_hdmi() 112 struct imx_hdmi *hdmi = enc_to_imx_hdmi(encoder); in dw_hdmi_imx_encoder_enable() local 113 int mux = drm_of_encoder_active_port_id(hdmi->dev->of_node, encoder); in dw_hdmi_imx_encoder_enable() 115 regmap_update_bits(hdmi->regmap, IOMUXC_GPR3, in dw_hdmi_imx_encoder_enable() 139 imx6q_hdmi_mode_valid(struct dw_hdmi *hdmi, void *data, in imx6q_hdmi_mode_valid() argument 153 imx6dl_hdmi_mode_valid(struct dw_hdmi *hdmi, void *data, in imx6dl_hdmi_mode_valid() argument 204 hdmi_encoder->hdmi = dev_get_drvdata(dev); in dw_hdmi_imx_bind() 213 return drm_bridge_attach(encoder, hdmi_encoder->hdmi->bridge, NULL, 0); in dw_hdmi_imx_bind() [all …]
|
/linux/drivers/media/i2c/adv748x/ |
H A D | adv748x-hdmi.c | 90 static void adv748x_hdmi_fill_format(struct adv748x_hdmi *hdmi, in adv748x_hdmi_fill_format() argument 96 fmt->field = hdmi->timings.bt.interlaced ? in adv748x_hdmi_fill_format() 102 fmt->width = hdmi->timings.bt.width; in adv748x_hdmi_fill_format() 103 fmt->height = hdmi->timings.bt.height; in adv748x_hdmi_fill_format() 220 struct adv748x_hdmi *hdmi = adv748x_sd_to_hdmi(sd); in adv748x_hdmi_s_dv_timings() local 221 struct adv748x_state *state = adv748x_hdmi_to_state(hdmi); in adv748x_hdmi_s_dv_timings() 227 if (v4l2_match_dv_timings(&hdmi->timings, timings, 0, false)) in adv748x_hdmi_s_dv_timings() 242 hdmi->timings = *timings; in adv748x_hdmi_s_dv_timings() 260 struct adv748x_hdmi *hdmi = adv748x_sd_to_hdmi(sd); in adv748x_hdmi_g_dv_timings() local 261 struct adv748x_state *state = adv748x_hdmi_to_state(hdmi); in adv748x_hdmi_g_dv_timings() [all …]
|