]> git.baikalelectronics.ru Git - kernel.git/commit
media: amphion: implement vpu core communication based on mailbox
authorMing Qian <ming.qian@nxp.com>
Thu, 24 Feb 2022 03:10:03 +0000 (11:10 +0800)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 7 Mar 2022 16:13:33 +0000 (17:13 +0100)
commit5a30a8d3258e37d4652916bff956cb709d31b291
tree1357d4d2d9b29b4c1625e97aed3b35a2cd3c4ec5
parent0e0dce422c0773f4611b5a5efce4ea3b5cbf18f7
media: amphion: implement vpu core communication based on mailbox

driver use mailbox to communicate with vpu core.
and there are a command buffer and a message buffer.
driver will write commands to the command buffer,
then trigger a vpu core interrupt
vpu core will write messages to the message buffer,
then trigger a cpu interrupt.

Signed-off-by: Ming Qian <ming.qian@nxp.com>
Signed-off-by: Shijie Qin <shijie.qin@nxp.com>
Signed-off-by: Zhou Peng <eagle.zhou@nxp.com>
Reported-by: kernel test robot <lkp@intel.com>
Tested-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/amphion/vpu_cmds.c [new file with mode: 0644]
drivers/media/platform/amphion/vpu_cmds.h [new file with mode: 0644]
drivers/media/platform/amphion/vpu_mbox.c [new file with mode: 0644]
drivers/media/platform/amphion/vpu_mbox.h [new file with mode: 0644]
drivers/media/platform/amphion/vpu_msgs.c [new file with mode: 0644]
drivers/media/platform/amphion/vpu_msgs.h [new file with mode: 0644]