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>
This commit is contained in:
Raul E Rangel 2021-05-12 17:01:30 -06:00 committed by Patrick Georgi
parent 2ea6c4e987
commit 052c963485
2 changed files with 12 additions and 0 deletions

View File

@ -781,6 +781,13 @@ void acpigen_write_device(const char *name)
acpigen_emit_namestring(name); 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) void acpigen_write_STA(uint8_t status)
{ {
/* /*

View File

@ -338,6 +338,11 @@ inline void acpigen_write_device_end(void)
{ {
acpigen_pop_len(); 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_LPI_package(u64 level, const struct acpi_lpi_state *states, u16 nentries);
void acpigen_write_PPC(u8 nr); void acpigen_write_PPC(u8 nr);
void acpigen_write_PPC_NVS(void); void acpigen_write_PPC_NVS(void);