]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/gateworks/gw_ventana/eeprom.c
imx: ventana: Add support for GW551x
[people/ms/u-boot.git] / board / gateworks / gw_ventana / eeprom.c
index ab3bab847a52d4c92094db7e7d6beb8daf8cc9f9..ba159696b43cf51e85bdd71414eb1faa61fc2753 100644 (file)
@@ -81,8 +81,14 @@ read_eeprom(int bus, struct ventana_board_info *info)
                type = GW54xx;
                break;
        case '5':
-               type = GW552x;
-               break;
+               if (info->model[4] == '1') {
+                       type = GW551x;
+                       break;
+               } else if (info->model[4] == '2') {
+                       type = GW552x;
+                       break;
+               }
+               /* fall through */
        default:
                printf("EEPROM: Unknown model in EEPROM: %s\n", info->model);
                type = GW_UNKNOWN;