summaryrefslogtreecommitdiff
path: root/board/solidrun/clearfog/clearfog.c
diff options
context:
space:
mode:
authorJoel Johnson <mrjoel@lixil.net>2020-03-23 14:21:33 -0600
committerStefan Roese <sr@denx.de>2020-04-14 13:16:42 +0200
commit8a86308a87d32b289eff0b6f89de1dea466bae9b (patch)
treef6d27fb27af5fbbcb0d07dc32d6b362b05bd7a9f /board/solidrun/clearfog/clearfog.c
parent9f205d658da33bf2462baa1608aed996c48473af (diff)
arm: mvebu: clearfog: Add option for 2.5 Gbps SFP
While newer Linux kernels provide autoconfiguration of SFP, provide an option for setting in U-Boot Kconfig for use prior to booting. Signed-off-by: Joel Johnson <mrjoel@lixil.net> Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'board/solidrun/clearfog/clearfog.c')
-rw-r--r--board/solidrun/clearfog/clearfog.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/board/solidrun/clearfog/clearfog.c b/board/solidrun/clearfog/clearfog.c
index 11d3a7f877..8f3e5dc6a3 100644
--- a/board/solidrun/clearfog/clearfog.c
+++ b/board/solidrun/clearfog/clearfog.c
@@ -63,6 +63,11 @@ int hws_board_topology_load(struct serdes_map **serdes_map_array, u8 *count)
{
cf_read_tlv_data();
+ /* Apply build configuration options before runtime configuration */
+ if (IS_ENABLED(CONFIG_CLEARFOG_SFP_25GB))
+ board_serdes_map[5].serdes_speed = SERDES_SPEED_3_125_GBPS;
+
+ /* Apply runtime detection changes */
if (sr_product_is(&cf_tlv_data, "Clearfog GTR")) {
board_serdes_map[0].serdes_type = PEX0;
board_serdes_map[0].serdes_speed = SERDES_SPEED_5_GBPS;