Patrick Georgi has submitted this change. ( https://review.coreboot.org/c/coreboot/+/54131 )
Change subject: acpi: Add acpigen_write_thermal_zone ......................................................................
acpi: Add acpigen_write_thermal_zone
BUG=b:186166365 TEST=Compiles
Signed-off-by: Raul E Rangel rrangel@chromium.org Change-Id: Icf88477143049119036c00276f9a01985dc0b4d3 Reviewed-on: https://review.coreboot.org/c/coreboot/+/54131 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: Lance Zhao Reviewed-by: Tim Wawrzynczak twawrzynczak@chromium.org --- M src/acpi/acpigen.c M src/include/acpi/acpigen.h 2 files changed, 12 insertions(+), 0 deletions(-)
Approvals: build bot (Jenkins): Verified Lance Zhao: Looks good to me, approved Tim Wawrzynczak: Looks good to me, approved
diff --git a/src/acpi/acpigen.c b/src/acpi/acpigen.c index 5c8c1b9..9818dc2 100644 --- a/src/acpi/acpigen.c +++ b/src/acpi/acpigen.c @@ -781,6 +781,13 @@ acpigen_emit_namestring(name); }
+void acpigen_write_thermal_zone(const char *name) +{ + acpigen_emit_ext_op(THERMAL_ZONE_OP); + acpigen_write_len_f(); + acpigen_emit_namestring(name); +} + void acpigen_write_STA(uint8_t status) { /* diff --git a/src/include/acpi/acpigen.h b/src/include/acpi/acpigen.h index 0e8d29a..2d0bb77 100644 --- a/src/include/acpi/acpigen.h +++ b/src/include/acpi/acpigen.h @@ -338,6 +338,11 @@ { acpigen_pop_len(); } +void acpigen_write_thermal_zone(const char *name); +inline void acpigen_write_thermal_zone_end(void) +{ + acpigen_pop_len(); +} void acpigen_write_LPI_package(u64 level, const struct acpi_lpi_state *states, u16 nentries); void acpigen_write_PPC(u8 nr); void acpigen_write_PPC_NVS(void);