summaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorMaxime Ripard <maxime@cerno.tech>2022-11-14 14:00:31 +0100
committerMaxime Ripard <maxime@cerno.tech>2022-11-15 10:10:24 +0100
commit0e308efe232afdec35d508f5dfae52f03d50efca (patch)
tree28052f1301b5ccf80b9ce9b7e599262404959c83 /include/drm
parent00dcc4a2d560c57543ee36b94a864256f99cac32 (diff)
downloadlinux-0e308efe232afdec35d508f5dfae52f03d50efca.tar.bz2
drm/connector: Add pixel clock to cmdline mode
We'll need to get the pixel clock to generate proper display modes for all the current named modes. Let's add it to struct drm_cmdline_mode and fill it when parsing the named mode. Reviewed-by: Noralf Trønnes <noralf@tronnes.org> Tested-by: Mateusz Kwiatkowski <kfyatek+publicgit@gmail.com> Link: https://lore.kernel.org/r/20220728-rpi-analog-tv-properties-v9-12-24b168e5bcd5@cerno.tech Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drm_connector.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/drm/drm_connector.h b/include/drm/drm_connector.h
index e641a4725f99..f1cba187e551 100644
--- a/include/drm/drm_connector.h
+++ b/include/drm/drm_connector.h
@@ -1213,6 +1213,13 @@ struct drm_cmdline_mode {
bool bpp_specified;
/**
+ * @pixel_clock:
+ *
+ * Pixel Clock in kHz. Optional.
+ */
+ unsigned int pixel_clock;
+
+ /**
* @xres:
*
* Active resolution on the X axis, in pixels.