Commit 66c25961 authored by Iswara Nagulendran's avatar Iswara Nagulendran Committed by Alex Deucher

drm/amd/display: Add VESA SCR case for default aux backlight

[How & Why]
When determining default aux backlight level, read from
DPCD address 0x734 for VESA SCR on OLED.
Reviewed-by: default avatarFelipe Clark <felipe.clark@amd.com>
Acked-by: default avatarAlex Hung <alex.hung@amd.com>
Signed-off-by: default avatarIswara Nagulendran <iswara.nagulendran@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent cbd0606e
...@@ -252,10 +252,20 @@ static bool read_default_bl_aux(struct dc_link *link, uint32_t *backlight_millin ...@@ -252,10 +252,20 @@ static bool read_default_bl_aux(struct dc_link *link, uint32_t *backlight_millin
link->connector_signal != SIGNAL_TYPE_DISPLAY_PORT)) link->connector_signal != SIGNAL_TYPE_DISPLAY_PORT))
return false; return false;
if (!core_link_read_dpcd(link, DP_SOURCE_BACKLIGHT_LEVEL, if (!link->dpcd_caps.panel_luminance_control) {
(uint8_t *) backlight_millinits, if (!core_link_read_dpcd(link, DP_SOURCE_BACKLIGHT_LEVEL,
sizeof(uint32_t))) (uint8_t *)backlight_millinits,
return false; sizeof(uint32_t)))
return false;
} else {
//setting to 0 as a precaution, since target_luminance_value is 3 bytes
memset(backlight_millinits, 0, sizeof(uint32_t));
if (!core_link_read_dpcd(link, DP_EDP_PANEL_TARGET_LUMINANCE_VALUE,
(uint8_t *)backlight_millinits,
sizeof(struct target_luminance_value)))
return false;
}
return true; return true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment