From f4bf3eae80225dfb6bf51d14d1b1900803363b84 Mon Sep 17 00:00:00 2001 From: Chandan Uddaraju Date: Tue, 28 Jul 2020 10:09:55 -0700 Subject: [PATCH] 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 Co-Developed-by: Steve Pfetsch Co-Developed-by: Krishna Manikandan Co-Developed-by: Samantha Tran Co-Developed-by: Dhaval Patel [chandanu@codeaurora.org: Squashed four different gerrits into one change] Change-Id: I8e29ab65991b5777c3bd64182ce989e80d2462bf Signed-off-by: Chandan Uddaraju --- include/drm/drm_panel.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/drm/drm_panel.h b/include/drm/drm_panel.h index 8997244fc9cf..1f977fff325b 100644 --- a/include/drm/drm_panel.h +++ b/include/drm/drm_panel.h @@ -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;