phy: amlogic: enable/disable clkin during Amlogic USB PHY init/exit
authorDmitry Rokosov <ddrokosov@sberdevices.ru>
Wed, 26 Apr 2023 10:29:18 +0000 (13:29 +0300)
committerVinod Koul <vkoul@kernel.org>
Mon, 8 May 2023 09:27:37 +0000 (14:57 +0530)
commit58247b9fedd6d7f7dcbeaf6bb57fd7a99403a1bb
treebbe2d13dccd84861d1c682a5215dcb2d82e96f92
parentac9a78681b921877518763ba0e89202254349d1b
phy: amlogic: enable/disable clkin during Amlogic USB PHY init/exit

Previously, all Amlogic boards used the XTAL clock as the default board
clock for the USB PHY input, so there was no need to enable it.
However, with the introduction of new Amlogic SoCs like the A1 family,
the USB PHY now uses a gated clock. Hence, it is necessary to enable
this gated clock during the PHY initialization sequence, or disable it
during the PHY exit, as appropriate.

Signed-off-by: Dmitry Rokosov <ddrokosov@sberdevices.ru>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://lore.kernel.org/r/20230426102922.19705-2-ddrokosov@sberdevices.ru
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/amlogic/phy-meson-g12a-usb2.c