Commit 9369a1164441643f2728efa7ce7c7578cfba06ce

Authored by Eric Lee
1 parent 98d6699ee4
Exists in v2016.05-smarct4x

Minor bug fix

Showing 1 changed file with 8 additions and 6 deletions Side-by-side Diff

board/embedian/smarct437x/board.c
... ... @@ -1144,17 +1144,19 @@
1144 1144 #ifdef CONFIG_SPL_LOAD_FIT
1145 1145 int board_fit_config_name_match(const char *name)
1146 1146 {
1147   - if (board_is_gpevm() && !strcmp(name, "am437x-gp-evm"))
  1147 + if (board_is_gpevm(&header) && !strcmp(header->name, "AM43__GP"))
1148 1148 return 0;
1149   - else if (board_is_sk() && !strcmp(name, "am437x-sk-evm"))
  1149 + else if (board_is_sk(&header) && !strcmp(header->name, "AM43__SK"))
1150 1150 return 0;
1151   - else if (board_is_eposevm() && !strcmp(name, "am43x-epos-evm"))
  1151 + else if (board_is_eposevm(&header) && !strcmp(header->name, "AM43EPOS"))
1152 1152 return 0;
1153   - else if (board_is_idk() && !strcmp(name, "am437x-idk-evm"))
  1153 + else if (board_is_idk(&header) && !strcmp(header->name, "AM43_IDK"))
1154 1154 return 0;
1155   - else if (board_is_smarc_t437x_800() && !strcmp(name, "am437x-smarct437x"))
  1155 + else if (board_is_hsevm(&header) && !strcmp(header->name, "AM43XXHS"))
1156 1156 return 0;
1157   - else if (board_is_smarc_t437x_01g() && !strcmp(name, "am437x-smarct437x"))
  1157 + else if (board_is_smarc_t437x_800(&header) && !strcmp(header->name, "SMCT4X80"))
  1158 + return 0;
  1159 + else if (board_is_smarc_t437x_01g(&header) && !strcmp(header->name, "SMCT4X1G"))
1158 1160 return 0;
1159 1161 else
1160 1162 return -1;