OSDN Git Service

media: hantro: Prepare for other G2 codecs
authorAndrzej Pietrasiewicz <andrzej.p@collabora.com>
Tue, 16 Nov 2021 14:38:39 +0000 (14:38 +0000)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 22 Nov 2021 07:50:42 +0000 (07:50 +0000)
commitcb1bbbd4cffd55d166ec9fa5d0ea2afa749ca9cf
tree64f51049ff5052ba3f42537fa7809e4f5ab82665
parent82fb363d5e96bd87e5027d0d2bbecea75870707d
media: hantro: Prepare for other G2 codecs

VeriSilicon Hantro G2 core supports other codecs besides hevc.
Factor out some common code in preparation for vp9 support.

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@collabora.com>
Reviewed-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/hantro/Makefile
drivers/staging/media/hantro/hantro.h
drivers/staging/media/hantro/hantro_drv.c
drivers/staging/media/hantro/hantro_g2.c [new file with mode: 0644]
drivers/staging/media/hantro/hantro_g2_hevc_dec.c
drivers/staging/media/hantro/hantro_g2_regs.h
drivers/staging/media/hantro/hantro_hw.h