aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaruch Siach2020-01-20 14:20:14 +0200
committerStefan Roese2020-01-21 15:56:15 +0100
commit5e9838450ac95a937e6c77cbbdfcbf0ac50879e1 (patch)
tree28fced43cfe6f138a6db9035020d51488f7ea22a
parent867572f09ebe6349937b9614f1863a9111aa8f8e (diff)
ARM: mvebu: clearfog: add Clearfog GTR support
Select the serdes configuration table based on the platform identity read from EEPROM TLV data. Clearfog GTR needs a slightly different serdes configuration. Reviewed-by: Stefan Roese <sr@denx.de> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
-rw-r--r--board/solidrun/clearfog/clearfog.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/board/solidrun/clearfog/clearfog.c b/board/solidrun/clearfog/clearfog.c
index e178b06cd34..3bc9ce0839a 100644
--- a/board/solidrun/clearfog/clearfog.c
+++ b/board/solidrun/clearfog/clearfog.c
@@ -53,6 +53,14 @@ static struct serdes_map board_serdes_map[] = {
int hws_board_topology_load(struct serdes_map **serdes_map_array, u8 *count)
{
+ cf_read_tlv_data();
+
+ 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;
+ board_serdes_map[0].serdes_mode = PEX_ROOT_COMPLEX_X1;
+ }
+
*serdes_map_array = board_serdes_map;
*count = ARRAY_SIZE(board_serdes_map);
return 0;