phy: sparx5-serdes: add function for getting the CMU index
authorDaniel Machon <daniel.machon@microchip.com>
Mon, 9 Sep 2024 15:14:45 +0000 (17:14 +0200)
committerVinod Koul <vkoul@kernel.org>
Mon, 21 Oct 2024 18:32:03 +0000 (00:02 +0530)
commitf16df057837e06d16b5e5f978d79d80d70784b80
tree4965332681901bfc25af83000509ae421ef6ffa1
parentd61d42a91e322f73b8c68e22347469306b280008
phy: sparx5-serdes: add function for getting the CMU index

The SERDES to CMU mapping is different on Sparx5 and lan969x. Therefore
create a function for getting the CMU index on Sparx5.

Signed-off-by: Daniel Machon <daniel.machon@microchip.com>
Reviewed-by: Steen Hegelund <Steen.Hegelund@microchip.com>
Link: https://lore.kernel.org/r/20240909-sparx5-lan969x-serdes-driver-v2-5-d695bcb57b84@microchip.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/microchip/sparx5_serdes.c
drivers/phy/microchip/sparx5_serdes.h