disp: msm: dp: add ability to select pattern for tpg
Currently the tpg_ctrl node takes a boolean flag to enable or disable test pattern output on DP controller. It always sets the pattern type to a default pattern. This change updates this interface to accept an integer value so the user can select different patterns supported by the controller. Change-Id: I399091a57f353b2fb8d29a48a8390898ca9afb55 Signed-off-by: Rajkumar Subbiah <quic_rsubbia@quicinc.com>
This commit is contained in:
@@ -1695,8 +1695,8 @@ static int dp_display_stream_enable(struct dp_display_private *dp,
|
||||
|
||||
rc = dp->ctrl->stream_on(dp->ctrl, dp_panel);
|
||||
|
||||
if (dp->debug->tpg_state)
|
||||
dp_panel->tpg_config(dp_panel, true);
|
||||
if (dp->debug->tpg_pattern)
|
||||
dp_panel->tpg_config(dp_panel, dp->debug->tpg_pattern);
|
||||
|
||||
if (!rc) {
|
||||
dp->active_panels[dp_panel->stream_id] = dp_panel;
|
||||
|
Reference in New Issue
Block a user