summaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2020-11-21 18:27:14 +0100
committerLucas Stach <l.stach@pengutronix.de>2021-07-21 22:27:10 +0200
commit10615a28ea15dc9a48fc24b226d7ed3f16619112 (patch)
tree47341441367d261c39a67147e99c53b8e0340ea6 /include/drm
parent2e2b6854895cfe7a1eb216def7fc870ba41dba06 (diff)
downloadlinux-10615a28ea15dc9a48fc24b226d7ed3f16619112.tar.gz
linux-10615a28ea15dc9a48fc24b226d7ed3f16619112.tar.xz
drm/bridge: samsung-dsim: add mode_fixup host op
Some hosts need to change the mode flags passed on to the display controller. Add a mode_fixup host op to allow hosts to hook into this DRM bridge function. Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/bridge/samsung-dsim.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/drm/bridge/samsung-dsim.h b/include/drm/bridge/samsung-dsim.h
index be8b4913aa9c..d644bb2f9e87 100644
--- a/include/drm/bridge/samsung-dsim.h
+++ b/include/drm/bridge/samsung-dsim.h
@@ -6,6 +6,7 @@ struct drm_encoder;
struct samsung_dsim;
struct platform_device;
struct mipi_dsi_device;
+struct drm_display_mode;
enum exynos_reg_offset {
EXYNOS_REG_OFS,
@@ -45,6 +46,9 @@ enum reg_value_idx {
struct samsung_dsim_host_ops {
int (*attach)(struct device *dev, struct mipi_dsi_device *device);
int (*detach)(struct device *dev, struct mipi_dsi_device *device);
+ bool (*mode_fixup)(struct device *dev,
+ const struct drm_display_mode *mode,
+ struct drm_display_mode *adjusted_mode);
void (*te_handler)(struct device *dev);
};