src: Use macro `ACPI_FADT_LEGACY_FREE`

Replace all instances, where 0 is used by the macro/define
`ACPI_FADT_LEGACY_FREE`.

Change-Id: I226b334620e0cdafc7639c7a76ea3a523ae53a74
Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
Reviewed-on: https://review.coreboot.org/c/31289
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
This commit is contained in:
Paul Menzel 2019-02-08 15:19:20 +01:00 committed by Patrick Georgi
parent 223ddc298a
commit 8ca2af1c0d
8 changed files with 9 additions and 8 deletions

View File

@ -92,7 +92,7 @@ void acpi_create_fadt(acpi_fadt_t * fadt, acpi_facs_t * facs, void *dsdt)
fadt->day_alrm = 0xd; fadt->day_alrm = 0xd;
fadt->mon_alrm = 0x00; fadt->mon_alrm = 0x00;
fadt->century = 0x32; fadt->century = 0x32;
fadt->iapc_boot_arch = 0x00; fadt->iapc_boot_arch = ACPI_FADT_LEGACY_FREE;
fadt->flags = ACPI_FADT_WBINVD | ACPI_FADT_C1_SUPPORTED | fadt->flags = ACPI_FADT_WBINVD | ACPI_FADT_C1_SUPPORTED |
ACPI_FADT_SLEEP_BUTTON | ACPI_FADT_S4_RTC_WAKE | ACPI_FADT_SLEEP_BUTTON | ACPI_FADT_S4_RTC_WAKE |
ACPI_FADT_DOCKING_SUPPORTED | ACPI_FADT_RESET_REGISTER | ACPI_FADT_DOCKING_SUPPORTED | ACPI_FADT_RESET_REGISTER |

View File

@ -71,7 +71,7 @@ void acpi_create_fadt(acpi_fadt_t * fadt, acpi_facs_t * facs, void *dsdt)
fadt->day_alrm = 0xd; fadt->day_alrm = 0xd;
fadt->mon_alrm = 0x00; fadt->mon_alrm = 0x00;
fadt->century = 0x32; fadt->century = 0x32;
fadt->iapc_boot_arch = 0x00; fadt->iapc_boot_arch = ACPI_FADT_LEGACY_FREE;
fadt->flags = ACPI_FADT_WBINVD | ACPI_FADT_C1_SUPPORTED | fadt->flags = ACPI_FADT_WBINVD | ACPI_FADT_C1_SUPPORTED |
ACPI_FADT_SLEEP_BUTTON | ACPI_FADT_S4_RTC_WAKE | ACPI_FADT_SLEEP_BUTTON | ACPI_FADT_S4_RTC_WAKE |
ACPI_FADT_DOCKING_SUPPORTED | ACPI_FADT_RESET_REGISTER | ACPI_FADT_DOCKING_SUPPORTED | ACPI_FADT_RESET_REGISTER |

View File

@ -71,7 +71,7 @@ void acpi_create_fadt(acpi_fadt_t * fadt, acpi_facs_t * facs, void *dsdt)
fadt->day_alrm = 0xd; fadt->day_alrm = 0xd;
fadt->mon_alrm = 0x00; fadt->mon_alrm = 0x00;
fadt->century = 0x32; fadt->century = 0x32;
fadt->iapc_boot_arch = 0x00; fadt->iapc_boot_arch = ACPI_FADT_LEGACY_FREE;
fadt->flags = ACPI_FADT_WBINVD | ACPI_FADT_C1_SUPPORTED | fadt->flags = ACPI_FADT_WBINVD | ACPI_FADT_C1_SUPPORTED |
ACPI_FADT_SLEEP_BUTTON | ACPI_FADT_S4_RTC_WAKE | ACPI_FADT_SLEEP_BUTTON | ACPI_FADT_S4_RTC_WAKE |
ACPI_FADT_DOCKING_SUPPORTED | ACPI_FADT_RESET_REGISTER | ACPI_FADT_DOCKING_SUPPORTED | ACPI_FADT_RESET_REGISTER |

View File

@ -71,7 +71,7 @@ void acpi_create_fadt(acpi_fadt_t * fadt, acpi_facs_t * facs, void *dsdt)
fadt->day_alrm = 0xd; fadt->day_alrm = 0xd;
fadt->mon_alrm = 0x00; fadt->mon_alrm = 0x00;
fadt->century = 0x32; fadt->century = 0x32;
fadt->iapc_boot_arch = 0x00; fadt->iapc_boot_arch = ACPI_FADT_LEGACY_FREE;
fadt->flags = ACPI_FADT_WBINVD | ACPI_FADT_C1_SUPPORTED | fadt->flags = ACPI_FADT_WBINVD | ACPI_FADT_C1_SUPPORTED |
ACPI_FADT_SLEEP_BUTTON | ACPI_FADT_S4_RTC_WAKE | ACPI_FADT_SLEEP_BUTTON | ACPI_FADT_S4_RTC_WAKE |
ACPI_FADT_DOCKING_SUPPORTED | ACPI_FADT_RESET_REGISTER | ACPI_FADT_DOCKING_SUPPORTED | ACPI_FADT_RESET_REGISTER |

View File

@ -18,6 +18,7 @@
#include <string.h> #include <string.h>
#include <types.h> #include <types.h>
#include <arch/acpi.h>
#include <arch/acpigen.h> #include <arch/acpigen.h>
#include <arch/io.h> #include <arch/io.h>
#include <arch/smp/mpspec.h> #include <arch/smp/mpspec.h>
@ -222,7 +223,7 @@ void acpi_fill_in_fadt(acpi_fadt_t *fadt, acpi_facs_t *facs, void *dsdt)
fadt->day_alrm = 0x0D; fadt->day_alrm = 0x0D;
fadt->mon_alrm = 0x00; fadt->mon_alrm = 0x00;
fadt->century = 0x00; fadt->century = 0x00;
fadt->iapc_boot_arch = 0; fadt->iapc_boot_arch = ACPI_FADT_LEGACY_FREE;
fadt->flags = ACPI_FADT_WBINVD | ACPI_FADT_C1_SUPPORTED | fadt->flags = ACPI_FADT_WBINVD | ACPI_FADT_C1_SUPPORTED |
ACPI_FADT_C2_MP_SUPPORTED | ACPI_FADT_SLEEP_BUTTON | ACPI_FADT_C2_MP_SUPPORTED | ACPI_FADT_SLEEP_BUTTON |

View File

@ -275,7 +275,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
fadt->day_alrm = 0xd; fadt->day_alrm = 0xd;
fadt->mon_alrm = 0x00; fadt->mon_alrm = 0x00;
fadt->century = 0x00; fadt->century = 0x00;
fadt->iapc_boot_arch = 0; fadt->iapc_boot_arch = ACPI_FADT_LEGACY_FREE;
if (!IS_ENABLED(CONFIG_NO_FADT_8042)) if (!IS_ENABLED(CONFIG_NO_FADT_8042))
fadt->iapc_boot_arch |= ACPI_FADT_8042; fadt->iapc_boot_arch |= ACPI_FADT_8042;

View File

@ -82,7 +82,7 @@ void acpi_create_fadt(acpi_fadt_t * fadt, acpi_facs_t * facs, void *dsdt)
fadt->day_alrm = 0x7d; fadt->day_alrm = 0x7d;
fadt->mon_alrm = 0x7e; fadt->mon_alrm = 0x7e;
fadt->century = 0x32; fadt->century = 0x32;
fadt->iapc_boot_arch = 0; fadt->iapc_boot_arch = ACPI_FADT_LEGACY_FREE;
fadt->flags = 0xa5; fadt->flags = 0xa5;
#ifdef LONG_FADT #ifdef LONG_FADT

View File

@ -93,7 +93,7 @@ void acpi_create_fadt(acpi_fadt_t *fadt, acpi_facs_t *facs, void *dsdt)
fadt->mon_alrm = 0x7e; fadt->mon_alrm = 0x7e;
fadt->century = 0x32; fadt->century = 0x32;
fadt->iapc_boot_arch = 0x0; fadt->iapc_boot_arch = ACPI_FADT_LEGACY_FREE;
fadt->flags = 0x4a5; fadt->flags = 0x4a5;
fadt->reset_reg.space_id = 0; fadt->reset_reg.space_id = 0;