soc/amd/picasso: use FADT devicetree configuration options
Two of the items in the FADT ACPI table frequently are partially board- specific, so let's make it easy to update them via devicetree settings. - fadt_boot_arch 0="legacy free" which while reasonable, probably isn't what will be wanted by most mainboards, so this should generally get updated in the specific devicetree. - In fadt_flags all chipset-specific flags get set while the mainboard has to set all other flags that it needs to have set. This patch changes the default for fadt_boot_arch. Change-Id: I6e8d0c60cadfdd24b6926703b252abbc56d436de Signed-off-by: Martin Roth <martinroth@chromium.org> Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/43418 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Raul Rangel <rrangel@chromium.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
parent
90341c18a3
commit
eca8faa176
|
@ -88,6 +88,8 @@ unsigned long acpi_fill_madt(unsigned long current)
|
|||
*/
|
||||
void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||
{
|
||||
const struct soc_amd_picasso_config *cfg = config_of_soc();
|
||||
|
||||
printk(BIOS_DEBUG, "pm_base: 0x%04x\n", PICASSO_ACPI_IO_BASE);
|
||||
|
||||
fadt->sci_int = 9; /* IRQ 09 - ACPI SCI */
|
||||
|
@ -115,17 +117,17 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
|||
fadt->day_alrm = 0x0d;
|
||||
fadt->mon_alrm = 0;
|
||||
fadt->century = 0x32;
|
||||
fadt->iapc_boot_arch = ACPI_FADT_LEGACY_DEVICES | ACPI_FADT_8042;
|
||||
fadt->iapc_boot_arch = cfg->fadt_boot_arch; /* legacy free default */
|
||||
fadt->res2 = 0; /* reserved, MUST be 0 ACPI 3.0 */
|
||||
fadt->flags |= ACPI_FADT_WBINVD | /* See table 5-10 ACPI 3.0a spec */
|
||||
ACPI_FADT_C1_SUPPORTED |
|
||||
ACPI_FADT_SLEEP_BUTTON |
|
||||
ACPI_FADT_S4_RTC_WAKE |
|
||||
ACPI_FADT_32BIT_TIMER |
|
||||
ACPI_FADT_PCI_EXPRESS_WAKE |
|
||||
ACPI_FADT_PLATFORM_CLOCK |
|
||||
ACPI_FADT_S4_RTC_VALID |
|
||||
ACPI_FADT_REMOTE_POWER_ON;
|
||||
fadt->flags |= ACPI_FADT_WBINVD | /* See table 5-34 ACPI 6.3 spec */
|
||||
ACPI_FADT_C1_SUPPORTED |
|
||||
ACPI_FADT_S4_RTC_WAKE |
|
||||
ACPI_FADT_32BIT_TIMER |
|
||||
ACPI_FADT_PCI_EXPRESS_WAKE |
|
||||
ACPI_FADT_PLATFORM_CLOCK |
|
||||
ACPI_FADT_S4_RTC_VALID |
|
||||
ACPI_FADT_REMOTE_POWER_ON;
|
||||
fadt->flags |= cfg->fadt_flags; /* additional board-specific flags */
|
||||
|
||||
fadt->ARM_boot_arch = 0; /* MUST be 0 ACPI 3.0 */
|
||||
fadt->FADT_MinorVersion = 0; /* MUST be 0 ACPI 3.0 */
|
||||
|
|
Loading…
Reference in New Issue