aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Armstrong <narmstrong@baylibre.com>2018-02-23 06:44:37 -0500
committerNeil Armstrong <narmstrong@baylibre.com>2018-03-06 05:52:15 -0500
commit9c305eb442f3b371fc722ade827bbf673514123e (patch)
treeac37fd16cde829ba74465840b11879836fc9bd68
parent2efa83920c7f4fb214517437c730afdaa4e28391 (diff)
drm: bridge: dw-hdmi: Fix overflow workaround for Amlogic Meson GX SoCs
The Amlogic Meson GX SoCs, embedded the v2.01a controller, has been also identified needing this workaround. This patch adds the corresponding version to enable a single iteration for this specific version. Fixes: be41fc55f1aa ("drm: bridge: dw-hdmi: Handle overflow workaround based on device version") Acked-by: Archit Taneja <architt@codeaurora.org> [narmstrong: s/identifies/identified and rebased against Jernej's change] Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Link: https://patchwork.freedesktop.org/patch/msgid/1519386277-25902-1-git-send-email-narmstrong@baylibre.com
-rw-r--r--drivers/gpu/drm/bridge/synopsys/dw-hdmi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
index f9802399cc0d..53ebbe2904b6 100644
--- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
+++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
@@ -1654,6 +1654,8 @@ static void dw_hdmi_clear_overflow(struct dw_hdmi *hdmi)
1654 * (v1.31a) and multiple Allwinner SoCs (v1.32a) have been identified 1654 * (v1.31a) and multiple Allwinner SoCs (v1.32a) have been identified
1655 * as needing the workaround, with 4 iterations for v1.30a and 1 1655 * as needing the workaround, with 4 iterations for v1.30a and 1
1656 * iteration for others. 1656 * iteration for others.
1657 * The Amlogic Meson GX SoCs (v2.01a) have been identified as needing
1658 * the workaround with a single iteration.
1657 */ 1659 */
1658 1660
1659 switch (hdmi->version) { 1661 switch (hdmi->version) {
@@ -1662,6 +1664,7 @@ static void dw_hdmi_clear_overflow(struct dw_hdmi *hdmi)
1662 break; 1664 break;
1663 case 0x131a: 1665 case 0x131a:
1664 case 0x132a: 1666 case 0x132a:
1667 case 0x201a:
1665 count = 1; 1668 count = 1;
1666 break; 1669 break;
1667 default: 1670 default: