media: rcar-csi2: Add support for C-PHY on R-Car V4H
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Sat, 15 Jul 2023 20:12:39 +0000 (22:12 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Thu, 10 Aug 2023 05:58:39 +0000 (07:58 +0200)
commit82bc596df84daa5ff6b3e706a8473801de49e2ee
tree8772d6fe16020cdd3f8ec3ce1b540b006be45a58
parent34e3d3c9ddbd7cc7606c726cd0d6fe7313b231c1
media: rcar-csi2: Add support for C-PHY on R-Car V4H

Add support for C-PHY on R-Car V4H. While the V4H supports both D-PHY
and C-PHY this patch only adds support for the C-PHY mode due to lack of
documentation and hardware to test on.

The V4H is the first Gen4 device that is enabled in the rcar-csi2
driver. There is much overlap with the Gen3 driver, the primary
difference is in how the receiver is started. The V4H have a much larger
register space and some addresses overlap with Gen3.

[Sakari Ailus: Use div_u64() to divide a 64-bit integer.]

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@kernel.org>
drivers/media/platform/renesas/rcar-vin/rcar-csi2.c