mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-10 20:38:50 -04:00
drm/amd/display: Add WBSCL ram coefficient for writeback
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> Acked-by: Roman Li <roman.li@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
e9a48b6b95
commit
71fb6ed2e7
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user