phy: cadence: cdns-dphy-rx: Add common module reset support
authorSinthu Raja <sinthu.raja@ti.com>
Tue, 14 Mar 2023 07:31:37 +0000 (13:01 +0530)
committerVinod Koul <vkoul@kernel.org>
Wed, 12 Apr 2023 16:46:16 +0000 (22:16 +0530)
commita0106132372120dd0abf5ad7636614e5aeb5da08
tree02b87f83cbd4f55ed520422b951e1eeab81b6297
parentec318c51b686841e36c924bc0e5a13a75e75b27b
phy: cadence: cdns-dphy-rx: Add common module reset support

DPHY RX module has a common module reset (RSTB_CMN) which is expected
to be released during configuration. In J721E SR1.0 the RSTB_CMN is
internally tied to CSI_RX_RST and is hardware controlled, for all
other newer platforms the common module reset is software controlled.
Add support to control common module reset during configuration and
also skip common module reset based on soc_device_match() for J721E SR1.0.

Signed-off-by: Sinthu Raja <sinthu.raja@ti.com>
Co-developed-by: Vaishnav Achath <vaishnav.a@ti.com>
Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
Reviewed-by: Jai Luthra <j-luthra@ti.com>
Link: https://lore.kernel.org/r/20230314073137.2153-1-vaishnav.a@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/cadence/cdns-dphy-rx.c