]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: rcar-csi2: Abstract PHTW and PHYPLL register offsets
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Fri, 30 Aug 2024 20:31:00 +0000 (22:31 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 16 Oct 2024 07:32:37 +0000 (09:32 +0200)
commit28a034da232d39b1a26c2198a0ac2625102d9594
treef3ee7f8a0ce295148e71973359e251fe83ff9044
parentb230ddd876018a52e6d8cc61b1064091312f6d37
media: rcar-csi2: Abstract PHTW and PHYPLL register offsets

Most of the registers used on the R-Car V4M CSI-2 IP are shared with the
devices already supported by the rcar-csi2 driver. Two registers which
function and layout are the same are however found on different offsets.

Prepare for adding support for R-Car V4M by storing the offset to these
two registers offsets in the device information structured. This way the
code, which is shared between the devices, can be reused when V4M
support is added.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/renesas/rcar-csi2.c