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:
Rajkumar Subbiah
2022-04-08 12:07:39 -04:00
rodzic 99e41b7489
commit bbd8a4b5ab
7 zmienionych plików z 29 dodań i 22 usunięć

Wyświetl plik

@@ -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;