From ad1a2c047554deae2e1608d025c4f6891cf8f116 Mon Sep 17 00:00:00 2001 From: Steve Sakoman 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