OSDN Git Service

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, 23 Sep 2021 19:17:28 +0000 (15:17 -0400)
commitd77de7880e0e08f05ed2d4c533c647a618aa8632
tree5b8929bce8593068b5cd6313e1120228893ecb19
parent31ea43442d0b3797ffd9906ee8ef1a1264565443
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