aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNeil Armstrong2019-07-04 15:52:07 +0200
committerAnatolij Gustschin2019-07-29 00:21:49 +0200
commiteb4ee4e436287a69de7a87ea3070fa52bd327602 (patch)
tree649df3e48b22677e8ef313c5f223c4ef0ec0b0bd /include
parent1c1ed441b0d1d7d5fbf02cf89a390c04b18f8ba3 (diff)
video: display: use edid_get_timing_validate() variant to filter supported EDID modes
Introduce a new display op, mode_valid() to be used with the newly introduced edid_get_timing_validate() function, to filter supported monitor timings if handled by the display driver. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Diffstat (limited to 'include')
-rw-r--r--include/display.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/display.h b/include/display.h
index 16f317c9c8c..66294616ea2 100644
--- a/include/display.h
+++ b/include/display.h
@@ -80,6 +80,16 @@ struct dm_display_ops {
*/
int (*enable)(struct udevice *dev, int panel_bpp,
const struct display_timing *timing);
+
+ /**
+ * mode_valid() - Check if mode is supported
+ *
+ * @dev: Device to enable
+ * @timing: Display timings
+ * @return true if supported, false if not
+ */
+ bool (*mode_valid)(struct udevice *dev,
+ const struct display_timing *timing);
};
#define display_get_ops(dev) ((struct dm_display_ops *)(dev)->driver->ops)