Skip to content

Commit

Permalink
Fix warning for grayskull boards
Browse files Browse the repository at this point in the history
  • Loading branch information
pjanevskiTT committed Dec 18, 2024
1 parent bfbb7e9 commit 9eb1b91
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
14 changes: 8 additions & 6 deletions device/api/umd/device/tt_cluster_descriptor.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ class Node;
}

enum BoardType : uint32_t {
N150 = 0,
N300 = 1,
E150 = 2,
P150A = 3,
GALAXY = 4,
UNKNOWN = 5,
E75 = 0,
E150 = 1,
E300 = 2,
N150 = 3,
N300 = 4,
P150A = 5,
GALAXY = 6,
UNKNOWN = 7,
};

class tt_ClusterDescriptor {
Expand Down
14 changes: 9 additions & 5 deletions device/tt_cluster_descriptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -737,16 +737,20 @@ void tt_ClusterDescriptor::load_chips_from_connectivity_descriptor(YAML::Node &y
for (const auto &chip_board_type : yaml["boardtype"].as<std::map<int, std::string>>()) {
auto &chip = chip_board_type.first;
BoardType board_type;
if (chip_board_type.second == "n150") {
if (chip_board_type.second == "e75") {
board_type = BoardType::E75;
} else if (chip_board_type.second == "e150") {
board_type = BoardType::E150;
} else if (chip_board_type.second == "e300") {
board_type = BoardType::E300;
} else if (chip_board_type.second == "n150") {
board_type = BoardType::N150;
} else if (chip_board_type.second == "n300") {
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 == "GALAXY") {
board_type = BoardType::GALAXY;
} else {
log_warning(
LogSiliconDriver,
Expand Down

0 comments on commit 9eb1b91

Please sign in to comment.