Skip to content

Commit

Permalink
Add board type enums
Browse files Browse the repository at this point in the history
  • Loading branch information
pjanevskiTT committed Nov 8, 2024
1 parent 0cad2b9 commit 817ace6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
9 changes: 6 additions & 3 deletions device/tt_cluster_descriptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -573,10 +573,13 @@ void tt_ClusterDescriptor::load_chips_from_connectivity_descriptor(YAML::Node &y
board_type = BoardType::N300;
} else if (chip_board_type.second == "GALAXY") {
board_type = BoardType::GALAXY;
} else if (chip_board_type.second == "e150") {
board_type = BoardType::E150;
}
else if (chip_board_type.second == "p150A") {
board_type = BoardType::P150A;
} else {
if (chip_board_type.second != "e150" && chip_board_type.second != "p150A") {
log_warning(LogSiliconDriver, "Unknown board type for chip {}. This might happen because chip is running old firmware. Defaulting to DEFAULT", chip);
}
log_warning(LogSiliconDriver, "Unknown board type for chip {}. This might happen because chip is running old firmware. Defaulting to DEFAULT", chip);
board_type = BoardType::DEFAULT;
}
desc.chip_board_type.insert({chip, board_type});
Expand Down
6 changes: 4 additions & 2 deletions device/tt_cluster_descriptor.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ namespace YAML { class Node; }
enum BoardType : uint32_t {
N150 = 0,
N300 = 1,
GALAXY = 2,
DEFAULT = 3,
E150 = 2,
P150A = 3,
GALAXY = 4,
DEFAULT = 5,
};

class tt_ClusterDescriptor {
Expand Down

0 comments on commit 817ace6

Please sign in to comment.