summaryrefslogtreecommitdiff
path: root/drivers/media/platform/qcom/venus/firmware.h
diff options
context:
space:
mode:
authorVikash Garodia <vgarodia@codeaurora.org>2018-10-17 09:18:22 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-11-23 06:34:12 -0500
commitdf381dc8e475204fbcc58302ae2eb7860f4e4e1e (patch)
tree46b8e49e6e57d5fd32d4ddddace20bce8d7b731f /drivers/media/platform/qcom/venus/firmware.h
parentf9799fcce4bb383206c08a2ac960039efdfa4a2f (diff)
media: venus: firmware: add no TZ boot and shutdown routine
Video hardware is mainly comprised of vcodec subsystem and video control subsystem. Video control has ARM9 which executes the video firmware instructions whereas vcodec does the video frame processing. This change adds support to load the video firmware and bring ARM9 out of reset for platforms which does not have trustzone. An iommu domain is associated and managed with the firmware device. Signed-off-by: Vikash Garodia <vgarodia@codeaurora.org> Acked-by: Stanimir Varbanov <stanimir.varbanov@linaro.org> Reviewed-by: Alexandre Courbot <acourbot@chromium.org> Tested-by: Alexandre Courbot <acourbot@chromium.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/platform/qcom/venus/firmware.h')
-rw-r--r--drivers/media/platform/qcom/venus/firmware.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/qcom/venus/firmware.h b/drivers/media/platform/qcom/venus/firmware.h
index fd7edf0c7b75..119a9a4fc1a2 100644
--- a/drivers/media/platform/qcom/venus/firmware.h
+++ b/drivers/media/platform/qcom/venus/firmware.h
@@ -19,7 +19,7 @@ struct device;
int venus_firmware_init(struct venus_core *core);
void venus_firmware_deinit(struct venus_core *core);
int venus_boot(struct venus_core *core);
-int venus_shutdown(struct device *dev);
+int venus_shutdown(struct venus_core *core);
int venus_set_hw_state(struct venus_core *core, bool suspend);
static inline int venus_set_hw_state_suspend(struct venus_core *core)