phy: ti: j721e-wiz: Enable reference clock output in cmn_refclk_<p/m>
authorKishon Vijay Abraham I <kishon@ti.com>
Wed, 10 Mar 2021 12:08:39 +0000 (17:38 +0530)
committerVinod Koul <vkoul@kernel.org>
Tue, 30 Mar 2021 18:03:38 +0000 (23:33 +0530)
commit9e405f87b69b1c84bb960da76af1d1aa5c52e5f4
treeec2e550a334f529fe48c022d3184a95e05773704
parent040cbe7687316e265199ce892d3f7c24c041aaec
phy: ti: j721e-wiz: Enable reference clock output in cmn_refclk_<p/m>

cmn_refclk_<p/m> lines in Torrent SERDES is used for connecting external
reference clock. cmn_refclk_<p/m> can also be configured to output the
reference clock. In order to drive the refclk out from the SERDES
(Cadence Torrent), PHY_EN_REFCLK should be set in SERDES_RST of WIZ.
Model PHY_EN_REFCLK as a clock, so that platforms like AM642 EVM can
enable it.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Link: https://lore.kernel.org/r/20210310120840.16447-6-kishon@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/ti/phy-j721e-wiz.c