diff options
author | Philipp Zabel <p.zabel@pengutronix.de> | 2023-04-05 14:27:34 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-04-11 14:02:41 +0200 |
commit | 125263d784065f335e773c7e0a1c284386f67f90 (patch) | |
tree | 122095226e695fe353673f23298808a8fdc54698 /include/video | |
parent | 3002b31da23f9022fd8704fb9f520de9f1485e8d (diff) | |
download | barebox-125263d784065f335e773c7e0a1c284386f67f90.tar.gz barebox-125263d784065f335e773c7e0a1c284386f67f90.tar.xz |
video: mipi_dbi: add damage tracking and partial updates
Track framebuffer damage with a simple rectangle that can be used to
issue partial updates during fb_flush. This speeds up fbconsole.
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Link: https://lore.barebox.org/20230405122734.2348025-3-p.zabel@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/video')
-rw-r--r-- | include/video/mipi_dbi.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/video/mipi_dbi.h b/include/video/mipi_dbi.h index 917f7ddd59..a15264c833 100644 --- a/include/video/mipi_dbi.h +++ b/include/video/mipi_dbi.h @@ -109,6 +109,11 @@ struct mipi_dbi_dev { * @driver_private: Driver private data. */ void *driver_private; + + /** + * @damage: Damage rectangle. + */ + struct fb_rect damage; }; static inline const char *mipi_dbi_name(struct mipi_dbi *dbi) @@ -120,6 +125,7 @@ int mipi_dbi_spi_init(struct spi_device *spi, struct mipi_dbi *dbi, int dc); int mipi_dbi_dev_init(struct mipi_dbi_dev *dbidev, struct fb_ops *ops, struct fb_videomode *mode); +void mipi_dbi_fb_damage(struct fb_info *info, const struct fb_rect *rect); void mipi_dbi_fb_flush(struct fb_info *info); void mipi_dbi_enable_flush(struct mipi_dbi_dev *dbidev, struct fb_info *info); |