disp: msm: dsi: add DCS get scan line command

Add DCS command to read the panel scan line value and associated
time stamp in nano-seconds.

Change-Id: I06a76d3a6c5ad7a2e7681413c741e5b97b34d73f
Signed-off-by: Amine Najahi <quic_anajahi@quicinc.com>
This commit is contained in:
Amine Najahi
2022-10-20 17:05:16 -04:00
کامیت شده توسط Gerrit - the friendly Code Review server
والد d3d044ec00
کامیت d4a444a3d1
8فایلهای تغییر یافته به همراه70 افزوده شده و 9 حذف شده

مشاهده پرونده

@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) 2016-2021, The Linux Foundation. All rights reserved.
*/
@@ -287,11 +287,12 @@ struct sde_connector_ops {
* @cmd_buf_len: Command buffer length in bytes
* @recv_buf: rx buffer
* @recv_buf_len: rx buffer length
* @ts: time stamp in nano-seconds of when the command was received
* Returns: number of bytes read, if successful, negative for failure
*/
int (*cmd_receive)(void *display, const char *cmd_buf,
u32 cmd_buf_len, u8 *recv_buf, u32 recv_buf_len);
u32 cmd_buf_len, u8 *recv_buf, u32 recv_buf_len, ktime_t *ts);
/**
* config_hdr - configure HDR
@@ -438,6 +439,14 @@ struct sde_connector_ops {
*/
int (*update_transfer_time)(void *display, u32 transfer_time);
/*
* get_panel_scan_line - get panel scan line
* @display: Pointer to private display structure
* @scan_line: Pointer to scan_line buffer value
* @scan_line_ts: scan line time stamp value in nano-seconds
*/
int (*get_panel_scan_line)(void *display, u16 *scan_line, ktime_t *scan_line_ts);
};
/**