Skip to content

Commit

Permalink
drm/amd/display: Change Brightness Control Priority
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Muyuan Yang <[email protected]>
Signed-off-by: Fangzhi Zuo <[email protected]>
Tested-by: Daniel Wheeler <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
  • Loading branch information
Muyuan Yang authored and lutzbichler committed Dec 8, 2024
1 parent 23fbfec commit 6dca31a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/amd/display/dc/dc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 6 additions & 0 deletions drivers/gpu/drm/amd/display/dc/dc_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -922,6 +922,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;
Expand Down

0 comments on commit 6dca31a

Please sign in to comment.