]> git.ipfire.org Git - thirdparty/u-boot.git/commit
phy: zynqmp: Enable reference clock correctly
authorSean Anderson <sean.anderson@linux.dev>
Tue, 6 Jan 2026 21:54:59 +0000 (16:54 -0500)
committerMichal Simek <michal.simek@amd.com>
Mon, 12 Jan 2026 12:01:27 +0000 (13:01 +0100)
commit8c3e514d66def2a0f20cdc1cfef4d58542444576
treec999f9f48543a25c1d0fa3a227d9ea879f025dd7
parent0320459cbf857f4bc340d3a500a38a57218768d5
phy: zynqmp: Enable reference clock correctly

Lanes can use other lanes' reference clocks, as determined by refclk.
Use refclk to determine the clock to enable/disable instead of always
using the lane's own reference clock. This ensures the clock selected in
xpsgtr_configure_pll is the one enabled.

For the other half of the equation, always program REF_CLK_SEL even when
we are selecting the lane's own clock. This ensures that Linux's idea of
the reference clock matches the hardware. We use the "local" clock mux
for this instead of going through the ref clock network.

Signed-off-by: Sean Anderson <sean.anderson@linux.dev>
Link: https://lore.kernel.org/r/20240628205540.3098010-2-sean.anderson@linux.dev
Signed-off-by: Vinod Koul <vkoul@kernel.org>
[ Linux commit 687d6bccb28238fcfa65f7c1badfdfeac498c428 ]
Fixes: 1d78d683496 ("phy: zynqmp: Add serdes/psgtr driver")
Link: https://lore.kernel.org/r/20260106215501.727524-3-sean.anderson@linux.dev
Signed-off-by: Michal Simek <michal.simek@amd.com>
drivers/phy/phy-zynqmp.c