summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/soc/intel/common/block/irq/irq.c2
-rw-r--r--src/southbridge/intel/common/acpi_pirq_gen.c8
-rw-r--r--src/southbridge/intel/common/acpi_pirq_gen.h5
-rw-r--r--src/southbridge/intel/common/rcba_pirq.c2
4 files changed, 7 insertions, 10 deletions
diff --git a/src/soc/intel/common/block/irq/irq.c b/src/soc/intel/common/block/irq/irq.c
index 386538e61b..16d0fa3206 100644
--- a/src/soc/intel/common/block/irq/irq.c
+++ b/src/soc/intel/common/block/irq/irq.c
@@ -397,7 +397,7 @@ bool generate_pin_irq_map(void)
entry = entry->next;
}
- intel_write_pci0_PRT(pin_irq_map, map_count, &pirq_map);
+ intel_write_pci_PRT("\\_SB.PCI0", pin_irq_map, map_count, &pirq_map);
free(pin_irq_map);
return true;
diff --git a/src/southbridge/intel/common/acpi_pirq_gen.c b/src/southbridge/intel/common/acpi_pirq_gen.c
index 1dadc8e6db..3b5c3e58d0 100644
--- a/src/southbridge/intel/common/acpi_pirq_gen.c
+++ b/src/southbridge/intel/common/acpi_pirq_gen.c
@@ -43,12 +43,10 @@ static void gen_pic_route(const struct slot_pin_irq_map *pin_irq_map,
}
}
-void intel_write_pci0_PRT(const struct slot_pin_irq_map *pin_irq_map,
- unsigned int map_count,
- const struct pic_pirq_map *pirq_map)
+void intel_write_pci_PRT(const char *scope, const struct slot_pin_irq_map *pin_irq_map,
+ unsigned int map_count, const struct pic_pirq_map *pirq_map)
{
- /* \_SB.PCI0._PRT */
- acpigen_write_scope("\\_SB.PCI0");
+ acpigen_write_scope(scope);
acpigen_write_method("_PRT", 0);
acpigen_write_if();
acpigen_emit_namestring("PICM");
diff --git a/src/southbridge/intel/common/acpi_pirq_gen.h b/src/southbridge/intel/common/acpi_pirq_gen.h
index 36e432e31c..f22e1d4dfc 100644
--- a/src/southbridge/intel/common/acpi_pirq_gen.h
+++ b/src/southbridge/intel/common/acpi_pirq_gen.h
@@ -84,9 +84,8 @@ struct pic_pirq_map {
* slot/pin combination, and optionally providing paths to LNKx devices that can
* provide IRQs in PIC mode.
*/
-void intel_write_pci0_PRT(const struct slot_pin_irq_map *pin_irq_map,
- unsigned int map_count,
- const struct pic_pirq_map *pirq_map);
+void intel_write_pci_PRT(const char *scope, const struct slot_pin_irq_map *pin_irq_map,
+ unsigned int map_count, const struct pic_pirq_map *pirq_map);
bool is_slot_pin_assigned(const struct slot_pin_irq_map *pin_irq_map,
unsigned int map_count, unsigned int slot,
diff --git a/src/southbridge/intel/common/rcba_pirq.c b/src/southbridge/intel/common/rcba_pirq.c
index 956fe633da..ae22143364 100644
--- a/src/southbridge/intel/common/rcba_pirq.c
+++ b/src/southbridge/intel/common/rcba_pirq.c
@@ -90,7 +90,7 @@ void intel_acpi_gen_def_acpi_pirq(const struct device *lpc)
map_count++;
}
- intel_write_pci0_PRT(pin_irq_map, map_count, &pirq_map);
+ intel_write_pci_PRT("\\_SB.PCI0", pin_irq_map, map_count, &pirq_map);
free(pin_irq_map);
}