aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/amd/serengeti_leopard/dx_bus0
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/amd/serengeti_leopard/dx_bus0')
-rw-r--r--src/mainboard/amd/serengeti_leopard/dx_bus0/amd8131.asl14
-rw-r--r--src/mainboard/amd/serengeti_leopard/dx_bus0/amd8151.asl6
-rw-r--r--src/mainboard/amd/serengeti_leopard/dx_bus0/amdk8_util.asl16
-rw-r--r--src/mainboard/amd/serengeti_leopard/dx_bus0/dsdt_lb.dsl4
-rw-r--r--src/mainboard/amd/serengeti_leopard/dx_bus0/pci2.asl2
5 files changed, 35 insertions, 7 deletions
diff --git a/src/mainboard/amd/serengeti_leopard/dx_bus0/amd8131.asl b/src/mainboard/amd/serengeti_leopard/dx_bus0/amd8131.asl
index 037ae85951..e209665e48 100644
--- a/src/mainboard/amd/serengeti_leopard/dx_bus0/amd8131.asl
+++ b/src/mainboard/amd/serengeti_leopard/dx_bus0/amd8131.asl
@@ -4,7 +4,12 @@
Device (PG0A)
{
- Name (_ADR, 0x00010000) /* 8132 pcix bridge*/
+ /* 8132 pcix bridge*/
+ Method (_ADR, 0, NotSerialized)
+ {
+ Return (DADD(GHCD(HCIN, 0), 0x00000000))
+ }
+
Method (_PRW, 0, NotSerialized)
{
If (CondRefOf (\_S3, Local0)) { Return (Package (0x02) { 0x29, 0x03 }) }
@@ -79,7 +84,12 @@
Device (PG0B)
{
- Name (_ADR, 0x00020000) /* 8132 pcix bridge 2 */
+ /* 8132 pcix bridge 2 */
+ Method (_ADR, 0, NotSerialized)
+ {
+ Return (DADD(GHCD(HCIN, 0), 0x00010000))
+ }
+
Method (_PRW, 0, NotSerialized)
{
If (CondRefOf (\_S3, Local0)) { Return (Package (0x02) { 0x22, 0x03 }) }
diff --git a/src/mainboard/amd/serengeti_leopard/dx_bus0/amd8151.asl b/src/mainboard/amd/serengeti_leopard/dx_bus0/amd8151.asl
index 62dbeeca9a..001d45b0fe 100644
--- a/src/mainboard/amd/serengeti_leopard/dx_bus0/amd8151.asl
+++ b/src/mainboard/amd/serengeti_leopard/dx_bus0/amd8151.asl
@@ -1,7 +1,11 @@
// AMD8151
Device (AGPB)
{
- Name (_ADR, 0x00020000)
+ Method (_ADR, 0, NotSerialized)
+ {
+ Return (DADD(GHCD(HCIN, 0), 0x00010000))
+ }
+
Name (APIC, Package (0x04)
{
Package (0x04) { 0x0000FFFF, 0x00, 0x00, 0x10 },
diff --git a/src/mainboard/amd/serengeti_leopard/dx_bus0/amdk8_util.asl b/src/mainboard/amd/serengeti_leopard/dx_bus0/amdk8_util.asl
index 82c55c4c3d..e9155476c5 100644
--- a/src/mainboard/amd/serengeti_leopard/dx_bus0/amdk8_util.asl
+++ b/src/mainboard/amd/serengeti_leopard/dx_bus0/amdk8_util.asl
@@ -51,14 +51,14 @@
}
- Method (GHCE, 1, NotSerialized)
+ Method (GHCE, 1, NotSerialized) // check if the HC enabled
{
Store (DerefOf (Index (\_SB.PCI0.HCLK, Arg0)), Local1)
if(LEqual ( And(Local1, 0x01), 0x01)) { Return (0x0F) }
Else { Return (0x00) }
}
- Method (GHCN, 1, NotSerialized)
+ Method (GHCN, 1, NotSerialized) // get the node num for the HC
{
Store (0x00, Local0)
Store (DerefOf (Index (\_SB.PCI0.HCLK, Arg0)), Local1)
@@ -66,7 +66,7 @@
Return (Local0)
}
- Method (GHCL, 1, NotSerialized)
+ Method (GHCL, 1, NotSerialized) // get the link num on node for the HC
{
Store (0x00, Local0)
Store (DerefOf (Index (\_SB.PCI0.HCLK, Arg0)), Local1)
@@ -74,6 +74,16 @@
Return (Local0)
}
+ Method (GHCD, 2, NotSerialized) // get the unit id base for the HT device in HC
+ {
+ Store (0x00, Local0)
+ Store (DerefOf (Index (\_SB.PCI0.HCDN, Arg0)), Local1)
+ Store (Arg1, Local2) // Arg1 could be 3, 2, 1, 0
+ Multiply (Local2, 0x08, Local2) // change to 24, 16, 8, 0
+ Store (And (ShiftRight( Local1, Local2), 0xff), Local0)
+ Return (Local0)
+ }
+
Method (GBUS, 2, NotSerialized)
{
Store (0x00, Local0)
diff --git a/src/mainboard/amd/serengeti_leopard/dx_bus0/dsdt_lb.dsl b/src/mainboard/amd/serengeti_leopard/dx_bus0/dsdt_lb.dsl
index 4d3e954020..edf5b47d5d 100644
--- a/src/mainboard/amd/serengeti_leopard/dx_bus0/dsdt_lb.dsl
+++ b/src/mainboard/amd/serengeti_leopard/dx_bus0/dsdt_lb.dsl
@@ -51,6 +51,8 @@ DefinitionBlock ("DSDT.aml", "DSDT", 1, "AMD-K8", "AMDACPI", 100925440)
External (TOM1)
External (HCLK)
External (SBDN)
+ External (HCDN)
+
Name (_HID, EisaId ("PNP0A03"))
Name (_ADR, 0x00180000)
@@ -82,6 +84,8 @@ HT on Bus 0,So no PCI1
}
*/
+ Name (HCIN, 0x00) // HC1
+
Method (_CRS, 0, NotSerialized)
{
Name (BUF0, ResourceTemplate ()
diff --git a/src/mainboard/amd/serengeti_leopard/dx_bus0/pci2.asl b/src/mainboard/amd/serengeti_leopard/dx_bus0/pci2.asl
index a14c785584..a62ba98333 100644
--- a/src/mainboard/amd/serengeti_leopard/dx_bus0/pci2.asl
+++ b/src/mainboard/amd/serengeti_leopard/dx_bus0/pci2.asl
@@ -9,6 +9,7 @@ DefinitionBlock ("SSDT2.aml", "SSDT", 1, "AMD-K8", "AMDACPI", 100925440)
External (GHCE, MethodObj)
External (GHCN, MethodObj)
External (GHCL, MethodObj)
+ External (GHCD, MethodObj)
External (GNUS, MethodObj)
External (GIOR, MethodObj)
External (GMEM, MethodObj)
@@ -21,7 +22,6 @@ DefinitionBlock ("SSDT2.aml", "SSDT", 1, "AMD-K8", "AMDACPI", 100925440)
External (\_SB.PCI0.LNKB, DeviceObj)
External (\_SB.PCI0.LNKC, DeviceObj)
External (\_SB.PCI0.LNKD, DeviceObj)
-
Device (PCI2)
{