diff options
author | Josua Mayer | 2024-01-12 14:35:11 +0100 |
---|---|---|
committer | Stefan Roese | 2024-01-22 12:47:45 +0100 |
commit | bb6e89048ceaf26a4d775750715e3279dbd73d07 (patch) | |
tree | fe5fb100725201270922cc1da5cc314d7b25428b | |
parent | 26c7de353f3d6fea1f2cc93764a6db1a9191b20f (diff) |
board: solidrun: clearfog: fix serdes 1 / eth2 speed for clearfog gtr
Clearfog GTR connects eth2 / serdes 1 to a 2.5Gbps capable ethernet
switch port. Linux already configures a fixed-link at speed 2500 from
device-tree.
Upgrade serdes 1 rate to 3.125Gbps to support a 2.5Gbps link.
Additionally add comments documenting each serdes' function of clearfog
gtr, which are shared with clearfog pro.
Signed-off-by: Josua Mayer <josua@solid-run.com>
-rw-r--r-- | board/solidrun/clearfog/clearfog.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/board/solidrun/clearfog/clearfog.c b/board/solidrun/clearfog/clearfog.c index 51c5be518a6..6977db0a9e2 100644 --- a/board/solidrun/clearfog/clearfog.c +++ b/board/solidrun/clearfog/clearfog.c @@ -98,6 +98,14 @@ int hws_board_topology_load(struct serdes_map **serdes_map_array, u8 *count) board_serdes_map[0].serdes_speed = SERDES_SPEED_5_GBPS; board_serdes_map[0].serdes_mode = PEX_ROOT_COMPLEX_X1; } + /* serdes 1 is 2.5Gbps fixed link to ethernet switch */ + board_serdes_map[1].serdes_type = SGMII1; + board_serdes_map[1].serdes_speed = SERDES_SPEED_3_125_GBPS; + board_serdes_map[1].serdes_mode = SERDES_DEFAULT_MODE; + /* serdes 2 is pci (like clearfog pro) */ + /* serdes 3 is usb-3 (like clearfog pro) */ + /* serdes 4 is pci (like clearfog pro) */ + /* serdes 5 is sfp connector (like clearfog pro) */ } else if (sr_product_is(&cf_tlv_data, "Clearfog Pro")) { /* handle recognized product as noop, no adjustment required */ } else if (sr_product_is(&cf_tlv_data, "Clearfog Base")) { |