]> git.baikalelectronics.ru Git - kernel.git/commit
media: allegro: lookup VCU settings
authorMichael Tretter <m.tretter@pengutronix.de>
Wed, 8 Sep 2021 13:03:12 +0000 (14:03 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 20 Oct 2021 14:53:12 +0000 (15:53 +0100)
commit8d7c99509db959c5d9b45f7fcdaa7f855ef0c547
treefe15d69dd19d83d176bbe805ccb268576d258eb3
parent6d0fbd2252d4f1672bd047f305da03a6eb0ca715
media: allegro: lookup VCU settings

The VCU provides information about its configuration in a dedicated
register space. These settings include, for example, the expected clock
rates and the configuration of the encoder buffer. In the device tree,
the settings are described by the "xlnx,vcu-settings" compatible.

The settings are needed to correctly configure the clocks and the
encoder buffer.

Lookup the VCU settings in the device tree and make it accessible to the
driver via a regmap.

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>
drivers/media/platform/allegro-dvt/allegro-core.c