]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
media: venus: core: Add differentiator IS_V6(core)
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Fri, 2 Apr 2021 10:06:31 +0000 (12:06 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 6 Apr 2021 13:27:23 +0000 (15:27 +0200)
This commit adds the macro helper IS_V6() which will be used to
differentiate iris2/v6 silicon from previous versions.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/qcom/venus/core.h

index 506cf036b3c67f1b75d69ed4ae503ecfccc4f16c..8fb065c0549dca3276ee7ddb1008ff1551ea4441 100644 (file)
@@ -424,6 +424,7 @@ struct venus_inst {
 #define IS_V1(core)    ((core)->res->hfi_version == HFI_VERSION_1XX)
 #define IS_V3(core)    ((core)->res->hfi_version == HFI_VERSION_3XX)
 #define IS_V4(core)    ((core)->res->hfi_version == HFI_VERSION_4XX)
+#define IS_V6(core)    ((core)->res->hfi_version == HFI_VERSION_6XX)
 
 #define ctrl_to_inst(ctrl)     \
        container_of((ctrl)->handler, struct venus_inst, ctrl_handler)