nb/intel/sandybridge/acpi: Update PEG code

* Use new ACPI syntax
* Return either 0 or 0xf for PCI root port. That will make the
  device show up in Windows. This might help users and possibly
  Windows drivers working with PCIe ports.

Change-Id: I1e76b735ab1472f6a4ea493c733cd6b2e6fca29e
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/38831
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
Patrick Rudolph 2020-02-11 16:44:43 +01:00 committed by Felix Held
parent 3d27705d27
commit 516f0acbb0
1 changed files with 4 additions and 8 deletions

View File

@ -20,8 +20,7 @@ Device (PEGP)
Method (_STA)
{
ShiftRight (\_SB.PCI0.MCHC.DVEN, 3, Local0)
Return (And (Local0, 1))
Return (((\_SB.PCI0.MCHC.DVEN >> 3) & 1) * 0xf)
}
Device (DEV0)
@ -36,8 +35,7 @@ Device (PEG1)
Method (_STA)
{
ShiftRight (\_SB.PCI0.MCHC.DVEN, 2, Local0)
Return (And (Local0, 1))
Return (((\_SB.PCI0.MCHC.DVEN >> 2) & 1) * 0xf)
}
Device (DEV0)
@ -52,8 +50,7 @@ Device (PEG2)
Method (_STA)
{
ShiftRight (\_SB.PCI0.MCHC.DVEN, 1, Local0)
Return (And (Local0, 1))
Return (((\_SB.PCI0.MCHC.DVEN >> 1) & 1) * 0xf)
}
Device (DEV0)
@ -68,8 +65,7 @@ Device (PEG6)
Method (_STA)
{
ShiftRight (\_SB.PCI0.MCHC.DVEN, 13, Local0)
Return (And (Local0, 1))
Return (((\_SB.PCI0.MCHC.DVEN >> 13) & 1) * 0xf)
}
Device (DEV0)