Commit 066d1f527d1748bbdb2e3e46fd12f6f66ed8b09e

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

Fix minor bugs

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

board/embedian/smarct437x/board.c
... ... @@ -1144,13 +1144,17 @@
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() && !strcmp(am43xx_board_name, "AM43__GP"))
1148 1148 return 0;
1149   - else if (board_is_sk() && !strcmp(name, "am437x-sk-evm"))
  1149 + else if (board_is_sk() && !strcmp(am43xx_board_name, "AM43__SK"))
1150 1150 return 0;
1151   - else if (board_is_eposevm() && !strcmp(name, "am43x-epos-evm"))
  1151 + else if (board_is_eposevm() && !strcmp(am43xx_board_name,"AM43EPOS"))
1152 1152 return 0;
1153   - else if (board_is_idk() && !strcmp(name, "am437x-idk-evm"))
  1153 + else if (board_is_idk() && !strcmp(am43xx_board_name, "AM43_IDK"))
  1154 + return 0;
  1155 + else if (board_is_smarc_t437x_800() && !strcmp(am43xx_board_name, "SMCT4X80"))
  1156 + return 0;
  1157 + else if (board_is_smarc_t437x_01g() && !strcmp(am43xx_board_name, "SMCT4X1G"))
1154 1158 return 0;
1155 1159 else
1156 1160 return -1;