mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
ANDROID: include/linux: add low power mode and fps to notifier
Introduce low power mode so that listeners are aware when display is going into low power mode. This requires moving notifier inside sde code to be able to retrieve the low power state. Add mode for fps change so that clients can be notified whenever there is a change in fps. Include the current vrefresh in the msm_drm_notifier data provided to registered clients. Include the index id in the drm_panel_notifier data provided to registered clients. Bug: 155453628 Co-Developed-by: Adrian Salido <salidoa@google.com> Co-Developed-by: Steve Pfetsch <spfetsch@google.com> Co-Developed-by: Krishna Manikandan <mkrishn@codeaurora.org> Co-Developed-by: Samantha Tran <samtran@codeaurora.org> Co-Developed-by: Dhaval Patel <pdhaval@codeaurora.org> [chandanu@codeaurora.org: Squashed four different gerrits into one change] Change-Id: I8e29ab65991b5777c3bd64182ce989e80d2462bf Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
This commit is contained in:
parent
7d9aa46031
commit
f4bf3eae80
1 changed files with 6 additions and 0 deletions
|
|
@ -39,10 +39,16 @@ enum {
|
|||
DRM_PANEL_BLANK_UNBLANK,
|
||||
/* panel: power off */
|
||||
DRM_PANEL_BLANK_POWERDOWN,
|
||||
/* panel: low power mode */
|
||||
DRM_PANEL_BLANK_LP,
|
||||
/* fps change */
|
||||
DRM_PANEL_BLANK_FPS_CHANGE,
|
||||
};
|
||||
|
||||
struct drm_panel_notifier {
|
||||
int refresh_rate;
|
||||
void *data;
|
||||
uint32_t id;
|
||||
};
|
||||
|
||||
struct device_node;
|
||||
|
|
|
|||
Loading…
Reference in a new issue