Commit c330d371 authored by Philipp Zabel's avatar Philipp Zabel Committed by Mauro Carvalho Chehab

media: hantro: add support for separate control block

On i.MX8MQ/MM a separate control block contains registers for per-core
resets, clock gating, and fuse register control.
Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: default avatarBoris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent f855fc2c
...@@ -167,6 +167,7 @@ hantro_vdev_to_func(struct video_device *vdev) ...@@ -167,6 +167,7 @@ hantro_vdev_to_func(struct video_device *vdev)
* @reg_bases: Mapped addresses of VPU registers. * @reg_bases: Mapped addresses of VPU registers.
* @enc_base: Mapped address of VPU encoder register for convenience. * @enc_base: Mapped address of VPU encoder register for convenience.
* @dec_base: Mapped address of VPU decoder register for convenience. * @dec_base: Mapped address of VPU decoder register for convenience.
* @ctrl_base: Mapped address of VPU control block.
* @vpu_mutex: Mutex to synchronize V4L2 calls. * @vpu_mutex: Mutex to synchronize V4L2 calls.
* @irqlock: Spinlock to synchronize access to data structures * @irqlock: Spinlock to synchronize access to data structures
* shared with interrupt handlers. * shared with interrupt handlers.
...@@ -185,6 +186,7 @@ struct hantro_dev { ...@@ -185,6 +186,7 @@ struct hantro_dev {
void __iomem **reg_bases; void __iomem **reg_bases;
void __iomem *enc_base; void __iomem *enc_base;
void __iomem *dec_base; void __iomem *dec_base;
void __iomem *ctrl_base;
struct mutex vpu_mutex; /* video_device lock */ struct mutex vpu_mutex; /* video_device lock */
spinlock_t irqlock; spinlock_t irqlock;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment