phy: cadence-torrent: Add support to drive refclk out
authorKishon Vijay Abraham I <kishon@ti.com>
Wed, 10 Mar 2021 12:08:40 +0000 (17:38 +0530)
committerVinod Koul <vkoul@kernel.org>
Tue, 30 Mar 2021 18:03:40 +0000 (23:33 +0530)
commit2cca0228f3641e68ac2433a8e75b130d907ce78a
treead92afc6f00cf9202aa3e4207a6a197f1a095673
parent9e405f87b69b1c84bb960da76af1d1aa5c52e5f4
phy: cadence-torrent: Add support to drive refclk out

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. Model this derived reference clock as a "clock" so that
platforms like AM642 EVM can enable it.

This is used by PCIe to use the same refclk both in local SERDES
and remote device. Add support here to drive refclk out.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Reviewed-by: Swapnil Jakhade <sjakhade@cadence.com>
Link: https://lore.kernel.org/r/20210310120840.16447-7-kishon@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/cadence/Kconfig
drivers/phy/cadence/phy-cadence-torrent.c