aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/include/plat/control.h
diff options
context:
space:
mode:
authorSanjeev Premi <premi@ti.com>2009-11-22 13:10:53 -0500
committerTony Lindgren <tony@atomide.com>2009-11-22 13:24:32 -0500
commit8384ce071365244332ea05c81112bfffcf48be87 (patch)
tree5a6f076c6cef8d526b4429e17a64fd73dd63132c /arch/arm/plat-omap/include/plat/control.h
parent45f780a06153544ab84fd1da3a8b28c07f61da1d (diff)
omap3: Runtime detection of Si features
The OMAP35x family has multiple variants differing in the HW features. This patch detects these features at runtime and prints information during the boot. Since most of the code seemed repetitive, macros have been used for readability. 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/control.h')
-rw-r--r--arch/arm/plat-omap/include/plat/control.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/include/plat/control.h b/arch/arm/plat-omap/include/plat/control.h
index 8237cb9e74f..79985e497c4 100644
--- a/arch/arm/plat-omap/include/plat/control.h
+++ b/arch/arm/plat-omap/include/plat/control.h
@@ -254,6 +254,40 @@
254#define OMAP343X_SCRATCHPAD (OMAP343X_CTRL_BASE + 0x910) 254#define OMAP343X_SCRATCHPAD (OMAP343X_CTRL_BASE + 0x910)
255#define OMAP343X_SCRATCHPAD_ROM_OFFSET 0x19C 255#define OMAP343X_SCRATCHPAD_ROM_OFFSET 0x19C
256 256
257/*
258 * CONTROL OMAP STATUS register to identify OMAP3 features
259 */
260#define OMAP3_CONTROL_OMAP_STATUS 0x044c
261
262#define OMAP3_SGX_SHIFT 13
263#define OMAP3_SGX_MASK (3 << OMAP3_SGX_SHIFT)
264#define FEAT_SGX_FULL 0
265#define FEAT_SGX_HALF 1
266#define FEAT_SGX_NONE 2
267
268#define OMAP3_IVA_SHIFT 12
269#define OMAP3_IVA_MASK (1 << OMAP3_SGX_SHIFT)
270#define FEAT_IVA 0
271#define FEAT_IVA_NONE 1
272
273#define OMAP3_L2CACHE_SHIFT 10
274#define OMAP3_L2CACHE_MASK (3 << OMAP3_L2CACHE_SHIFT)
275#define FEAT_L2CACHE_NONE 0
276#define FEAT_L2CACHE_64KB 1
277#define FEAT_L2CACHE_128KB 2
278#define FEAT_L2CACHE_256KB 3
279
280#define OMAP3_ISP_SHIFT 5
281#define OMAP3_ISP_MASK (1<< OMAP3_ISP_SHIFT)
282#define FEAT_ISP 0
283#define FEAT_ISP_NONE 1
284
285#define OMAP3_NEON_SHIFT 4
286#define OMAP3_NEON_MASK (1<< OMAP3_NEON_SHIFT)
287#define FEAT_NEON 0
288#define FEAT_NEON_NONE 1
289
290
257#ifndef __ASSEMBLY__ 291#ifndef __ASSEMBLY__
258#if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \ 292#if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \
259 defined(CONFIG_ARCH_OMAP4) 293 defined(CONFIG_ARCH_OMAP4)