media: venus: core: Add differentiator IS_V6(core)
[ Upstream commit ff027906308fcda1661e05beac6abdcbe2b93f6d ] 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> Stable-dep-of: d74e48160980 ("media: venus: hfi_venus: Write to VIDC_CTRL_INIT after unmasking interrupts") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
3ed9d3dc24
commit
4596fece3c
@ -426,6 +426,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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user