summaryrefslogtreecommitdiff
path: root/board/ti/evm/evm.h
diff options
context:
space:
mode:
authorSanjeev Premi <premi@ti.com>2010-11-04 16:02:32 -0400
committerSandeep Paulraj <s-paulraj@ti.com>2010-11-04 16:02:32 -0400
commit76ee9a2c3ba0b642e61ad282386953fcdfc659c7 (patch)
treef9977f6d4a85db32f1fff4dc9e15178a4934d291 /board/ti/evm/evm.h
parent63f42400e50c7ebede2974b421db765324ad8c8e (diff)
omap3evm: Fix mechanism to identify board revision
Function omap3_evm_get_revision() - to identify the board revision was called at end of setup_net_chip(). Board revision can be ascertained only by identifying the Ethernet chipset - but combining setup operations with revision detection isn't a good idea. So, moved the function after call to setup_net_chip(). Function setup_net_chip() should be ideally be called only when CONFIG_CMD_NET is defined. But this leaves the board revision "undetected". This patch allows static definition of revision or default fallback to the latest revision. Signed-off-by: Sanjeev Premi <premi@ti.com> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
Diffstat (limited to 'board/ti/evm/evm.h')
-rw-r--r--board/ti/evm/evm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/ti/evm/evm.h b/board/ti/evm/evm.h
index e2581f6bf1..a76deb838c 100644
--- a/board/ti/evm/evm.h
+++ b/board/ti/evm/evm.h
@@ -47,7 +47,9 @@ enum {
u8 get_omap3_evm_rev(void);
+#if defined(CONFIG_CMD_NET)
static void setup_net_chip(void);
+#endif
/*
* IEN - Input Enable