summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanjun Guo <hanjun.guo@linaro.org>2013-11-15 18:24:38 +0800
committerGraeme Gregory <graeme.gregory@linaro.org>2013-11-18 14:05:26 +0000
commitc00b66ca5620f9799e67ff3387a60b95dbf0f62c (patch)
tree35b83f336f87b3439c513ec6713ed19592d95c4b
parentb1e720081584fd2f7d1f4cf970e69c9e80f5d785 (diff)
RTSM model: Create GTDT table for arch timer
Create GTDT table to convert arch timer for early boot. Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org> Acked-by: Al Stone <al.stone@linaro.org>
-rw-r--r--platforms/rtsm_ve-aemv8a.acpi/gtdt.asl35
1 files changed, 23 insertions, 12 deletions
diff --git a/platforms/rtsm_ve-aemv8a.acpi/gtdt.asl b/platforms/rtsm_ve-aemv8a.acpi/gtdt.asl
index d336f6f..afaf9f4 100644
--- a/platforms/rtsm_ve-aemv8a.acpi/gtdt.asl
+++ b/platforms/rtsm_ve-aemv8a.acpi/gtdt.asl
@@ -1,5 +1,6 @@
/*
* Copyright (c) 2013, Al Stone <al.stone@linaro.org>
+ * Hanjun Guo <hanjun.guo@linaro.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -48,22 +49,32 @@
[0004] Flags (decoded below) : 00000001
Memory Present : 1
-[0004] Secure PL1 Interrupt : 00000000
-[0004] SPL1 Flags (decoded below) : 00000000
- Trigger Mode : 0
+/* In RTSM model's dts file, the last cell of interrupts
+ * is 0xff01, it means its cpu mask is FF, and trigger type
+ * and flag is 1 = low-to-high edge triggered.
+ *
+ * so in ACPI the Trigger Mode is 1 - Edge triggered, and
+ * Polarity is 0 - Active high as ACPI spec describled.
+ *
+ * using direct mapping for hwirqs, it means that we using
+ * ID [16, 31] for PPI, not [0, 15] used in FDT.
+ */
+[0004] Secure PL1 Interrupt : 0000001d
+[0004] SPL1 Flags (decoded below) : 00000001
+ Trigger Mode : 1
Polarity : 0
-[0004] Non-Secure PL1 Interrupt : 00000000
-[0004] NSPL1 Flags (decoded below) : 00000000
- Trigger Mode : 0
+[0004] Non-Secure PL1 Interrupt : 0000001e
+[0004] NSPL1 Flags (decoded below) : 00000001
+ Trigger Mode : 1
Polarity : 0
-[0004] Virtual Timer Interrupt : 00000000
-[0004] VT Flags (decoded below) : 00000000
- Trigger Mode : 0
+[0004] Virtual Timer Interrupt : 0000001b
+[0004] VT Flags (decoded below) : 00000001
+ Trigger Mode : 1
Polarity : 0
-[0004] Non-Secure PL2 Interrupt : 00000000
-[0004] NSPL2 Flags (decoded below) : 00000000
- Trigger Mode : 0
+[0004] Non-Secure PL2 Interrupt : 0000001a
+[0004] NSPL2 Flags (decoded below) : 00000001
+ Trigger Mode : 1
Polarity : 0