summaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/include/plat/board.h
diff options
context:
space:
mode:
authorAjay Kumar Gupta <ajay.gupta@ti.com>2009-11-22 10:11:27 -0800
committerTony Lindgren <tony@atomide.com>2009-11-22 10:24:33 -0800
commitdb408023b85644e1bee80d4004aff1ff188032e9 (patch)
treebed99e2c03d4b137082e58b76fb0528fe75cff8a /arch/arm/plat-omap/include/plat/board.h
parent50a1f7bfea7ba9330f984ecb7d35aeb93d326cc3 (diff)
downloadblackbird-op-linux-db408023b85644e1bee80d4004aff1ff188032e9.tar.gz
blackbird-op-linux-db408023b85644e1bee80d4004aff1ff188032e9.zip
omap3evm: Add board revision function
Added function to differentiate between the OMAP3EVM revisions. The chip-id of the ethernet PHY is being used for this purpose. Rev A to D : 0x01150000 Rev >= E : 0x92200000 Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com> Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com> Signed-off-by: Sanjeev Premi <premi@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-omap/include/plat/board.h')
-rw-r--r--arch/arm/plat-omap/include/plat/board.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/include/plat/board.h b/arch/arm/plat-omap/include/plat/board.h
index c4fc69f09796..abb17b604f82 100644
--- a/arch/arm/plat-omap/include/plat/board.h
+++ b/arch/arm/plat-omap/include/plat/board.h
@@ -14,6 +14,18 @@
#include <plat/gpio-switch.h>
+/*
+ * OMAP35x EVM revision
+ * Run time detection of EVM revision is done by reading Ethernet
+ * PHY ID -
+ * GEN_1 = 0x01150000
+ * GEN_2 = 0x92200000
+ */
+enum {
+ OMAP3EVM_BOARD_GEN_1 = 0, /* EVM Rev between A - D */
+ OMAP3EVM_BOARD_GEN_2, /* EVM Rev >= Rev E */
+};
+
/* Different peripheral ids */
#define OMAP_TAG_CLOCK 0x4f01
#define OMAP_TAG_LCD 0x4f05
@@ -157,4 +169,10 @@ extern int omap_board_config_size;
/* for TI reference platforms sharing the same debug card */
extern int debug_card_init(u32 addr, unsigned gpio);
+/* OMAP3EVM revision */
+#if defined(CONFIG_MACH_OMAP3EVM)
+u8 get_omap3_evm_rev(void);
+#else
+#define get_omap3_evm_rev() (-EINVAL)
+#endif
#endif
OpenPOWER on IntegriCloud