phy: sparx5-serdes: add constant for the number of CMU's
authorDaniel Machon <daniel.machon@microchip.com>
Mon, 9 Sep 2024 15:14:43 +0000 (17:14 +0200)
committerVinod Koul <vkoul@kernel.org>
Mon, 21 Oct 2024 18:32:03 +0000 (00:02 +0530)
commit5206ba966d0b053bcd15e4fcba17284201ca6199
tree367b4c648a20b65328eef93e79ca9a7c894ffd36
parent8e65baf8ccc1fdc72645db15a10bd69209cccfb8
phy: sparx5-serdes: add constant for the number of CMU's

The number of CMU's differ for Sparx5 and lan969x, so add a new field:
cmu_max and use it throughout.

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-3-d695bcb57b84@microchip.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/microchip/sparx5_serdes.c
drivers/phy/microchip/sparx5_serdes.h