]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: solidrun: clearfog: fix serdes 1 / eth2 speed for clearfog gtr
authorJosua Mayer <josua@solid-run.com>
Fri, 12 Jan 2024 13:35:11 +0000 (14:35 +0100)
committerStefan Roese <sr@denx.de>
Mon, 22 Jan 2024 11:47:45 +0000 (12:47 +0100)
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>
board/solidrun/clearfog/clearfog.c

index 51c5be518a682f0101c7a8c81cc1c3c947696f16..6977db0a9e28b4a879ca1580a14f6eeb58ca20a3 100644 (file)
@@ -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")) {