disp: msm: dp: enhance dpcd debugfs to parse extended capability information

Add support to pass extended capability information to the DPCD
debugfs node. This will help to validate features like VSC support
using debugfs node.

Usage will be the same as before and the change will automatically
detect the presence of extended capability field and expect
additional bytes of information.

Change-Id: If541fd8837aac4794c3db0fa3badeab4143ff9c3
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
This commit is contained in:
Abhinav Kumar
2019-06-19 19:46:48 -07:00
parent aacd9e9585
commit 1286b854ae
3 changed files with 30 additions and 7 deletions

View File

@@ -17,7 +17,7 @@
#define DP_RECEIVER_DSC_CAP_SIZE 15
#define DP_RECEIVER_FEC_STATUS_SIZE 3
#define DP_RECEIVER_EXT_CAP_SIZE 4
/*
* A source initiated power down flag is set
* when the DP is powered off while physical
@@ -28,6 +28,8 @@
*/
#define DP_PANEL_SRC_INITIATED_POWER_DOWN BIT(0)
#define DP_EXT_REC_CAP_FIELD BIT(7)
enum dp_lane_count {
DP_LANE_COUNT_1 = 1,
DP_LANE_COUNT_2 = 2,
@@ -87,7 +89,7 @@ struct dp_audio;
struct dp_panel {
/* dpcd raw data */
u8 dpcd[DP_RECEIVER_CAP_SIZE + 1];
u8 dpcd[DP_RECEIVER_CAP_SIZE + DP_RECEIVER_EXT_CAP_SIZE + 1];
u8 ds_ports[DP_MAX_DOWNSTREAM_PORTS];
u8 dsc_dpcd[DP_RECEIVER_DSC_CAP_SIZE + 1];
u8 fec_dpcd;