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 4cd30d8
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 @@ -88,6 +88,11 @@ int hws_board_topology_load(struct serdes_map **serdes_map_array, u8 *count)
board_serdes_map[2].swap_rx = 1;
}

if (IS_ENABLED(CONFIG_TARGET_CLEARFOG_BASE)) {
board_serdes_map[4].serdes_type = USB3_HOST0;
board_serdes_map[4].serdes_mode = SERDES_DEFAULT_MODE;
}

/* Apply runtime detection changes */
if (sr_product_is(&cf_tlv_data, "Clearfog GTR")) {
if (IS_ENABLED(CONFIG_CLEARFOG_GTR_SERDES0_SATA)) {
Expand Down

0 comments on commit 4cd30d8

Please sign in to comment.