drm/amd/display: Add oem panel config for new features

[WHAT]
Add oem panel config for below features:
- CACP_v2
- Adaptive VariBright
- Replay_FrameSkipping
- Replay_teamsOpt
- Ramless Idle Opt

Reviewed-by: Robin Chen <robin.chen@amd.com>
Signed-off-by: Ian Chen <ian.chen@amd.com>
Signed-off-by: Wayne Lin <wayne.lin@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Ian Chen
2025-12-03 16:59:07 +08:00
committed by Alex Deucher
parent bb4099c7d9
commit 0054d5a57a

View File

@@ -1256,7 +1256,7 @@ struct dc_panel_config {
unsigned int max_nonboost_brightness_millinits;
unsigned int min_brightness_millinits;
} nits_brightness;
/* PSR */
/* PSR/Replay */
struct psr {
bool disable_psr;
bool disallow_psrsu;
@@ -1266,6 +1266,8 @@ struct dc_panel_config {
bool rc_allow_fullscreen_VPB;
bool read_psrcap_again;
unsigned int replay_enable_option;
bool enable_frame_skipping;
bool enable_teams_optimization;
} psr;
/* ABM */
struct varib {
@@ -1282,6 +1284,27 @@ struct dc_panel_config {
struct ilr {
bool optimize_edp_link_rate; /* eDP ILR */
} ilr;
/* Adaptive VariBright*/
struct adaptive_vb {
bool disable_adaptive_vb;
unsigned int default_abm_vb_levels; // default value = 0xDCAA6414
unsigned int default_cacp_vb_levels;
unsigned int default_abm_vb_hdr_levels; // default value = 0xB4805A40
unsigned int default_cacp_vb_hdr_levels;
unsigned int abm_scaling_factors; // default value = 0x23210012
unsigned int cacp_scaling_factors;
unsigned int battery_life_configures; // default value = 0x0A141E
unsigned int abm_backlight_adaptive_pwl_1; // default value = 0x6A4F7244
unsigned int abm_backlight_adaptive_pwl_2; // default value = 0x4C615659
unsigned int abm_backlight_adaptive_pwl_3; // default value = 0x0064
unsigned int cacp_backlight_adaptive_pwl_1;
unsigned int cacp_backlight_adaptive_pwl_2;
unsigned int cacp_backlight_adaptive_pwl_3;
} adaptive_vb;
/* Ramless Idle Opt*/
struct rio {
bool disable_rio;
} rio;
};
#define MAX_SINKS_PER_LINK 4