media: hantro: Allow i.MX8MQ G1 and G2 to run independently
authorAdam Ford <aford173@gmail.com>
Tue, 25 Jan 2022 17:11:23 +0000 (18:11 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 7 Mar 2022 09:54:45 +0000 (10:54 +0100)
commit6971efb70ac3e43d19bf33ef5f83bea0271831ee
treec1916ea086269dfce19c8d73169b3d3c111a369e
parentf3116f2e52e63d8e5b615040013f00c535126fc1
media: hantro: Allow i.MX8MQ G1 and G2 to run independently

The VPU in the i.MX8MQ is really the combination of Hantro G1 and
Hantro G2. With the updated vpu-blk-ctrl, the power domains system
can enable and disable them separately as well as pull them out of
reset. This simplifies the code and lets them run independently
while still retaining backwards compatibility with older device
trees for those using G1.

Signed-off-by: Adam Ford <aford173@gmail.com>
Reviewed-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/hantro/hantro_drv.c
drivers/staging/media/hantro/hantro_hw.h
drivers/staging/media/hantro/imx8m_vpu_hw.c