drm/amd/display: Restructure DMI quirks

[Why]
DMI quirks are relatively big code that makes amdgpu_dm 200 lines
larger.

[How]
Move DMI quirks into a dedicated source file and make all quirks
variables for `struct amdgpu_display_manager`.

Reviewed-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Ray Wu <ray.wu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Mario Limonciello
2025-04-22 15:58:41 -05:00
committed by Alex Deucher
parent f8ad62c0a9
commit de6485e3df
4 changed files with 191 additions and 149 deletions

View File

@@ -618,6 +618,13 @@ struct amdgpu_display_manager {
*/
bool aux_hpd_discon_quirk;
/**
* @edp0_on_dp1_quirk:
*
* quirk for platforms that put edp0 on DP1.
*/
bool edp0_on_dp1_quirk;
/**
* @dpia_aux_lock:
*
@@ -1068,4 +1075,6 @@ void hdmi_cec_set_edid(struct amdgpu_dm_connector *aconnector);
void hdmi_cec_unset_edid(struct amdgpu_dm_connector *aconnector);
int amdgpu_dm_initialize_hdmi_connector(struct amdgpu_dm_connector *aconnector);
void retrieve_dmi_info(struct amdgpu_display_manager *dm);
#endif /* __AMDGPU_DM_H__ */