treewide: Use 'fadt->pm1_evt_len' for 'x_pm1a_evt_blk.bit_width'
Change-Id: I1e51ccad32f1c5e692c76b331eedf4d3bb260d38 Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/68269 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
parent
84dbace1ea
commit
a6e0538270
|
@ -103,7 +103,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->flags |= cfg->common_config.fadt_flags; /* additional board-specific flags */
|
fadt->flags |= cfg->common_config.fadt_flags; /* additional board-specific flags */
|
||||||
|
|
||||||
fadt->x_pm1a_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
fadt->x_pm1a_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
||||||
fadt->x_pm1a_evt_blk.bit_width = 32;
|
fadt->x_pm1a_evt_blk.bit_width = fadt->pm1_evt_len * 8;
|
||||||
fadt->x_pm1a_evt_blk.bit_offset = 0;
|
fadt->x_pm1a_evt_blk.bit_offset = 0;
|
||||||
fadt->x_pm1a_evt_blk.access_size = ACPI_ACCESS_SIZE_WORD_ACCESS;
|
fadt->x_pm1a_evt_blk.access_size = ACPI_ACCESS_SIZE_WORD_ACCESS;
|
||||||
fadt->x_pm1a_evt_blk.addrl = ACPI_PM_EVT_BLK;
|
fadt->x_pm1a_evt_blk.addrl = ACPI_PM_EVT_BLK;
|
||||||
|
|
|
@ -105,7 +105,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->flags |= cfg->common_config.fadt_flags; /* additional board-specific flags */
|
fadt->flags |= cfg->common_config.fadt_flags; /* additional board-specific flags */
|
||||||
|
|
||||||
fadt->x_pm1a_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
fadt->x_pm1a_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
||||||
fadt->x_pm1a_evt_blk.bit_width = 32;
|
fadt->x_pm1a_evt_blk.bit_width = fadt->pm1_evt_len * 8;
|
||||||
fadt->x_pm1a_evt_blk.bit_offset = 0;
|
fadt->x_pm1a_evt_blk.bit_offset = 0;
|
||||||
fadt->x_pm1a_evt_blk.access_size = ACPI_ACCESS_SIZE_WORD_ACCESS;
|
fadt->x_pm1a_evt_blk.access_size = ACPI_ACCESS_SIZE_WORD_ACCESS;
|
||||||
fadt->x_pm1a_evt_blk.addrl = ACPI_PM_EVT_BLK;
|
fadt->x_pm1a_evt_blk.addrl = ACPI_PM_EVT_BLK;
|
||||||
|
|
|
@ -106,7 +106,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->flags |= cfg->common_config.fadt_flags; /* additional board-specific flags */
|
fadt->flags |= cfg->common_config.fadt_flags; /* additional board-specific flags */
|
||||||
|
|
||||||
fadt->x_pm1a_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
fadt->x_pm1a_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
||||||
fadt->x_pm1a_evt_blk.bit_width = 32;
|
fadt->x_pm1a_evt_blk.bit_width = fadt->pm1_evt_len * 8;
|
||||||
fadt->x_pm1a_evt_blk.bit_offset = 0;
|
fadt->x_pm1a_evt_blk.bit_offset = 0;
|
||||||
fadt->x_pm1a_evt_blk.access_size = ACPI_ACCESS_SIZE_WORD_ACCESS;
|
fadt->x_pm1a_evt_blk.access_size = ACPI_ACCESS_SIZE_WORD_ACCESS;
|
||||||
fadt->x_pm1a_evt_blk.addrl = ACPI_PM_EVT_BLK;
|
fadt->x_pm1a_evt_blk.addrl = ACPI_PM_EVT_BLK;
|
||||||
|
|
|
@ -111,7 +111,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_firmware_ctl_h = 0;
|
fadt->x_firmware_ctl_h = 0;
|
||||||
|
|
||||||
fadt->x_pm1a_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
fadt->x_pm1a_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
||||||
fadt->x_pm1a_evt_blk.bit_width = 32;
|
fadt->x_pm1a_evt_blk.bit_width = fadt->pm1_evt_len * 8;
|
||||||
fadt->x_pm1a_evt_blk.bit_offset = 0;
|
fadt->x_pm1a_evt_blk.bit_offset = 0;
|
||||||
fadt->x_pm1a_evt_blk.access_size = ACPI_ACCESS_SIZE_WORD_ACCESS;
|
fadt->x_pm1a_evt_blk.access_size = ACPI_ACCESS_SIZE_WORD_ACCESS;
|
||||||
fadt->x_pm1a_evt_blk.addrl = ACPI_PM_EVT_BLK;
|
fadt->x_pm1a_evt_blk.addrl = ACPI_PM_EVT_BLK;
|
||||||
|
|
|
@ -103,7 +103,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_firmware_ctl_h = 0;
|
fadt->x_firmware_ctl_h = 0;
|
||||||
|
|
||||||
fadt->x_pm1a_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
fadt->x_pm1a_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
||||||
fadt->x_pm1a_evt_blk.bit_width = 32;
|
fadt->x_pm1a_evt_blk.bit_width = fadt->pm1_evt_len * 8;
|
||||||
fadt->x_pm1a_evt_blk.bit_offset = 0;
|
fadt->x_pm1a_evt_blk.bit_offset = 0;
|
||||||
fadt->x_pm1a_evt_blk.access_size = ACPI_ACCESS_SIZE_WORD_ACCESS;
|
fadt->x_pm1a_evt_blk.access_size = ACPI_ACCESS_SIZE_WORD_ACCESS;
|
||||||
fadt->x_pm1a_evt_blk.addrl = ACPI_PM_EVT_BLK;
|
fadt->x_pm1a_evt_blk.addrl = ACPI_PM_EVT_BLK;
|
||||||
|
|
|
@ -65,7 +65,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->ARM_boot_arch = 0; /* Must be zero if ACPI Revision <= 5.0 */
|
fadt->ARM_boot_arch = 0; /* Must be zero if ACPI Revision <= 5.0 */
|
||||||
|
|
||||||
fadt->x_pm1a_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
fadt->x_pm1a_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
||||||
fadt->x_pm1a_evt_blk.bit_width = 32;
|
fadt->x_pm1a_evt_blk.bit_width = fadt->pm1_evt_len * 8;
|
||||||
fadt->x_pm1a_evt_blk.bit_offset = 0;
|
fadt->x_pm1a_evt_blk.bit_offset = 0;
|
||||||
fadt->x_pm1a_evt_blk.access_size = ACPI_ACCESS_SIZE_WORD_ACCESS;
|
fadt->x_pm1a_evt_blk.access_size = ACPI_ACCESS_SIZE_WORD_ACCESS;
|
||||||
fadt->x_pm1a_evt_blk.addrl = ACPI_PM_EVT_BLK;
|
fadt->x_pm1a_evt_blk.addrl = ACPI_PM_EVT_BLK;
|
||||||
|
|
|
@ -89,7 +89,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->ARM_boot_arch = 0; /* Must be zero if ACPI Revision <= 5.0 */
|
fadt->ARM_boot_arch = 0; /* Must be zero if ACPI Revision <= 5.0 */
|
||||||
|
|
||||||
fadt->x_pm1a_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
fadt->x_pm1a_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
||||||
fadt->x_pm1a_evt_blk.bit_width = 32;
|
fadt->x_pm1a_evt_blk.bit_width = fadt->pm1_evt_len * 8;
|
||||||
fadt->x_pm1a_evt_blk.bit_offset = 0;
|
fadt->x_pm1a_evt_blk.bit_offset = 0;
|
||||||
fadt->x_pm1a_evt_blk.access_size = ACPI_ACCESS_SIZE_WORD_ACCESS;
|
fadt->x_pm1a_evt_blk.access_size = ACPI_ACCESS_SIZE_WORD_ACCESS;
|
||||||
fadt->x_pm1a_evt_blk.addrl = PM1_EVT_BLK_ADDRESS;
|
fadt->x_pm1a_evt_blk.addrl = PM1_EVT_BLK_ADDRESS;
|
||||||
|
|
|
@ -68,7 +68,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->x_firmware_ctl_h = 0;
|
fadt->x_firmware_ctl_h = 0;
|
||||||
|
|
||||||
fadt->x_pm1a_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
fadt->x_pm1a_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
||||||
fadt->x_pm1a_evt_blk.bit_width = 32;
|
fadt->x_pm1a_evt_blk.bit_width = fadt->pm1_evt_len * 8;
|
||||||
fadt->x_pm1a_evt_blk.bit_offset = 0;
|
fadt->x_pm1a_evt_blk.bit_offset = 0;
|
||||||
fadt->x_pm1a_evt_blk.access_size = ACPI_ACCESS_SIZE_WORD_ACCESS;
|
fadt->x_pm1a_evt_blk.access_size = ACPI_ACCESS_SIZE_WORD_ACCESS;
|
||||||
fadt->x_pm1a_evt_blk.addrl = ACPI_PM_EVT_BLK;
|
fadt->x_pm1a_evt_blk.addrl = ACPI_PM_EVT_BLK;
|
||||||
|
|
|
@ -52,7 +52,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
}
|
}
|
||||||
|
|
||||||
fadt->x_pm1a_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
fadt->x_pm1a_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
||||||
fadt->x_pm1a_evt_blk.bit_width = 32;
|
fadt->x_pm1a_evt_blk.bit_width = fadt->pm1_evt_len * 8;
|
||||||
fadt->x_pm1a_evt_blk.bit_offset = 0;
|
fadt->x_pm1a_evt_blk.bit_offset = 0;
|
||||||
fadt->x_pm1a_evt_blk.access_size = ACPI_ACCESS_SIZE_WORD_ACCESS;
|
fadt->x_pm1a_evt_blk.access_size = ACPI_ACCESS_SIZE_WORD_ACCESS;
|
||||||
fadt->x_pm1a_evt_blk.addrl = pmbase;
|
fadt->x_pm1a_evt_blk.addrl = pmbase;
|
||||||
|
|
|
@ -51,7 +51,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
ACPI_FADT_S4_RTC_WAKE | ACPI_FADT_PLATFORM_CLOCK;
|
ACPI_FADT_S4_RTC_WAKE | ACPI_FADT_PLATFORM_CLOCK;
|
||||||
|
|
||||||
fadt->x_pm1a_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
fadt->x_pm1a_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
||||||
fadt->x_pm1a_evt_blk.bit_width = 32;
|
fadt->x_pm1a_evt_blk.bit_width = fadt->pm1_evt_len * 8;
|
||||||
fadt->x_pm1a_evt_blk.bit_offset = 0;
|
fadt->x_pm1a_evt_blk.bit_offset = 0;
|
||||||
fadt->x_pm1a_evt_blk.access_size = ACPI_ACCESS_SIZE_UNDEFINED;
|
fadt->x_pm1a_evt_blk.access_size = ACPI_ACCESS_SIZE_UNDEFINED;
|
||||||
fadt->x_pm1a_evt_blk.addrl = pmbase;
|
fadt->x_pm1a_evt_blk.addrl = pmbase;
|
||||||
|
|
|
@ -51,7 +51,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
fadt->flags |= ACPI_FADT_DOCKING_SUPPORTED;
|
fadt->flags |= ACPI_FADT_DOCKING_SUPPORTED;
|
||||||
|
|
||||||
fadt->x_pm1a_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
fadt->x_pm1a_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
||||||
fadt->x_pm1a_evt_blk.bit_width = 32;
|
fadt->x_pm1a_evt_blk.bit_width = fadt->pm1_evt_len * 8;
|
||||||
fadt->x_pm1a_evt_blk.bit_offset = 0;
|
fadt->x_pm1a_evt_blk.bit_offset = 0;
|
||||||
fadt->x_pm1a_evt_blk.access_size = ACPI_ACCESS_SIZE_WORD_ACCESS;
|
fadt->x_pm1a_evt_blk.access_size = ACPI_ACCESS_SIZE_WORD_ACCESS;
|
||||||
fadt->x_pm1a_evt_blk.addrl = pmbase;
|
fadt->x_pm1a_evt_blk.addrl = pmbase;
|
||||||
|
|
|
@ -42,7 +42,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
ACPI_FADT_DOCKING_SUPPORTED | ACPI_FADT_PLATFORM_CLOCK;
|
ACPI_FADT_DOCKING_SUPPORTED | ACPI_FADT_PLATFORM_CLOCK;
|
||||||
|
|
||||||
fadt->x_pm1a_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
fadt->x_pm1a_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
||||||
fadt->x_pm1a_evt_blk.bit_width = 32;
|
fadt->x_pm1a_evt_blk.bit_width = fadt->pm1_evt_len * 8;
|
||||||
fadt->x_pm1a_evt_blk.bit_offset = 0;
|
fadt->x_pm1a_evt_blk.bit_offset = 0;
|
||||||
fadt->x_pm1a_evt_blk.access_size = ACPI_ACCESS_SIZE_WORD_ACCESS;
|
fadt->x_pm1a_evt_blk.access_size = ACPI_ACCESS_SIZE_WORD_ACCESS;
|
||||||
fadt->x_pm1a_evt_blk.addrl = pmbase;
|
fadt->x_pm1a_evt_blk.addrl = pmbase;
|
||||||
|
|
|
@ -42,7 +42,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
| ACPI_FADT_PLATFORM_CLOCK | ACPI_FADT_C2_MP_SUPPORTED);
|
| ACPI_FADT_PLATFORM_CLOCK | ACPI_FADT_C2_MP_SUPPORTED);
|
||||||
|
|
||||||
fadt->x_pm1a_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
fadt->x_pm1a_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
||||||
fadt->x_pm1a_evt_blk.bit_width = 32;
|
fadt->x_pm1a_evt_blk.bit_width = fadt->pm1_evt_len * 8;
|
||||||
fadt->x_pm1a_evt_blk.bit_offset = 0;
|
fadt->x_pm1a_evt_blk.bit_offset = 0;
|
||||||
fadt->x_pm1a_evt_blk.access_size = ACPI_ACCESS_SIZE_WORD_ACCESS;
|
fadt->x_pm1a_evt_blk.access_size = ACPI_ACCESS_SIZE_WORD_ACCESS;
|
||||||
fadt->x_pm1a_evt_blk.addrl = pmbase;
|
fadt->x_pm1a_evt_blk.addrl = pmbase;
|
||||||
|
|
|
@ -51,7 +51,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||||
}
|
}
|
||||||
|
|
||||||
fadt->x_pm1a_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
fadt->x_pm1a_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO;
|
||||||
fadt->x_pm1a_evt_blk.bit_width = 32;
|
fadt->x_pm1a_evt_blk.bit_width = fadt->pm1_evt_len * 8;
|
||||||
fadt->x_pm1a_evt_blk.bit_offset = 0;
|
fadt->x_pm1a_evt_blk.bit_offset = 0;
|
||||||
fadt->x_pm1a_evt_blk.access_size = ACPI_ACCESS_SIZE_WORD_ACCESS;
|
fadt->x_pm1a_evt_blk.access_size = ACPI_ACCESS_SIZE_WORD_ACCESS;
|
||||||
fadt->x_pm1a_evt_blk.addrl = pmbase;
|
fadt->x_pm1a_evt_blk.addrl = pmbase;
|
||||||
|
|
Loading…
Reference in New Issue