Skip to content

Commit

Permalink
drm: bridge: dw-hdmi: support workaround to clear the overflow condit…
Browse files Browse the repository at this point in the history
…ion on rockchip platform

Under some circumstances the Frame Composer arithmetic unit can miss
an FC register write due to being busy processing the previous one.

The issue can be worked around by issuing a TMDS software reset and
then write one of the FC registers several times. After tested, the
number of iterations of RK3399/RK3328(v2.11a), RK3368(v2.01a),
RK3288(v2.00a) is one.

Change-Id: Iba209e25d56aff84a8cc90b4d8dcb87369c9ae52
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
  • Loading branch information
Zheng Yang authored and rkhuangtao committed Sep 12, 2017
1 parent 5037a7f commit cafa8eb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/bridge/dw-hdmi.c
Expand Up @@ -1963,6 +1963,9 @@ static void dw_hdmi_clear_overflow(struct dw_hdmi *hdmi)
count = 4;
break;
case 0x131a:
case 0x200a:
case 0x201a:
case 0x211a:
count = 1;
break;
default:
Expand Down

0 comments on commit cafa8eb

Please sign in to comment.