Skip to content

Commit

Permalink
board: solidrun: clearfog: fix clearfog base m.2 usb-3.0
Browse files Browse the repository at this point in the history
Clearfog Base unlike Pro routes serdes 4 to an m.2 connector as usb-3.0
host.

Update serdes map accordingly when u-boot is explicitly built for
Clearfog Base.

Signed-off-by: Josua Mayer <josua@solid-run.com>
  • Loading branch information
Josua-SR committed Jul 16, 2024
1 parent 3c74de4 commit 4217014
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions board/solidrun/clearfog/clearfog.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,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_TARGET_CLEARFOG_BASE)) {
board_serdes_map[4].serdes_type = USB3_HOST0;
board_serdes_map[4].serdes_mode = SERDES_DEFAULT_MODE;
}

if (IS_ENABLED(CONFIG_CLEARFOG_SFP_25GB))
board_serdes_map[5].serdes_speed = SERDES_SPEED_3_125_GBPS;

Expand Down

0 comments on commit 4217014

Please sign in to comment.