summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/arch-omap3/omap3.h
diff options
context:
space:
mode:
authorSteve Sakoman <steve@sakoman.com>2010-08-17 14:39:34 -0700
committerSandeep Paulraj <s-paulraj@ti.com>2010-09-08 14:50:52 -0400
commitb2b9169f0bc860ac34d7828df8730744394d8f6e (patch)
treea267e19c62fbfc5794fd39da8d36c0b8952bef01 /arch/arm/include/asm/arch-omap3/omap3.h
parentba9a11e4ea27d43bfc3d9f1787117fe4826b3ce7 (diff)
downloadu-boot-b2b9169f0bc860ac34d7828df8730744394d8f6e.tar.gz
u-boot-b2b9169f0bc860ac34d7828df8730744394d8f6e.tar.xz
u-boot-b2b9169f0bc860ac34d7828df8730744394d8f6e.zip
ARMV7: OMAP3: Update CPU type detection for AM35XX/OMAP36XX/37XX
TI has added new processors to the OMAP3 family. This patch enhances the code in sysinfo.c to detect which family member is present. Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
Diffstat (limited to 'arch/arm/include/asm/arch-omap3/omap3.h')
-rw-r--r--arch/arm/include/asm/arch-omap3/omap3.h32
1 files changed, 31 insertions, 1 deletions
diff --git a/arch/arm/include/asm/arch-omap3/omap3.h b/arch/arm/include/asm/arch-omap3/omap3.h
index 12815f694f..3957c796f2 100644
--- a/arch/arm/include/asm/arch-omap3/omap3.h
+++ b/arch/arm/include/asm/arch-omap3/omap3.h
@@ -176,11 +176,41 @@ struct gpio {
#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_ES312 7
+#define CPU_3XX_MAX_REV 8
#define CPU_3XX_ID_SHIFT 28
#define WIDTH_8BIT 0x0000
#define WIDTH_16BIT 0x1000 /* bit pos for 16 bit in gpmc */
+/*
+ * Hawkeye values
+ */
+#define HAWKEYE_OMAP34XX 0xb7ae
+#define HAWKEYE_AM35XX 0xb868
+#define HAWKEYE_OMAP36XX 0xb891
+
+#define HAWKEYE_SHIFT 12
+
+/*
+ * Define CPU families
+ */
+#define CPU_OMAP34XX 0x3400 /* OMAP34xx/OMAP35 devices */
+#define CPU_AM35XX 0x3500 /* AM35xx devices */
+#define CPU_OMAP36XX 0x3600 /* OMAP36xx devices */
+
+/*
+ * Control status register values corresponding to cpu variants
+ */
+#define OMAP3503 0x5c00
+#define OMAP3515 0x1c00
+#define OMAP3525 0x4c00
+#define OMAP3530 0x0c00
+
+#define AM3505 0x5c00
+#define AM3517 0x1c00
+
+#define OMAP3730 0x0c00
+
#endif