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>
Šī revīzija ir iekļauta:
Rajkumar Subbiah
2022-04-08 12:07:39 -04:00
vecāks 99e41b7489
revīzija bbd8a4b5ab
7 mainīti faili ar 29 papildinājumiem un 22 dzēšanām

Parādīt failu

@@ -1,5 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
*/
@@ -52,7 +53,7 @@
* @psm_enabled: specifies whether psm enabled
* @hdcp_disabled: specifies if hdcp is disabled
* @hdcp_wait_sink_sync: used to wait for sink synchronization before HDCP auth
* @tpg_state: specifies whether tpg feature is enabled
* @tpg_pattern: selects tpg pattern on the controller
* @max_pclk_khz: max pclk supported
* @force_encryption: enable/disable forced encryption for HDCP 2.2
* @skip_uevent: skip hotplug uevent to the user space
@@ -70,7 +71,7 @@ struct dp_debug {
bool psm_enabled;
bool hdcp_disabled;
bool hdcp_wait_sink_sync;
bool tpg_state;
u32 tpg_pattern;
u32 max_pclk_khz;
bool force_encryption;
bool skip_uevent;