summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSanjeev Premi <premi@ti.com>2009-04-27 21:27:54 +0530
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2009-04-29 21:11:49 +0200
commitcba0b778dd5f1ea32959b6825c7f0a31501a99d5 (patch)
treee669eb53350b92adef4aa44e4b1c262d74246ee1 /include
parent90006e9b33bcdbf241b0295d186e3634137907a9 (diff)
downloadu-boot-imx-cba0b778dd5f1ea32959b6825c7f0a31501a99d5.zip
u-boot-imx-cba0b778dd5f1ea32959b6825c7f0a31501a99d5.tar.gz
u-boot-imx-cba0b778dd5f1ea32959b6825c7f0a31501a99d5.tar.bz2
OMAP3: Print correct silicon revision
The function display_board_info() displays incorrect silicon revision - based on the return value from function get_cpu_rev(). This patch fixes the problem. Signed-off-by: Sanjeev Premi <premi@ti.com>
Diffstat (limited to 'include')
-rw-r--r--include/asm-arm/arch-omap3/omap3.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/include/asm-arm/arch-omap3/omap3.h b/include/asm-arm/arch-omap3/omap3.h
index d0d2737..7c11019 100644
--- a/include/asm-arm/arch-omap3/omap3.h
+++ b/include/asm-arm/arch-omap3/omap3.h
@@ -167,12 +167,16 @@ typedef struct gpio {
* 343x real hardware:
* ES1 = rev 0
*
- * 343x code defines:
- * ES1 = 0+1 = 1
- * ES1 = 1+1 = 1
+ * ES2 onwards, the value maps to contents of IDCODE register [31:28].
*/
-#define CPU_3430_ES1 1
-#define CPU_3430_ES2 2
+#define CPU_3XX_ES10 0
+#define CPU_3XX_ES20 1
+#define CPU_3XX_ES21 2
+#define CPU_3XX_ES30 3
+#define CPU_3XX_ES31 4
+#define CPU_3XX_MAX_REV (CPU_3XX_ES31 + 1)
+
+#define CPU_3XX_ID_SHIFT 28
#define WIDTH_8BIT 0x0000
#define WIDTH_16BIT 0x1000 /* bit pos for 16 bit in gpmc */