blob: b554d254e32ae03dc95c3d656094f438d6b675d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
From ad1a2c047554deae2e1608d025c4f6891cf8f116 Mon Sep 17 00:00:00 2001
From: Steve Sakoman <steve@sakoman.com>
Date: Fri, 26 Feb 2010 12:40:26 -0800
Subject: [PATCH 12/37] OMAP3: Overo: allow expansion boards with any vendor ID
---
board/overo/overo.c | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/board/overo/overo.c b/board/overo/overo.c
index f6093d2..ec186ec 100644
--- a/board/overo/overo.c
+++ b/board/overo/overo.c
@@ -63,8 +63,7 @@ static struct {
#define GUMSTIX_CHESTNUT43 0x06000200
#define GUMSTIX_PINTO 0x07000200
-#define GUMSTIX_NO_EEPROM 0xfffffffe
-#define GUMSTIX_UNKNOWN 0xffffffff
+#define GUMSTIX_NO_EEPROM 0xffffffff
#if defined(CONFIG_CMD_NET)
static void setup_net_chip(void);
@@ -174,10 +173,7 @@ unsigned int get_expansion_id(void)
i2c_read(EXPANSION_EEPROM_I2C_ADDRESS, 0, 1, (u8 *)&expansion_config,
sizeof(expansion_config));
- if ( (expansion_config.device_vendor & 0xffff) != GUMSTIX_VENDORID )
- return GUMSTIX_UNKNOWN;
- else
- return expansion_config.device_vendor;
+ return expansion_config.device_vendor;
}
@@ -245,7 +241,7 @@ int misc_init_r(void)
case GUMSTIX_NO_EEPROM:
printf("No EEPROM on expansion board\n");
break;
- case GUMSTIX_UNKNOWN:
+ default:
printf("Unrecognized expansion board\n");
}
--
1.6.6.1
|