summaryrefslogtreecommitdiff
path: root/platforms
diff options
context:
space:
mode:
authorHanjun Guo <hanjun.guo@linaro.org>2013-11-13 14:26:03 +0800
committerGraeme Gregory <graeme.gregory@linaro.org>2013-11-18 12:06:34 +0000
commit4a52df2483e3ff9029554e5ee9d4b669e3e22821 (patch)
treea446ae68ab5c74d67b12b36cd85be854a258d5d8 /platforms
parent41e21b66d6cfe85533f2cd2ac76af69906b8957a (diff)
ARM64 / ASL: Fix interrupt type and level flag for device interrupts
For gic bindings, The 3rd cell of interrupts is the flags,encoded as follows: bits[3:0] trigger type and level flags. 1 = low-to-high edge triggered 2 = high-to-low edge triggered 4 = active high level-sensitive 8 = active low level-sensitive bits[15:8] PPI interrupt cpu mask. Please refer to Documentation/devicetree/bindings/arm/gic.txt for detailed information. In Foundation model and RTSM model's device tree, the 3rd cell of interrupts of all devices is 4, so we should use active high level-sensitive in the DSDT table too when we convert the device to ACPI. Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org> Acked-by: Al Stone <al.stone@linaro.org>
Diffstat (limited to 'platforms')
-rw-r--r--platforms/foundation-v8.acpi/dsdt.asl6
-rw-r--r--platforms/rtsm_ve-aemv8a.acpi/dsdt.asl4
2 files changed, 5 insertions, 5 deletions
diff --git a/platforms/foundation-v8.acpi/dsdt.asl b/platforms/foundation-v8.acpi/dsdt.asl
index cf365c9..8d07f53 100644
--- a/platforms/foundation-v8.acpi/dsdt.asl
+++ b/platforms/foundation-v8.acpi/dsdt.asl
@@ -246,7 +246,7 @@ DefinitionBlock (
Method (_CRS, 0x0, Serialized) {
Name (RBUF, ResourceTemplate () {
- Interrupt (ResourceConsumer, Edge, ActiveBoth, Exclusive, , , ) {92, 93, 94, 95}
+ Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive, , , ) {92, 93, 94, 95}
})
Return (RBUF)
}
@@ -315,7 +315,7 @@ DefinitionBlock (
Method (_CRS, 0x0, Serialized) {
Name (RBUF, ResourceTemplate () {
Memory32Fixed (ReadWrite, 0x1a000000, 0x00010000)
- Interrupt (ResourceConsumer, Edge, ActiveBoth, Exclusive, , , ) {0x2F}
+ Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive, , , ) {0x2F}
})
Return (RBUF)
}
@@ -382,7 +382,7 @@ DefinitionBlock (
Method (_CRS, 0x0, Serialized) {
Name (RBUF, ResourceTemplate() {
Memory32Fixed (ReadWrite, 0x1c130000, 0x1000)
- Interrupt (ResourceConsumer, Edge, ActiveBoth, Exclusive, , , ) {0x4A}
+ Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive, , , ) {0x4A}
})
Return (RBUF)
}
diff --git a/platforms/rtsm_ve-aemv8a.acpi/dsdt.asl b/platforms/rtsm_ve-aemv8a.acpi/dsdt.asl
index 0bcc94d..1d51323 100644
--- a/platforms/rtsm_ve-aemv8a.acpi/dsdt.asl
+++ b/platforms/rtsm_ve-aemv8a.acpi/dsdt.asl
@@ -246,7 +246,7 @@ DefinitionBlock (
Method (_CRS, 0x0, Serialized) {
Name (RBUF, ResourceTemplate () {
Memory32Fixed (ReadWrite, 0x1a000000, 0x00010000)
- Interrupt (ResourceConsumer, Edge, ActiveBoth, Exclusive, , , ) {0x2F}
+ Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive, , , ) {0x2F}
})
Return (RBUF)
}
@@ -258,7 +258,7 @@ DefinitionBlock (
Method (_CRS, 0x0, Serialized) {
Name (RBUF, ResourceTemplate () {
- Interrupt (ResourceConsumer, Edge, ActiveBoth, Exclusive, , , ) {92, 93, 94, 95}
+ Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive, , , ) {92, 93, 94, 95}
})
Return (RBUF)
}