phy: allwinner: phy-sun6i-mipi-dphy: Add a variant power-on hook
authorSamuel Holland <samuel@sholland.org>
Mon, 14 Nov 2022 02:21:12 +0000 (20:21 -0600)
committerVinod Koul <vkoul@kernel.org>
Thu, 24 Nov 2022 17:34:24 +0000 (23:04 +0530)
commit3fd490a7197857dc3aa409e56e31deaeab097c5f
tree7f11114964872e92dba7d3d994e33aff925e2cd1
parentcb7f49a31597066b25c9bc6a0bf0781454dd4d2b
phy: allwinner: phy-sun6i-mipi-dphy: Add a variant power-on hook

The A100 variant uses the same values for the timing registers, and it
uses the same final power-on sequence, but it needs a different analog
register configuration in the middle. Support this by moving the
variant-specific parts to a hook provided by the variant.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Link: https://lore.kernel.org/r/20221114022113.31694-8-samuel@sholland.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/allwinner/phy-sun6i-mipi-dphy.c