aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/stm/ltdc.h
diff options
context:
space:
mode:
authorPhilippe CORNU <philippe.cornu@st.com>2018-04-07 23:35:03 +0200
committerPhilippe Cornu <philippe.cornu@st.com>2018-04-19 12:15:38 +0200
commit25bb1a9de3cc36ea1fd2dc10f4a375571be0ff37 (patch)
tree24b749f5989edddad0c5d2bfb385a05996697a42 /drivers/gpu/drm/stm/ltdc.h
parentdrm/stm: move enable/disable_vblank to crtc (diff)
downloadlinux-dev-25bb1a9de3cc36ea1fd2dc10f4a375571be0ff37.tar.xz
linux-dev-25bb1a9de3cc36ea1fd2dc10f4a375571be0ff37.zip
drm/stm: ltdc: add user update info in plane print state
This patch adds the user update information in frames-per-second into the drm debugfs plane state. Signed-off-by: Philippe Cornu <philippe.cornu@st.com> Reviewed-by: Vincent Abriou <vincent.abriou@st.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180407213503.30932-1-philippe.cornu@st.com
Diffstat (limited to 'drivers/gpu/drm/stm/ltdc.h')
-rw-r--r--drivers/gpu/drm/stm/ltdc.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/stm/ltdc.h b/drivers/gpu/drm/stm/ltdc.h
index 61a80d00bc3b..1e16d6afb0d2 100644
--- a/drivers/gpu/drm/stm/ltdc.h
+++ b/drivers/gpu/drm/stm/ltdc.h
@@ -20,6 +20,13 @@ struct ltdc_caps {
bool non_alpha_only_l1; /* non-native no-alpha formats on layer 1 */
};
+#define LTDC_MAX_LAYER 4
+
+struct fps_info {
+ unsigned int counter;
+ ktime_t last_timestamp;
+};
+
struct ltdc_device {
void __iomem *regs;
struct clk *pixel_clk; /* lcd pixel clock */
@@ -27,6 +34,7 @@ struct ltdc_device {
struct ltdc_caps caps;
u32 error_status;
u32 irq_status;
+ struct fps_info plane_fpsi[LTDC_MAX_LAYER];
};
int ltdc_load(struct drm_device *ddev);