diff options
author | Álvaro Fernández Rojas <noltari@gmail.com> | 2019-09-04 19:01:23 +0200 |
---|---|---|
committer | Álvaro Fernández Rojas <noltari@gmail.com> | 2019-09-04 19:02:48 +0200 |
commit | 662394fb30fdbcc89ec387918714aebee6868a9f (patch) | |
tree | c308c5f1a650abf9d9ccbb2a1747469a0d8570c0 /target/linux/brcm2708/patches-4.19/950-0732-drm-connector-Add-documentation-for-drm_cmdline_mode.patch | |
parent | 99a5e285887c4a10aaf06d8e01fae0707995da00 (diff) | |
download | upstream-662394fb30fdbcc89ec387918714aebee6868a9f.tar.gz upstream-662394fb30fdbcc89ec387918714aebee6868a9f.tar.bz2 upstream-662394fb30fdbcc89ec387918714aebee6868a9f.zip |
brcm2708: update to latest patches from RPi foundation
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'target/linux/brcm2708/patches-4.19/950-0732-drm-connector-Add-documentation-for-drm_cmdline_mode.patch')
-rw-r--r-- | target/linux/brcm2708/patches-4.19/950-0732-drm-connector-Add-documentation-for-drm_cmdline_mode.patch | 125 |
1 files changed, 125 insertions, 0 deletions
diff --git a/target/linux/brcm2708/patches-4.19/950-0732-drm-connector-Add-documentation-for-drm_cmdline_mode.patch b/target/linux/brcm2708/patches-4.19/950-0732-drm-connector-Add-documentation-for-drm_cmdline_mode.patch new file mode 100644 index 0000000000..c71a066117 --- /dev/null +++ b/target/linux/brcm2708/patches-4.19/950-0732-drm-connector-Add-documentation-for-drm_cmdline_mode.patch @@ -0,0 +1,125 @@ +From 6f94296b6d1468188e5448c9b9c369b9d916f6d0 Mon Sep 17 00:00:00 2001 +From: Maxime Ripard <maxime.ripard@bootlin.com> +Date: Wed, 19 Jun 2019 12:17:48 +0200 +Subject: [PATCH 732/782] drm/connector: Add documentation for drm_cmdline_mode +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +commit 772cd52c5574b04b00a97d638b2cfe94c0c1a9b6 upstream. + +The struct drm_cmdline_mode holds the result of the command line parsers. +However, it wasn't documented so far, so let's do that. + +Reviewed-by: Noralf Trønnes <noralf@tronnes.org> +Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com> +Link: https://patchwork.freedesktop.org/patch/msgid/963c893c16c6a25fc469b53c726f493d99bdc578.1560783090.git-series.maxime.ripard@bootlin.com +--- + include/drm/drm_connector.h | 86 ++++++++++++++++++++++++++++++++++++- + 1 file changed, 84 insertions(+), 2 deletions(-) + +--- a/include/drm/drm_connector.h ++++ b/include/drm/drm_connector.h +@@ -755,18 +755,100 @@ struct drm_connector_funcs { + const struct drm_connector_state *state); + }; + +-/* mode specified on the command line */ ++/** ++ * struct drm_cmdline_mode - DRM Mode passed through the kernel command-line ++ * ++ * Each connector can have an initial mode with additional options ++ * passed through the kernel command line. This structure allows to ++ * express those parameters and will be filled by the command-line ++ * parser. ++ */ + struct drm_cmdline_mode { ++ /** ++ * @specified: ++ * ++ * Has a mode been read from the command-line? ++ */ + bool specified; ++ ++ /** ++ * @refresh_specified: ++ * ++ * Did the mode have a preferred refresh rate? ++ */ + bool refresh_specified; ++ ++ /** ++ * @bpp_specified: ++ * ++ * Did the mode have a preferred BPP? ++ */ + bool bpp_specified; +- int xres, yres; ++ ++ /** ++ * @xres: ++ * ++ * Active resolution on the X axis, in pixels. ++ */ ++ int xres; ++ ++ /** ++ * @yres: ++ * ++ * Active resolution on the Y axis, in pixels. ++ */ ++ int yres; ++ ++ /** ++ * @bpp: ++ * ++ * Bits per pixels for the mode. ++ */ + int bpp; ++ ++ /** ++ * @refresh: ++ * ++ * Refresh rate, in Hertz. ++ */ + int refresh; ++ ++ /** ++ * @rb: ++ * ++ * Do we need to use reduced blanking? ++ */ + bool rb; ++ ++ /** ++ * @interlace: ++ * ++ * The mode is interlaced. ++ */ + bool interlace; ++ ++ /** ++ * @cvt: ++ * ++ * The timings will be calculated using the VESA Coordinated ++ * Video Timings instead of looking up the mode from a table. ++ */ + bool cvt; ++ ++ /** ++ * @margins: ++ * ++ * Add margins to the mode calculation (1.8% of xres rounded ++ * down to 8 pixels and 1.8% of yres). ++ */ + bool margins; ++ ++ /** ++ * @force: ++ * ++ * Ignore the hotplug state of the connector, and force its ++ * state to one of the DRM_FORCE_* values. ++ */ + enum drm_connector_force force; + }; + |