]> git.dujemihanovic.xyz Git - linux.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)
commitcd51a57eb59fd56f3fe7ce9cadef444451bcf804
tree26e0e920147df76adc868fc79cbfdc28d559ad9d
parentb287e4946873d706f94d95bdb2bf099dc8902181
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