]> git.baikalelectronics.ru Git - kernel.git/commit
efifb: Set info->fbcon_rotate_hint based on drm_get_panel_orientation_quirk
authorHans de Goede <j.w.r.degoede@gmail.com>
Sat, 25 Nov 2017 19:35:52 +0000 (20:35 +0100)
committerHans de Goede <hdegoede@redhat.com>
Mon, 4 Dec 2017 22:03:21 +0000 (23:03 +0100)
commit1e92c58e8b3a6e2400a3c3a118bc06e735e5348b
treed6a90d1d6bcb319c6f1a696799862c48220258d9
parent017d65200a9f5b071cb2eeb92708db889b97d00b
efifb: Set info->fbcon_rotate_hint based on drm_get_panel_orientation_quirk

On some hardware the LCD panel is not mounted upright in the casing,
but rotated by 90 degrees. In this case we want the console to
automatically be rotated to compensate.

The drm subsys has a quirk table for this, use the
drm_get_panel_orientation_quirk function to get the panel orientation
and set info->fbcon_rotate_hint based on this, so that the fbcon console
on top of efifb gets automatically rotated to compensate for the panel
orientation.

Acked-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171125193553.23986-7-hdegoede@redhat.com
drivers/video/fbdev/Kconfig
drivers/video/fbdev/efifb.c