disp: msm: sde: add support for INTF line/frame count reset

From MDSS 8.x INTF line/frame counters can be reset through
a register. Reset these counters during timing engine enable /
tear-check enable to keep track of meaningful counters, which
would be useful during debugging. Additionally, reset the
counters during cont-splash modeset to track the number of
auto-refresh frames while disabling it during the first frame.

Change-Id: I66b45f5b29793df1fb4635972b1c614ad8c3b5b3
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
This commit is contained in:
Veera Sundaram Sankaran
2020-11-25 10:39:29 -08:00
parent f9ff8af5b6
commit 9ad90a834d
6 ha cambiato i file con 35 aggiunte e 10 eliminazioni

Vedi File

@@ -205,6 +205,11 @@ struct sde_hw_intf_ops {
int (*check_and_reset_tearcheck)(struct sde_hw_intf *intf,
struct intf_tear_status *status);
/**
* Reset the interface frame & line counter
*/
void (*reset_counter)(struct sde_hw_intf *intf);
/**
* Enable processing of 2 pixels per clock
*/