media: imx-jpeg: Support to assign slot for encoder/decoder
authorMing Qian <ming.qian@nxp.com>
Tue, 30 May 2023 07:16:30 +0000 (09:16 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 14 Jul 2023 07:14:09 +0000 (09:14 +0200)
commit53ebeea50599c1ed05277d7a57e331a34e6d6a82
tree0f462c43b870412870ad4e4e705bb6e475eca21f
parentdcff0b56f661b6b42e828012b464d22cc2068c38
media: imx-jpeg: Support to assign slot for encoder/decoder

imx jpeg encoder and decoder support 4 slots each,
aim to support some virtualization scenarios.

driver should only enable one slot one time.

but due to some hardware issue,
only slot 0 can be enabled in imx8q platform,
and they may be fixed in imx9 platform.

Signed-off-by: Ming Qian <ming.qian@nxp.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg-hw.h
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.h