summaryrefslogtreecommitdiff
path: root/include/acpi
diff options
context:
space:
mode:
authorPatrick Rudolph <[email protected]>2024-10-23 15:19:58 +0200
committerTom Rini <[email protected]>2024-10-27 17:24:13 -0600
commit4ac655cd1a9108e0381e254afdeeffb607075096 (patch)
tree9e240cdb4204e42f4123bbbb032cfcf74cf60fc9 /include/acpi
parentf570ab636145faa14c2f9639acd50c5017b63adb (diff)
acpi: Add processor device
Add a new method to write the processor device identified by _HID ACPI0007, that is preferred over the Processor OpCode since ACPI 6.0. Fixes booting arm using ACPI only since the Processor OpCode isn't found valid by the Linux kernel. Signed-off-by: Patrick Rudolph <[email protected]> Reviewed-by: Simon Glass <[email protected]> Cc: Simon Glass <[email protected]>
Diffstat (limited to 'include/acpi')
-rw-r--r--include/acpi/acpigen.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/acpi/acpigen.h b/include/acpi/acpigen.h
index 3aa94d70b9c..16df85b9c1b 100644
--- a/include/acpi/acpigen.h
+++ b/include/acpi/acpigen.h
@@ -833,6 +833,7 @@ void acpigen_write_dsm_end(struct acpi_ctx *ctx);
*
* This emits a Processor package header with the required information. The
* caller must complete the information and call acpigen_pop_len() at the end
+ * Deprecated since ACPI 6.0.
*
* @ctx: ACPI context pointer
* @cpuindex: CPU number
@@ -843,6 +844,17 @@ void acpigen_write_processor(struct acpi_ctx *ctx, uint cpuindex,
u32 pblock_addr, uint pblock_len);
/**
+ * acpigen_write_processor_device() - Write a Processor device
+ *
+ * Write a device with _HID ACPI0007 identifying a processor.
+ * Replacement for the Processor OpCode.
+ *
+ * @ctx: ACPI context pointer
+ * @cpuindex: CPU number
+ */
+void acpigen_write_processor_device(struct acpi_ctx *ctx, uint cpuindex);
+
+/**
* acpigen_write_processor_package() - Write a package containing the processors
*
* The package containins the name of each processor in the SoC