diff options
author | Konrad Dybcio <konrad.dybcio@linaro.org> | 2023-05-30 14:30:41 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2023-08-10 07:58:34 +0200 |
commit | 6513d80e085db064fc1a61c1c55516f1bc78e27d (patch) | |
tree | 7fa45e0ac51b8c93f019ac69bc855da4991745ee /drivers | |
parent | ff877873a0d4c9ff40ab8ba3ed8072f7368daa36 (diff) | |
download | linux-stable-6513d80e085db064fc1a61c1c55516f1bc78e27d.tar.gz linux-stable-6513d80e085db064fc1a61c1c55516f1bc78e27d.tar.bz2 linux-stable-6513d80e085db064fc1a61c1c55516f1bc78e27d.zip |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/platform/qcom/venus/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/qcom/venus/core.c b/drivers/media/platform/qcom/venus/core.c index 80cfadbf16af..8972845569c2 100644 --- a/drivers/media/platform/qcom/venus/core.c +++ b/drivers/media/platform/qcom/venus/core.c @@ -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; |