summaryrefslogtreecommitdiff
path: root/src/acpi
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2020-06-23 09:13:42 +0200
committerPatrick Georgi <pgeorgi@google.com>2020-08-18 12:13:30 +0000
commit721cb8a717aabf2b47b9ed61ac020be51bab5d37 (patch)
tree03a1f762f47eaed043e49f90e443c5047f2f9d51 /src/acpi
parent653eb15ccdd078682427c6b9b98dbaac3c63253f (diff)
downloadcoreboot-721cb8a717aabf2b47b9ed61ac020be51bab5d37.tar.xz
src/acpi/acpigen.c: Use macro for access_size
Change-Id: I677d055b3cd47f760d743a6ecb63cb5738274090 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/42727 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/acpi')
-rw-r--r--src/acpi/acpigen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/acpi/acpigen.c b/src/acpi/acpigen.c
index a4a74f65d7..f2187062a7 100644
--- a/src/acpi/acpigen.c
+++ b/src/acpi/acpigen.c
@@ -687,7 +687,7 @@ void acpigen_write_empty_PTC(void)
.space_id = ACPI_ADDRESS_SPACE_FIXED,
.bit_width = 0,
.bit_offset = 0,
- .access_size = 0,
+ .access_size = ACPI_ACCESS_SIZE_UNDEFINED,
.addrl = 0,
.addrh = 0,
};
@@ -1553,7 +1553,7 @@ void acpigen_write_CPPC_package(const struct cppc_config *config)
for (i = 0; i < max; ++i) {
const acpi_addr_t *reg = &(config->regs[i]);
if (reg->space_id == ACPI_ADDRESS_SPACE_MEMORY &&
- reg->bit_width == 32 && reg->access_size == 0) {
+ reg->bit_width == 32 && reg->access_size == ACPI_ACCESS_SIZE_UNDEFINED) {
acpigen_write_dword(reg->addrl);
} else {
acpigen_write_register_resource(reg);