Commit 71fb6ed2 authored by Rodrigo Siqueira's avatar Rodrigo Siqueira Committed by Alex Deucher

drm/amd/display: Add WBSCL ram coefficient for writeback

Signed-off-by: default avatarRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Acked-by: default avatarRoman Li <roman.li@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent e9a48b6b
......@@ -299,6 +299,17 @@ void dwb2_set_scaler(struct dwbc *dwbc, struct dc_dwb_params *params)
}
}
if (dwbc20->dwbc_mask->WBSCL_COEF_RAM_SEL) {
/* Swap double buffered coefficient set */
uint32_t wbscl_mode = REG_READ(WBSCL_MODE);
bool coef_ram_current = get_reg_field_value_ex(
wbscl_mode, dwbc20->dwbc_mask->WBSCL_COEF_RAM_SEL_CURRENT,
dwbc20->dwbc_shift->WBSCL_COEF_RAM_SEL_CURRENT);
REG_UPDATE(WBSCL_MODE, WBSCL_COEF_RAM_SEL, !coef_ram_current);
}
}
static const struct dwbc_funcs dcn20_dwbc_funcs = {
......
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