Skip to content

Commit

Permalink
drivers: drm: dw-hdmi-qp: Add ddc-i2c-rxfilter DT prop
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua-Riek committed Jun 29, 2024
1 parent 488ef3c commit a018017
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/gpu/drm/bridge/synopsys/dw-hdmi-qp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1001,9 +1001,15 @@ static const struct hdmi_quirk *get_hdmi_quirk(u8 *vendor_id)

static void dw_hdmi_i2c_init(struct dw_hdmi_qp *hdmi)
{
u32 ddc_i2c_rxfilter;

/* Software reset */
hdmi_writel(hdmi, 0x01, I2CM_CONTROL0);

/* Configure I2CM hold time and rxfilter */
if (device_property_read_u32(hdmi->dev, "ddc-i2c-rxfilter", &ddc_i2c_rxfilter))
hdmi_writel(hdmi, ddc_i2c_rxfilter, I2CM_CONFIG0);

hdmi_modb(hdmi, 0, I2CM_FM_EN, I2CM_INTERFACE_CONTROL0);

/* Clear DONE and ERROR interrupts */
Expand Down

0 comments on commit a018017

Please sign in to comment.