diff options
author | Ajay Kumar Gupta <ajay.gupta@ti.com> | 2009-11-22 13:11:27 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2009-11-22 13:24:33 -0500 |
commit | db408023b85644e1bee80d4004aff1ff188032e9 (patch) | |
tree | bed99e2c03d4b137082e58b76fb0528fe75cff8a /arch/arm/plat-omap | |
parent | 50a1f7bfea7ba9330f984ecb7d35aeb93d326cc3 (diff) |
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')
-rw-r--r-- | arch/arm/plat-omap/include/plat/board.h | 18 |
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 @@ | |||
14 | 14 | ||
15 | #include <plat/gpio-switch.h> | 15 | #include <plat/gpio-switch.h> |
16 | 16 | ||
17 | /* | ||
18 | * OMAP35x EVM revision | ||
19 | * Run time detection of EVM revision is done by reading Ethernet | ||
20 | * PHY ID - | ||
21 | * GEN_1 = 0x01150000 | ||
22 | * GEN_2 = 0x92200000 | ||
23 | */ | ||
24 | enum { | ||
25 | OMAP3EVM_BOARD_GEN_1 = 0, /* EVM Rev between A - D */ | ||
26 | OMAP3EVM_BOARD_GEN_2, /* EVM Rev >= Rev E */ | ||
27 | }; | ||
28 | |||
17 | /* Different peripheral ids */ | 29 | /* Different peripheral ids */ |
18 | #define OMAP_TAG_CLOCK 0x4f01 | 30 | #define OMAP_TAG_CLOCK 0x4f01 |
19 | #define OMAP_TAG_LCD 0x4f05 | 31 | #define OMAP_TAG_LCD 0x4f05 |
@@ -157,4 +169,10 @@ extern int omap_board_config_size; | |||
157 | /* for TI reference platforms sharing the same debug card */ | 169 | /* for TI reference platforms sharing the same debug card */ |
158 | extern int debug_card_init(u32 addr, unsigned gpio); | 170 | extern int debug_card_init(u32 addr, unsigned gpio); |
159 | 171 | ||
172 | /* OMAP3EVM revision */ | ||
173 | #if defined(CONFIG_MACH_OMAP3EVM) | ||
174 | u8 get_omap3_evm_rev(void); | ||
175 | #else | ||
176 | #define get_omap3_evm_rev() (-EINVAL) | ||
177 | #endif | ||
160 | #endif | 178 | #endif |