ACPI: Rename FADT model and set it to zero
INT_MODEL defined in ACPI 1.0 and renamed to reserved since V 2.0. The value for this field is zero but 1 is allowed to maintain compatibility with ACPI 1.0. So set this value to zero as we are using greater version than ACPI 1.0. Change-Id: I910ead4e5618c958a7989f4c309a3a4bb938e31a Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/29986 Reviewed-by: Martin Roth <martinroth@google.com> Reviewed-by: David Guckian Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
c3d03b3197
commit
0d4de2a477
|
@ -484,7 +484,7 @@ typedef struct acpi_fadt {
|
|||
struct acpi_table_header header;
|
||||
u32 firmware_ctrl;
|
||||
u32 dsdt;
|
||||
u8 model; /* Eliminated in ACPI 2.0. Platforms should set
|
||||
u8 reserved; /* Eliminated in ACPI 2.0. Platforms should set
|
||||
* this field to zero but field values of one
|
||||
* are also allowed to maintain compatibility
|
||||
* with ACPI 1.0.
|
||||
|
|
|
@ -46,7 +46,7 @@ void acpi_create_fadt(acpi_fadt_t * fadt, acpi_facs_t * facs, void *dsdt)
|
|||
|
||||
fadt->firmware_ctrl = (unsigned long) facs;
|
||||
fadt->dsdt = (unsigned long) dsdt;
|
||||
fadt->model = 1;
|
||||
fadt->reserved = 0;
|
||||
fadt->preferred_pm_profile = 0; /* PM_MOBILE; */
|
||||
|
||||
fadt->sci_int = 0x9;
|
||||
|
|
|
@ -57,7 +57,7 @@ void acpi_create_fadt(acpi_fadt_t * fadt, acpi_facs_t * facs, void *dsdt)
|
|||
|
||||
fadt->firmware_ctrl = (unsigned long) facs;
|
||||
fadt->dsdt = (unsigned long) dsdt;
|
||||
fadt->model = 0x00;
|
||||
fadt->reserved = 0x00;
|
||||
fadt->preferred_pm_profile = PM_MOBILE;
|
||||
fadt->sci_int = 0x9;
|
||||
fadt->smi_cmd = 0;
|
||||
|
|
|
@ -33,7 +33,7 @@ void acpi_create_fadt(acpi_fadt_t * fadt, acpi_facs_t * facs, void *dsdt)
|
|||
|
||||
fadt->firmware_ctrl = (unsigned long) facs;
|
||||
fadt->dsdt = (unsigned long) dsdt;
|
||||
fadt->model = 1;
|
||||
fadt->reserved = 0;
|
||||
fadt->preferred_pm_profile = PM_MOBILE;
|
||||
|
||||
fadt->x_firmware_ctl_l = (unsigned long)facs;
|
||||
|
|
|
@ -33,7 +33,7 @@ void acpi_create_fadt(acpi_fadt_t *fadt, acpi_facs_t *facs, void *dsdt)
|
|||
|
||||
fadt->firmware_ctrl = (unsigned long) facs;
|
||||
fadt->dsdt = (unsigned long) dsdt;
|
||||
fadt->model = 1;
|
||||
fadt->reserved = 0;
|
||||
fadt->preferred_pm_profile = PM_MOBILE;
|
||||
|
||||
fadt->x_firmware_ctl_l = (unsigned long)facs;
|
||||
|
|
|
@ -33,7 +33,7 @@ void acpi_create_fadt(acpi_fadt_t * fadt, acpi_facs_t * facs, void *dsdt)
|
|||
|
||||
fadt->firmware_ctrl = (unsigned long) facs;
|
||||
fadt->dsdt = (unsigned long) dsdt;
|
||||
fadt->model = 1;
|
||||
fadt->reserved = 0;
|
||||
fadt->preferred_pm_profile = PM_MOBILE;
|
||||
|
||||
fadt->x_firmware_ctl_l = (unsigned long)facs;
|
||||
|
|
|
@ -32,7 +32,7 @@ void acpi_create_fadt(acpi_fadt_t * fadt, acpi_facs_t * facs, void *dsdt)
|
|||
|
||||
fadt->firmware_ctrl = (unsigned long) facs;
|
||||
fadt->dsdt = (unsigned long) dsdt;
|
||||
fadt->model = 1;
|
||||
fadt->reserved = 0;
|
||||
fadt->preferred_pm_profile = PM_MOBILE;
|
||||
|
||||
fadt->x_firmware_ctl_l = (unsigned long)facs;
|
||||
|
|
|
@ -23,6 +23,6 @@
|
|||
|
||||
void motherboard_fill_fadt(acpi_fadt_t *fadt)
|
||||
{
|
||||
fadt->model = 1;
|
||||
fadt->reserved = 0;
|
||||
fadt->preferred_pm_profile = PM_ENTERPRISE_SERVER;
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@ void acpi_create_fadt(acpi_fadt_t *fadt, acpi_facs_t *facs, void *dsdt)
|
|||
|
||||
fadt->firmware_ctrl = (unsigned long) facs;
|
||||
fadt->dsdt = (unsigned long) dsdt;
|
||||
fadt->model = 1;
|
||||
fadt->reserved = 0;
|
||||
fadt->preferred_pm_profile = PM_MOBILE;
|
||||
|
||||
fadt->x_firmware_ctl_l = (unsigned long)facs;
|
||||
|
|
|
@ -32,7 +32,7 @@ void acpi_create_fadt(acpi_fadt_t * fadt, acpi_facs_t * facs, void *dsdt)
|
|||
|
||||
fadt->firmware_ctrl = (unsigned long) facs;
|
||||
fadt->dsdt = (unsigned long) dsdt;
|
||||
fadt->model = 1;
|
||||
fadt->reserved = 0;
|
||||
fadt->preferred_pm_profile = PM_MOBILE;
|
||||
|
||||
fadt->x_firmware_ctl_l = (unsigned long)facs;
|
||||
|
|
|
@ -36,7 +36,7 @@ void acpi_create_fadt(acpi_fadt_t * fadt, acpi_facs_t * facs, void *dsdt)
|
|||
|
||||
fadt->firmware_ctrl = (unsigned long) facs;
|
||||
fadt->dsdt = (unsigned long) dsdt;
|
||||
fadt->model = 0x00;
|
||||
fadt->reserved = 0x00;
|
||||
fadt->preferred_pm_profile = PM_MOBILE;
|
||||
fadt->sci_int = 0x9;
|
||||
fadt->smi_cmd = APM_CNT;
|
||||
|
|
|
@ -36,7 +36,7 @@ void acpi_create_fadt(acpi_fadt_t * fadt, acpi_facs_t * facs, void *dsdt)
|
|||
|
||||
fadt->firmware_ctrl = (unsigned long) facs;
|
||||
fadt->dsdt = (unsigned long) dsdt;
|
||||
fadt->model = 0x00;
|
||||
fadt->reserved = 0x00;
|
||||
fadt->preferred_pm_profile = PM_MOBILE;
|
||||
fadt->sci_int = 0x9;
|
||||
fadt->smi_cmd = APM_CNT;
|
||||
|
|
|
@ -32,7 +32,7 @@ void acpi_create_fadt(acpi_fadt_t *fadt, acpi_facs_t *facs, void *dsdt)
|
|||
|
||||
fadt->firmware_ctrl = (u32)facs;
|
||||
fadt->dsdt = (u32)dsdt;
|
||||
fadt->model = 1;
|
||||
fadt->reserved = 0;
|
||||
fadt->preferred_pm_profile = PM_MOBILE;
|
||||
|
||||
fadt->x_firmware_ctl_l = (u32)facs;
|
||||
|
|
|
@ -36,7 +36,7 @@ void acpi_create_fadt(acpi_fadt_t * fadt, acpi_facs_t * facs, void *dsdt)
|
|||
|
||||
fadt->firmware_ctrl = (unsigned long) facs;
|
||||
fadt->dsdt = (unsigned long) dsdt;
|
||||
fadt->model = 0x00;
|
||||
fadt->reserved = 0x00;
|
||||
fadt->preferred_pm_profile = PM_MOBILE;
|
||||
fadt->sci_int = 0x9;
|
||||
fadt->smi_cmd = APM_CNT;
|
||||
|
|
|
@ -24,6 +24,6 @@
|
|||
|
||||
void motherboard_fill_fadt(acpi_fadt_t *fadt)
|
||||
{
|
||||
fadt->model = 1;
|
||||
fadt->reserved = 0;
|
||||
fadt->preferred_pm_profile = PM_ENTERPRISE_SERVER;
|
||||
}
|
||||
|
|
|
@ -87,7 +87,7 @@ void acpi_create_fadt(acpi_fadt_t *fadt, acpi_facs_t *facs, void *dsdt)
|
|||
|
||||
fadt->firmware_ctrl = (u32) facs;
|
||||
fadt->dsdt = (u32) dsdt;
|
||||
fadt->model = 0; /* reserved, should be 0 ACPI 3.0 */
|
||||
fadt->reserved = 0; /* reserved, should be 0 ACPI 3.0 */
|
||||
fadt->preferred_pm_profile = FADT_PM_PROFILE;
|
||||
fadt->sci_int = 9; /* IRQ 09 - ACPI SCI */
|
||||
|
||||
|
|
|
@ -198,7 +198,7 @@ void acpi_fill_in_fadt(acpi_fadt_t * fadt, acpi_facs_t * facs, void *dsdt)
|
|||
fadt->firmware_ctrl = (unsigned long) facs;
|
||||
fadt->dsdt = (unsigned long) dsdt;
|
||||
|
||||
fadt->model = 0; /* reserved, should be 0 ACPI 3.0 */
|
||||
fadt->reserved = 0; /* reserved, should be 0 ACPI 3.0 */
|
||||
fadt->preferred_pm_profile = config->fadt_pm_profile; /* unknown is default */
|
||||
|
||||
/* System Management */
|
||||
|
|
|
@ -178,7 +178,7 @@ void acpi_fill_in_fadt(acpi_fadt_t *fadt, acpi_facs_t *facs, void *dsdt)
|
|||
fadt->firmware_ctrl = (unsigned long) facs;
|
||||
fadt->dsdt = (unsigned long) dsdt;
|
||||
|
||||
fadt->model = 0; /* reserved, should be 0 ACPI 3.0 */
|
||||
fadt->reserved = 0; /* reserved, should be 0 ACPI 3.0 */
|
||||
fadt->preferred_pm_profile = 0;
|
||||
fadt->sci_int = acpi_sci_irq();
|
||||
|
||||
|
|
|
@ -67,7 +67,7 @@ void acpi_create_fadt(acpi_fadt_t * fadt, acpi_facs_t * facs, void *dsdt)
|
|||
else
|
||||
fadt->dsdt = (uintptr_t)dsdt;
|
||||
|
||||
fadt->model = 0; /* reserved, should be 0 ACPI 3.0 */
|
||||
fadt->reserved = 0; /* reserved, should be 0 ACPI 3.0 */
|
||||
fadt->preferred_pm_profile = FADT_PM_PROFILE;
|
||||
fadt->sci_int = 9; /* HUDSON - IRQ 09 - ACPI SCI */
|
||||
|
||||
|
|
|
@ -71,7 +71,7 @@ void acpi_create_fadt(acpi_fadt_t * fadt, acpi_facs_t * facs, void *dsdt)
|
|||
else
|
||||
fadt->dsdt = (uintptr_t)dsdt;
|
||||
|
||||
fadt->model = 0; /* reserved, should be 0 ACPI 3.0 */
|
||||
fadt->reserved = 0; /* reserved, should be 0 ACPI 3.0 */
|
||||
fadt->preferred_pm_profile = FADT_PM_PROFILE;
|
||||
fadt->sci_int = 9; /* HUDSON 1 - IRQ 09 - ACPI SCI */
|
||||
fadt->smi_cmd = 0; /* disable system management mode */
|
||||
|
|
|
@ -59,7 +59,7 @@ void acpi_create_fadt(acpi_fadt_t * fadt, acpi_facs_t * facs, void *dsdt)
|
|||
|
||||
fadt->firmware_ctrl = (u32) facs;
|
||||
fadt->dsdt = (u32) dsdt;
|
||||
fadt->model = 0; /* reserved, should be 0 ACPI 3.0 */
|
||||
fadt->reserved = 0; /* reserved, should be 0 ACPI 3.0 */
|
||||
fadt->preferred_pm_profile = FADT_PM_PROFILE;
|
||||
fadt->sci_int = 9; /* HUDSON - IRQ 09 - ACPI SCI */
|
||||
|
||||
|
|
|
@ -745,7 +745,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
|||
u16 pmbase = pci_read_config16(dev, 0x40) & 0xfffe;
|
||||
int c2_latency;
|
||||
|
||||
fadt->model = 1;
|
||||
fadt->reserved = 0;
|
||||
|
||||
fadt->sci_int = 0x9;
|
||||
fadt->smi_cmd = APM_CNT;
|
||||
|
|
|
@ -59,7 +59,7 @@ void acpi_fill_in_fadt(acpi_fadt_t * fadt, acpi_facs_t * facs, void *dsdt)
|
|||
fadt->firmware_ctrl = (unsigned long) facs;
|
||||
fadt->dsdt = (unsigned long) dsdt;
|
||||
|
||||
fadt->model = 0; /* reserved, should be 0 ACPI 3.0 */
|
||||
fadt->reserved = 0; /* reserved, should be 0 ACPI 3.0 */
|
||||
fadt->preferred_pm_profile = config->fadt_pm_profile; /* unknown is default */
|
||||
|
||||
/* System Management */
|
||||
|
|
|
@ -572,7 +572,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
|||
fadt->mon_alrm = 0x00;
|
||||
fadt->century = 0x32;
|
||||
|
||||
fadt->model = 1;
|
||||
fadt->reserved = 0;
|
||||
fadt->sci_int = 0x9;
|
||||
fadt->smi_cmd = APM_CNT;
|
||||
fadt->acpi_enable = APM_CNT_ACPI_ENABLE;
|
||||
|
|
|
@ -585,7 +585,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
|||
fadt->mon_alrm = 0x00;
|
||||
fadt->century = 0x32;
|
||||
|
||||
fadt->model = 1;
|
||||
fadt->reserved = 0;
|
||||
fadt->sci_int = 0x9;
|
||||
fadt->smi_cmd = APM_CNT;
|
||||
fadt->acpi_enable = APM_CNT_ACPI_ENABLE;
|
||||
|
|
|
@ -655,7 +655,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
|||
u16 pmbase = pci_read_config16(dev, 0x40) & 0xfffe;
|
||||
int c2_latency;
|
||||
|
||||
fadt->model = 1;
|
||||
fadt->reserved = 0;
|
||||
|
||||
fadt->sci_int = 0x9;
|
||||
fadt->smi_cmd = APM_CNT;
|
||||
|
|
Loading…
Reference in New Issue