imx: ventana: add support for GW5901/GW5902
[pandora-u-boot.git] / board / gateworks / gw_ventana / eeprom.c
index f0ae820..ee22732 100644 (file)
@@ -97,10 +97,24 @@ read_eeprom(int bus, struct ventana_board_info *info)
                        type = GW560x;
                break;
        case '9':
-               if (info->model[4] == '0' && info->model[5] == '3')
+               if (info->model[4] == '0' && info->model[5] == '1')
+                       type = GW5901;
+               else if (info->model[4] == '0' && info->model[5] == '2')
+                       type = GW5902;
+               else if (info->model[4] == '0' && info->model[5] == '3')
                        type = GW5903;
-               if (info->model[4] == '0' && info->model[5] == '4')
+               else if (info->model[4] == '0' && info->model[5] == '4')
                        type = GW5904;
+               else if (info->model[4] == '0' && info->model[5] == '5')
+                       type = GW5905;
+               else if (info->model[4] == '0' && info->model[5] == '6')
+                       type = GW5906;
+               else if (info->model[4] == '0' && info->model[5] == '7')
+                       type = GW5907;
+               else if (info->model[4] == '0' && info->model[5] == '8')
+                       type = GW5908;
+               else if (info->model[4] == '0' && info->model[5] == '9')
+                       type = GW5909;
                break;
        }
        return type;