From: Naresh Bhat naresh.bhat@linaro.org
While testing Brandon Anderson patches on foundation v8 model, the model use to hang while booting, because UART is unable to find the clock source. ... ..... ACPI: No dock devices found. acpi_amba_add_device(): amba_device_add() failed (-2) for LINA000A:00 acpi_amba_add_device(): amba_device_add() failed (-2) for LINA000A:01 acpi_amba_add_device(): amba_device_add() failed (-2) for LINA000A:02 acpi_amba_add_device(): amba_device_add() failed (-2) for LINA000A:03 ... .... This patch issued to fix the same issue under foundation v8 platform dsdt asl file.
Naresh Bhat (1): foundation-v8: Add clk changes
platforms/foundation-v8.acpi/dsdt.asl | 47 +++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+)
From: Naresh Bhat naresh.bhat@linaro.org
Add the clk changes for dsdt asl file of foundation-v8 model.
Signed-off-by: Naresh Bhat naresh.bhat@linaro.org --- platforms/foundation-v8.acpi/dsdt.asl | 47 +++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+)
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)
On 11/13/2013 06:32 AM, naresh.bhat@linaro.org wrote:
From: Naresh Bhat naresh.bhat@linaro.org
Add the clk changes for dsdt asl file of foundation-v8 model.
Signed-off-by: Naresh Bhat naresh.bhat@linaro.org
platforms/foundation-v8.acpi/dsdt.asl | 47 +++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+)
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)
Cool. More devices is always fun. Note that this may need to change based on the outcome of the _PRP method discussion but I think it's okay for now.
Acked-by: Al Stone al.stone@linaro.org