OpenCloudOS-Kernel/drivers/media/platform/allegro-dvt
Michael Tretter 83cc5fd9c6 media: allegro: add pm_runtime support
The allegro driver must ensure that the mcu and core clocks are enabled
and set to the expected clock rate before trying to load the firmware
and to reset the MCU.

Up until now, the driver assumed that the clocks are always enabled in
the PL (programming logic), because the xlnx_vcu driver did not export
the clocks to other drivers. This has changed and by explicitly enabling
the clocks in the driver, this assumption can be dropped.

It might even be possible to disable the clocks for the encoder if the
encoder is not used. However, the behavior is not documented and it
might be necessary to reinitialize the encoder after deactivating the
clocks. Play it safe by sticking to the current behavior.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2021-10-20 15:54:27 +01:00
..
Makefile media: allegro: add HEVC NAL unit generator 2021-01-27 16:04:04 +01:00
allegro-core.c media: allegro: add pm_runtime support 2021-10-20 15:54:27 +01:00
allegro-mail.c media: allegro: add support for HEVC encoding 2021-01-27 16:15:04 +01:00
allegro-mail.h media: allegro: add support for HEVC encoding 2021-01-27 16:15:04 +01:00
nal-h264.c media: allegro-dvt: avoid EN DASH char 2021-06-04 08:10:07 +02:00
nal-h264.h media: allegro: change kernel-doc comment blocks to normal comments 2021-04-09 13:17:27 +02:00
nal-hevc.c media: allegro-dvt: avoid EN DASH char 2021-06-04 08:10:07 +02:00
nal-hevc.h media: allegro: change kernel-doc comment blocks to normal comments 2021-04-09 13:17:27 +02:00
nal-rbsp.c media: allegro: add helper to report unsupported fields 2021-01-27 15:52:23 +01:00
nal-rbsp.h media: allegro: add helper to report unsupported fields 2021-01-27 15:52:23 +01:00