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 --- platforms/rtsm_ve-aemv8a.acpi/dsdt.asl | 110 +++++---------------------------- 1 file 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