media: venus: core: Assign registers based on VPU version
The current assumption of IS_V6 is overgeneralized. Adjust the logic to take the VPU hardware version into account. Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> Signed-off-by: Stanimir Varbanov <stanimir.k.varbanov@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
parent
ff877873a0
commit
6513d80e08
|
@ -247,7 +247,7 @@ err:
|
|||
|
||||
static void venus_assign_register_offsets(struct venus_core *core)
|
||||
{
|
||||
if (IS_V6(core)) {
|
||||
if (IS_IRIS2(core) || IS_IRIS2_1(core)) {
|
||||
core->vbif_base = core->base + VBIF_BASE;
|
||||
core->cpu_base = core->base + CPU_BASE_V6;
|
||||
core->cpu_cs_base = core->base + CPU_CS_BASE_V6;
|
||||
|
|
Loading…
Reference in New Issue