summaryrefslogtreecommitdiff
path: root/board/gateworks/gw_ventana/eeprom.c
diff options
context:
space:
mode:
authorTim Harvey <tharvey@gateworks.com>2017-03-17 07:30:38 -0700
committerStefano Babic <sbabic@denx.de>2017-03-20 19:10:22 +0100
commit8d1a6ff825a42d28fc4031d4f111b05b6898d7e8 (patch)
treed616f14aae815d08b7080ceeaa8fc7af534e0349 /board/gateworks/gw_ventana/eeprom.c
parentb4f4b0f54bcc4e2c6a97e0bc9b3a3a1aea3cb41c (diff)
imx: ventana: add GW5904 support
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Diffstat (limited to 'board/gateworks/gw_ventana/eeprom.c')
-rw-r--r--board/gateworks/gw_ventana/eeprom.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/board/gateworks/gw_ventana/eeprom.c b/board/gateworks/gw_ventana/eeprom.c
index 1382e5debe..9a1033ae10 100644
--- a/board/gateworks/gw_ventana/eeprom.c
+++ b/board/gateworks/gw_ventana/eeprom.c
@@ -64,6 +64,7 @@ read_eeprom(int bus, struct ventana_board_info *info)
if (strncasecmp((const char *)info->model, "GW5400-A", 8) == 0)
baseboard = '0';
+ type = GW_UNKNOWN;
switch (baseboard) {
case '0': /* original GW5400-A prototype */
type = GW54proto;
@@ -91,10 +92,10 @@ read_eeprom(int bus, struct ventana_board_info *info)
type = GW553x;
break;
}
- /* fall through */
- default:
- printf("EEPROM: Unknown model in EEPROM: %s\n", info->model);
- type = GW_UNKNOWN;
+ break;
+ case '9':
+ if (info->model[4] == '0' && info->model[5] == '4')
+ type = GW5904;
break;
}
return type;