mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 05:09:17 -04:00
drm/amd/display: Change Brightness Control Priority
Prioritize Aux-based over PWM-based brightness control for more types of panels and introduce a new structure to store and manage the type of brightness control used. Reviewed-by: Anthony Koo <anthony.koo@amd.com> Signed-off-by: Muyuan Yang <muyuan.yang@amd.com> Signed-off-by: Fangzhi Zuo <jerry.zuo@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
70f75eef5f
commit
e1b58b2b11
@@ -1786,6 +1786,7 @@ struct dc_link {
|
||||
// BW ALLOCATON USB4 ONLY
|
||||
struct dc_dpia_bw_alloc dpia_bw_alloc_config;
|
||||
bool skip_implict_edp_power_control;
|
||||
enum backlight_control_type backlight_control_type;
|
||||
};
|
||||
|
||||
/* Return an enumerated dc_link.
|
||||
|
||||
@@ -923,6 +923,12 @@ struct display_endpoint_id {
|
||||
enum display_endpoint_type ep_type;
|
||||
};
|
||||
|
||||
enum backlight_control_type {
|
||||
BACKLIGHT_CONTROL_PWM = 0,
|
||||
BACKLIGHT_CONTROL_VESA_AUX = 1,
|
||||
BACKLIGHT_CONTROL_AMD_AUX = 2,
|
||||
};
|
||||
|
||||
#if defined(CONFIG_DRM_AMD_SECURE_DISPLAY)
|
||||
struct otg_phy_mux {
|
||||
uint8_t phy_output_num;
|
||||
|
||||
Reference in New Issue
Block a user