summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaresh Bhat <naresh.bhat@linaro.org>2013-11-13 19:02:36 +0530
committerGraeme Gregory <graeme.gregory@linaro.org>2013-11-18 10:34:55 +0000
commit41e21b66d6cfe85533f2cd2ac76af69906b8957a (patch)
tree5d5e346c38cfa127fd0bd4fb3d4b0523149dfc6b
parent6f6e0f52cc197b3a783a77a8ecb51190abab2c24 (diff)
foundation-v8: Add clk changes
Add the clk changes for dsdt asl file of foundation-v8 model. Signed-off-by: Naresh Bhat <naresh.bhat@linaro.org> Acked-by: Al Stone <al.stone@linaro.org>
-rw-r--r--platforms/foundation-v8.acpi/dsdt.asl47
1 files changed, 47 insertions, 0 deletions
diff --git a/platforms/foundation-v8.acpi/dsdt.asl b/platforms/foundation-v8.acpi/dsdt.asl
index 0d323a5..cf365c9 100644
--- a/platforms/foundation-v8.acpi/dsdt.asl
+++ b/platforms/foundation-v8.acpi/dsdt.asl
@@ -390,10 +390,57 @@ DefinitionBlock (
} // End of FPGA
} // End SMB
+ Method (DTGP, 5, NotSerialized)
+ {
+ If (LEqual (Arg0, Buffer (0x10)
+ {
+ /* UUID: a706b112-bf0b-48d2-9fa3-95591a3c4c06 */
+ /* 0000 */ 0xa7, 0x06, 0xb1, 0x12, 0xbf, 0x0b, 0x48, 0xd2,
+ /* 0008 */ 0x9f, 0xa3, 0x95, 0x59, 0x1a, 0x3c, 0x4c, 0x06
+ }))
+ {
+ If (LEqual (Arg1, 0x01)) {
+ If (LEqual (Arg2, 0x00)) {
+ Store (Buffer (0x01)
+ {
+ 0x03
+ }, Arg4)
+ Return (0x01)
+ }
+
+ If (LEqual (Arg2, 0x01)) {
+ Return (0x01)
+ }
+ }
+ }
+
+ Store (Buffer (0x01)
+ {
+ 0x00
+ }, Arg4)
+
+ Return (0x00)
+ }
+
+
Device (AMBA) {
Name (_HID, "AMBA0000")
Name (_UID, 0)
+ /* Define 'apb_pclk' as a default clock source since it is
+ common with devices below */
+
+ Method(_DSM, 4, NotSerialized) {
+ Store (Package (2)
+ {
+ "clock-name", "apb_pclk \\_SB.SMB.CLK0",
+ }, Local0)
+
+ DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
+
+ Return (Local0)
+ }
+
Device (SER0) {
Name (_HID, "LINA000A")
Name (_ADR, 0x1c090000)