summaryrefslogtreecommitdiff
path: root/board/solidrun
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2020-01-20 14:20:15 +0200
committerStefan Roese <sr@denx.de>2020-01-21 15:56:15 +0100
commit584a3d2622e9107d09434b05df8b6c50e25fe73f (patch)
treeb6432a9d63c6d99540f87e402b23f4a62a5d1a1e /board/solidrun
parent5e9838450ac95a937e6c77cbbdfcbf0ac50879e1 (diff)
ARM: mvebu: clearfog: add Clearfog Base serdes configuration
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 <sr@denx.de> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Diffstat (limited to 'board/solidrun')
-rw-r--r--board/solidrun/clearfog/clearfog.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/board/solidrun/clearfog/clearfog.c b/board/solidrun/clearfog/clearfog.c
index 3bc9ce0839..e268ef55a2 100644
--- a/board/solidrun/clearfog/clearfog.c
+++ b/board/solidrun/clearfog/clearfog.c
@@ -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;