diff options
author | Daniel Machon <daniel.machon@microchip.com> | 2024-09-09 17:14:47 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2024-10-22 00:02:03 +0530 |
commit | 6158a32b431bc93f35aff03c9889417a7643da9a (patch) | |
tree | c3a64ac0c2f065343be3ba3b28392b5010d12bb4 /drivers/phy/microchip/sparx5_serdes.h | |
parent | c8e4c8b7ea47cb9044c190e6148e994c8e04a34a (diff) |
phy: sparx5-serdes: add support for branching on chip type
In preparation for lan969x, add a way to branch out on code that is to
be executed on either Sparx5 or lan969x. Initially, this is required to
branch out when checking the SERDES types and SERDES speeds, since the
handling of these differ on the two platforms. This will also be used by
the lan969x driver introduced in a subsequent patch.
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-7-d695bcb57b84@microchip.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/phy/microchip/sparx5_serdes.h')
-rw-r--r-- | drivers/phy/microchip/sparx5_serdes.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/phy/microchip/sparx5_serdes.h b/drivers/phy/microchip/sparx5_serdes.h index 50900bf06c4c..1beaa3d05a5d 100644 --- a/drivers/phy/microchip/sparx5_serdes.h +++ b/drivers/phy/microchip/sparx5_serdes.h @@ -34,6 +34,10 @@ enum sparx5_10g28cmu_mode { SPX5_SD10G28_CMU_MAX, }; +enum sparx5_target { + SPX5_TARGET_SPARX5, +}; + struct sparx5_serdes_macro { struct sparx5_serdes_private *priv; u32 sidx; @@ -56,6 +60,7 @@ struct sparx5_serdes_ops { }; struct sparx5_serdes_match_data { + enum sparx5_target type; const struct sparx5_serdes_consts consts; const struct sparx5_serdes_ops ops; const struct sparx5_serdes_io_resource *iomap; |