imx: ventana: add support for GW5905
[platform/kernel/u-boot.git] / board / gateworks / gw_ventana / eeprom.c
index a435dd9..13ccf2b 100644 (file)
@@ -1,8 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (C) 2014 Gateworks Corporation
  * Author: Tim Harvey <tharvey@gateworks.com>
- *
- * SPDX-License-Identifier: GPL-2.0+
  */
 
 #include <common.h>
@@ -100,8 +99,10 @@ read_eeprom(int bus, struct ventana_board_info *info)
        case '9':
                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;
                break;
        }
        return type;