]> 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)
commit99430eb86c16981f37264e5c7a61366601a42a85
tree26e0e920147df76adc868fc79cbfdc28d559ad9d
parentc76a574dd9fb572e9d8d9407f6e9620d53565018
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