soc/amd/picasso/acpi: Add UID for PCI INT devices

If a _HID/_CID are not unique, we need to add a _UID field to
differentiate the objects.

BUG=b:175146875
BRANCH=zork
TEST=Boot linux, dump ACPI table and verify UIDs are unique

Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Change-Id: Icd2ccede2b6c2e332157e2eeca89fba14a46b360
Reviewed-on: https://review.coreboot.org/c/coreboot/+/49811
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
Raul E Rangel 2021-01-21 13:42:17 -07:00 committed by Patrick Georgi
parent c6c64e844b
commit c39f009739
1 changed files with 10 additions and 10 deletions

View File

@ -20,10 +20,10 @@
} }
}) })
#define PCI_LINK(DEV_NAME, PIC_REG, APIC_REG) \ #define PCI_LINK(DEV_NAME, PIC_REG, APIC_REG, UID) \
Device(DEV_NAME) { \ Device(DEV_NAME) { \
Name(_HID, EISAID("PNP0C0F")) \ Name(_HID, EISAID("PNP0C0F")) \
Name(_UID, 1) \ Name(_UID, UID) \
\ \
Method(_STA, 0) { \ Method(_STA, 0) { \
If (PMOD) { \ If (PMOD) { \
@ -100,11 +100,11 @@
} \ } \
} }
PCI_LINK(INTA, PIRA, IORA) PCI_LINK(INTA, PIRA, IORA, 0)
PCI_LINK(INTB, PIRB, IORB) PCI_LINK(INTB, PIRB, IORB, 1)
PCI_LINK(INTC, PIRC, IORC) PCI_LINK(INTC, PIRC, IORC, 2)
PCI_LINK(INTD, PIRD, IORD) PCI_LINK(INTD, PIRD, IORD, 3)
PCI_LINK(INTE, PIRE, IORE) PCI_LINK(INTE, PIRE, IORE, 4)
PCI_LINK(INTF, PIRF, IORF) PCI_LINK(INTF, PIRF, IORF, 5)
PCI_LINK(INTG, PIRG, IORG) PCI_LINK(INTG, PIRG, IORG, 6)
PCI_LINK(INTH, PIRH, IORH) PCI_LINK(INTH, PIRH, IORH, 7)