Commit fcddfe47d16d5e2053a09fb2e79a9712fb252b68
1 parent
9369a11644
Exists in
v2016.05-smarct4x
Fix minor bugs
Showing 1 changed file with 4 additions and 10 deletions Side-by-side Diff
board/embedian/smarct437x/board.c
... | ... | @@ -1144,19 +1144,13 @@ |
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(&header) && !strcmp(header->name, "AM43__GP")) | |
1147 | + if (board_is_gpevm() && !strcmp(name, "am437x-gp-evm")) | |
1148 | 1148 | return 0; |
1149 | - else if (board_is_sk(&header) && !strcmp(header->name, "AM43__SK")) | |
1149 | + else if (board_is_sk() && !strcmp(name, "am437x-sk-evm")) | |
1150 | 1150 | return 0; |
1151 | - else if (board_is_eposevm(&header) && !strcmp(header->name, "AM43EPOS")) | |
1151 | + else if (board_is_eposevm() && !strcmp(name, "am43x-epos-evm")) | |
1152 | 1152 | return 0; |
1153 | - else if (board_is_idk(&header) && !strcmp(header->name, "AM43_IDK")) | |
1154 | - return 0; | |
1155 | - else if (board_is_hsevm(&header) && !strcmp(header->name, "AM43XXHS")) | |
1156 | - return 0; | |
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")) | |
1153 | + else if (board_is_idk() && !strcmp(name, "am437x-idk-evm")) | |
1160 | 1154 | return 0; |
1161 | 1155 | else |
1162 | 1156 | return -1; |