drm/amd/display: implement fw-driver interface for abm 2.4
[Why] IRAM definition needed for versions of DMCU containing ABM 2.4 [How] Pass ABM 2.3 IRAM definition, which is compatible with ABM 2.4, to DMCU when ABM 2.4 FW is detected Signed-off-by: Josip Pavic <Josip.Pavic@amd.com> Reviewed-by: Aric Cyr <Aric.Cyr@amd.com> Acked-by: Harry Wentland <harry.wentland@amd.com> Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
d905c33a43
commit
38a20a4580
|
@ -662,7 +662,11 @@ bool dmcu_load_iram(struct dmcu *dmcu,
|
|||
|
||||
memset(&ram_table, 0, sizeof(ram_table));
|
||||
|
||||
if (dmcu->dmcu_version.abm_version == 0x23) {
|
||||
if (dmcu->dmcu_version.abm_version == 0x24) {
|
||||
fill_iram_v_2_3((struct iram_table_v_2_2 *)ram_table, params);
|
||||
result = dmcu->funcs->load_iram(
|
||||
dmcu, 0, (char *)(&ram_table), IRAM_RESERVE_AREA_START_V2_2);
|
||||
} else if (dmcu->dmcu_version.abm_version == 0x23) {
|
||||
fill_iram_v_2_3((struct iram_table_v_2_2 *)ram_table, params);
|
||||
|
||||
result = dmcu->funcs->load_iram(
|
||||
|
@ -687,3 +691,4 @@ bool dmcu_load_iram(struct dmcu *dmcu,
|
|||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue