diff options
author | Hanjun Guo <hanjun.guo@linaro.org> | 2013-11-15 18:15:02 +0800 |
---|---|---|
committer | Graeme Gregory <graeme.gregory@linaro.org> | 2013-11-18 14:03:09 +0000 |
commit | b1e720081584fd2f7d1f4cf970e69c9e80f5d785 (patch) | |
tree | 312c3a65ea41ac8784e0c0514459698f799d8e0e | |
parent | 14d534162085d1f04ea39e163a4be548423fe171 (diff) |
Foundation 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/foundation-v8.acpi/gtdt.asl | 35 |
1 files changed, 23 insertions, 12 deletions
diff --git a/platforms/foundation-v8.acpi/gtdt.asl b/platforms/foundation-v8.acpi/gtdt.asl index 2563d70..9c67f31 100644 --- a/platforms/foundation-v8.acpi/gtdt.asl +++ b/platforms/foundation-v8.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 Foundation 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 |