summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraeme Gregory <graeme.gregory@linaro.org>2014-04-29 12:17:10 +0100
committerGraeme Gregory <graeme.gregory@linaro.org>2014-04-29 12:17:10 +0100
commit9a9f89e962ced83e2995d6421ebc760f122f734b (patch)
treed9acfb19f3e11c97c32102fce282a7c72b09976a
parenta51f26a30b437b55167bb6ae9f0f3f0cda71cdc4 (diff)
DSDT: remove clocks
This patch is prototype and goes with the equivalent patch for pl011 uart. It just just to show the new structure of DSDT if we continue with this way of doing clocks. Signed-off-by: Graeme Gregory <graeme.gregory@linaro.org>
-rw-r--r--platforms/rtsm_ve-aemv8a.acpi/dsdt.asl110
1 files changed, 17 insertions, 93 deletions
diff --git a/platforms/rtsm_ve-aemv8a.acpi/dsdt.asl b/platforms/rtsm_ve-aemv8a.acpi/dsdt.asl
index 43ac170..3222e2f 100644
--- a/platforms/rtsm_ve-aemv8a.acpi/dsdt.asl
+++ b/platforms/rtsm_ve-aemv8a.acpi/dsdt.asl
@@ -347,33 +347,6 @@ DefinitionBlock (
}
}
- Device (CLK0) {
- Name (_HID, "LNRO0008")
- Name (_UID, 0)
-
- Method (FREQ, 0x0, NotSerialized) {
- Return (24000000)
- }
- }
-
- Device (CLK1) {
- Name (_HID, "LNRO0008")
- Name (_UID, 1)
-
- Method (FREQ, 0x0, NotSerialized) {
- Return (1000000)
- }
- }
-
- Device (CLK2) {
- Name (_HID, "LNRO0008")
- Name (_UID, 2)
-
- Method (FREQ, 0x0, NotSerialized) {
- Return (32768)
- }
- }
-
Device (FPGA) {
Name (_HID, "ACPI0004")
Name (_UID, 0)
@@ -494,20 +467,6 @@ DefinitionBlock (
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 (SCT0) {
Name (_HID, "LNRO000C")
Name (_UID, 0)
@@ -518,17 +477,6 @@ DefinitionBlock (
})
Return (RBUF)
}
- Method(_DSM, 4, Serialized) {
- Store (Package (4)
- {
- "clock-name", "refclk \\_SB.SMB.CLK2",
- "clock-name", "timclk \\_SB.SMB.CLK1",
- }, Local0)
-
- DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
-
- Return (Local0)
- }
}
Device (AAC0) {
@@ -557,16 +505,6 @@ DefinitionBlock (
})
Return (RBUF)
}
- Method(_DSM, 4, Serialized) {
- Store (Package (2)
- {
- "clock-name", "MCLK \\_SB.SMB.CLK0",
- }, Local0)
-
- DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
-
- Return (Local0)
- }
}
Device (KMI0) {
@@ -581,16 +519,6 @@ DefinitionBlock (
})
Return (RBUF)
}
- Method(_DSM, 4, Serialized) {
- Store (Package (2)
- {
- "clock-name", "KMIREFCLK \\_SB.SMB.CLK0",
- }, Local0)
-
- DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
-
- Return (Local0)
- }
}
Device (KMI1) {
@@ -605,16 +533,6 @@ DefinitionBlock (
})
Return (RBUF)
}
- Method(_DSM, 4, NotSerialized) {
- Store (Package (2)
- {
- "clock-name", "KMIREFCLK \\_SB.SMB.CLK0",
- }, Local0)
-
- DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
-
- Return (Local0)
- }
}
Device (SER0) {
@@ -629,6 +547,10 @@ DefinitionBlock (
})
Return (RBUF)
}
+
+ Name (_PRP, Package() {
+ Package(2) {"clock-rate", 24000000}
+ })
}
Device (SER1) {
@@ -643,7 +565,11 @@ DefinitionBlock (
})
Return (RBUF)
}
- }
+
+ Name (_PRP, Package() {
+ Package(2) {"clock-rate", 24000000}
+ })
+ }
Device (SER2) {
Name (_HID, "LNRO000A")
@@ -657,6 +583,10 @@ DefinitionBlock (
})
Return (RBUF)
}
+
+ Name (_PRP, Package() {
+ Package(2) {"clock-rate", 24000000}
+ })
}
Device (SER3) {
@@ -671,6 +601,10 @@ DefinitionBlock (
})
Return (RBUF)
}
+
+ Name (_PRP, Package() {
+ Package(2) {"clock-rate", 24000000}
+ })
}
Device (WDT0) {
@@ -741,16 +675,6 @@ DefinitionBlock (
})
Return (RBUF)
}
- Method(_DSM, 4, Serialized) {
- Store (Package (2)
- {
- "clock-name", "CCLDCLK \\_SB.SMB.CLK0",
- }, Local0)
-
- DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
-
- Return (Local0)
- }
}
} // End of AMBA