disp: msm: sde: add support for TE level trigger

During qsync frequency step down, it is possible for the changing
frame window to lead to frame buffers being transferred when it
is unsafe to update. Pineapple r2 hardware supports using the
panel's TE level, instead of the start window, to trigger the
frame transfer.

This change enables using TE level during QSYNC or AVR, if the
hardware supports it.

Change-Id: Ie675edaaeb80921c639905395b709f4c67134fc7
Signed-off-by: Amine Najahi <quic_anajahi@quicinc.com>
This commit is contained in:
Amine Najahi
2023-05-16 15:19:54 -04:00
committed by Gerrit - the friendly Code Review server
vanhempi e280657f7f
commit fea2f25ccf
7 muutettua tiedostoa jossa 59 lisäystä ja 9 poistoa

Näytä tiedosto

@@ -222,6 +222,11 @@ struct sde_hw_intf_ops {
void (*avr_ctrl)(struct sde_hw_intf *intf,
const struct intf_avr_params *avr_params);
/**
* Enable trigger based on TE level
*/
void (*enable_te_level_trigger)(struct sde_hw_intf *intf, bool enable);
/**
* Indicates the AVR armed status
*