Skip to content

Commit

Permalink
ARM: mvebu: clearfog: add Clearfog Base serdes configuration
Browse files Browse the repository at this point in the history
Clearfog Base carrier uses serdes lane #5 as USB host. Use EEPROM stored
device identification to configure the serdes accordingly when
available.

Reviewed-by: Stefan Roese <[email protected]>
Signed-off-by: Baruch Siach <[email protected]>
  • Loading branch information
baruchsiach authored and stroese committed Jan 21, 2020
1 parent 5e98384 commit 584a3d2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions board/solidrun/clearfog/clearfog.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ int hws_board_topology_load(struct serdes_map **serdes_map_array, u8 *count)
board_serdes_map[0].serdes_mode = PEX_ROOT_COMPLEX_X1;
}

if (sr_product_is(&cf_tlv_data, "Clearfog Base")) {
board_serdes_map[4].serdes_type = USB3_HOST0;
board_serdes_map[4].serdes_speed = SERDES_SPEED_5_GBPS;
board_serdes_map[4].serdes_mode = SERDES_DEFAULT_MODE;
}

*serdes_map_array = board_serdes_map;
*count = ARRAY_SIZE(board_serdes_map);
return 0;
Expand Down

0 comments on commit 584a3d2

Please sign in to comment.