aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-arm
diff options
context:
space:
mode:
authorChen Baozi <baozich@gmail.com>2013-08-13 19:14:26 +0800
committerIan Campbell <ian.campbell@citrix.com>2013-08-22 13:26:42 +0100
commit7f2b22e9b3975650f81aa6c6d82bc716a3331fc7 (patch)
tree821cf46d2d2768f63094a9c48cf80f2045c30afd /xen/include/asm-arm
parent5f99725ce1f53c21aec71cb4de7f387136279857 (diff)
downloadxen-7f2b22e9b3975650f81aa6c6d82bc716a3331fc7.tar.gz
xen-7f2b22e9b3975650f81aa6c6d82bc716a3331fc7.tar.bz2
xen-7f2b22e9b3975650f81aa6c6d82bc716a3331fc7.zip
xen/arm: Platform recognition and initialize arch_timer for the OMAP5
Signed-off-by: Chen Baozi <baozich@gmail.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'xen/include/asm-arm')
-rw-r--r--xen/include/asm-arm/platforms/omap5.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/xen/include/asm-arm/platforms/omap5.h b/xen/include/asm-arm/platforms/omap5.h
new file mode 100644
index 0000000000..092f340fed
--- /dev/null
+++ b/xen/include/asm-arm/platforms/omap5.h
@@ -0,0 +1,25 @@
+#ifndef __ASM_ARM_PLATFORMS_OMAP5_H
+#define __ASM_ASM_PLATFORMS_OMAP5_H
+
+#define REALTIME_COUNTER_BASE 0x48243200
+#define INCREMENTER_NUMERATOR_OFFSET 0x10
+#define INCREMENTER_DENUMERATOR_RELOAD_OFFSET 0x14
+#define NUMERATOR_DENUMERATOR_MASK 0xfffff000
+#define PRM_FRAC_INCREMENTER_DENUMERATOR_RELOAD 0x00010000
+
+#define OMAP5_L4_WKUP 0x4AE00000
+#define OMAP5_PRM_BASE (OMAP5_L4_WKUP + 0x6000)
+#define OMAP5_CKGEN_PRM_BASE (OMAP5_PRM_BASE + 0x100)
+#define OMAP5_CM_CLKSEL_SYS 0x10
+#define SYS_CLKSEL_MASK 0xfffffff8
+
+#endif /* __ASM_ARM_PLATFORMS_OMAP5_H */
+
+/*
+ * Local variables:
+ * mode: C
+ * c-file-style: "BSD"
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ */