Attention is currently required from: Arthur Heymans, Christian Walter, Jincheng Li, Johnny Lin, Jonathan Zhang, Lean Sheng Tan, Patrick Rudolph, Tim Chu.
Hello Jincheng Li,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/81374?usp=email
to review the following change.
Change subject: soc/intel/xeon_sp/gnr: Add soc_pci_domain_fill_ssdt ......................................................................
soc/intel/xeon_sp/gnr: Add soc_pci_domain_fill_ssdt
Domain device objects are created with HID/CID/UID.
Change-Id: I28bfdf74d8044235f79f67d832860d8b4306670c Signed-off-by: Shuo Liu shuo.liu@intel.com Signed-off-by: Jincheng Li jincheng.li@intel.com --- M src/soc/intel/xeon_sp/gnr/soc_acpi.c 1 file changed, 36 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/74/81374/1
diff --git a/src/soc/intel/xeon_sp/gnr/soc_acpi.c b/src/soc/intel/xeon_sp/gnr/soc_acpi.c index 9d7c2ab..ab4328a 100644 --- a/src/soc/intel/xeon_sp/gnr/soc_acpi.c +++ b/src/soc/intel/xeon_sp/gnr/soc_acpi.c @@ -1,5 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-only */
+#include <acpi/acpigen.h> +#include <acpi/acpigen_pci.h> #include <assert.h> #include <intelblocks/acpi.h> #include <intelblocks/pcr.h> @@ -67,3 +69,37 @@ { return current; } + +void soc_pci_domain_fill_ssdt(const struct device *domain) +{ + const char *name = acpi_device_name(domain); + printk(BIOS_DEBUG, "%s: Creating device %s\n", __func__, name); + + /* + * Scope (_SB) { + * Device (name) { + */ + acpigen_write_scope("\_SB"); + acpigen_write_device(name); + + /* + * Name (_HID, EisaId ("PNP0A08")) + * Name (_CID, EisaId ("PNP0A03")) + * Name (_UID, name) + */ + acpigen_write_name("_HID"); + acpigen_emit_eisaid("PNP0A08"); + acpigen_write_name("_CID"); + acpigen_emit_eisaid("PNP0A03"); + acpigen_write_name("_UID"); + acpigen_write_string(name); + + /* + * } //Device + * } //Scope + */ + acpigen_pop_len(); + acpigen_pop_len(); + + return; +}