diff options
author | Maxime Ripard <maxime.ripard@bootlin.com> | 2019-06-19 06:17:51 -0400 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@bootlin.com> | 2019-06-19 06:17:51 -0400 |
commit | 1bf4e09227c345e246062285eba4b8fe660e512e (patch) | |
tree | 45396ee8fa752b77e08db4c2ae3be1f1c21dab2b /include/drm | |
parent | 3aeeb13d899627fe2b86bdbdcd0927cf7192234f (diff) |
drm/modes: Allow to specify rotation and reflection on the commandline
Rotations and reflections setup are needed in some scenarios to initialise
properly the initial framebuffer. Some drivers already had a bunch of
quirks to deal with this, such as either a private kernel command line
parameter (omapdss) or on the device tree (various panels).
In order to accomodate this, let's create a video mode parameter to deal
with the rotation and reflexion.
Reviewed-by: Noralf Trønnes <noralf@tronnes.org>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/777da16e42db757c1f5b414b5ca34507097fed5c.1560783090.git-series.maxime.ripard@bootlin.com
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm_connector.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/drm/drm_connector.h b/include/drm/drm_connector.h index cdf2fb910010..8eebe0432c73 100644 --- a/include/drm/drm_connector.h +++ b/include/drm/drm_connector.h | |||
@@ -1025,6 +1025,16 @@ struct drm_cmdline_mode { | |||
1025 | * state to one of the DRM_FORCE_* values. | 1025 | * state to one of the DRM_FORCE_* values. |
1026 | */ | 1026 | */ |
1027 | enum drm_connector_force force; | 1027 | enum drm_connector_force force; |
1028 | |||
1029 | /** | ||
1030 | * @rotation_reflection: | ||
1031 | * | ||
1032 | * Initial rotation and reflection of the mode setup from the | ||
1033 | * command line. See DRM_MODE_ROTATE_* and | ||
1034 | * DRM_MODE_REFLECT_*. The only rotations supported are | ||
1035 | * DRM_MODE_ROTATE_0 and DRM_MODE_ROTATE_180. | ||
1036 | */ | ||
1037 | unsigned int rotation_reflection; | ||
1028 | }; | 1038 | }; |
1029 | 1039 | ||
1030 | /** | 1040 | /** |