]> git.baikalelectronics.ru Git - kernel.git/commit
amd/display: enable panel orientation quirks
authorSimon Ser <contact@emersion.fr>
Fri, 10 Sep 2021 15:37:41 +0000 (15:37 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 16 Sep 2021 13:56:24 +0000 (09:56 -0400)
commit19c8a733c62852136e1e4d584e02c62228477d04
tree26e0e920147df76adc868fc79cbfdc28d559ad9d
parent816ec7967ea284e5f344bf4247b40a6b73c84630
amd/display: enable panel orientation quirks

This patch allows panel orientation quirks from DRM core to be
used. They attach a DRM connector property "panel orientation"
which indicates in which direction the panel has been mounted.
Some machines have the internal screen mounted with a rotation.

Since the panel orientation quirks need the native mode from the
EDID, check for it in amdgpu_dm_connector_ddc_get_modes.

Signed-off-by: Simon Ser <contact@emersion.fr>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Harry Wentland <hwentlan@amd.com>
Cc: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c