mb/system76: Clean up dsdt.asl

- Use ACPI_DSDT_REV_2 instead of hard-coded value
- Update thelio-b1 to match other boards

Change-Id: I62bf9bfc4114c581bd0ec02d5a081d582a7aef32
This commit is contained in:
Tim Crawford 2021-01-27 09:48:30 -07:00 committed by Jeremy Soller
parent f32ef3e031
commit 67d15c2b28
3 changed files with 9 additions and 31 deletions

View File

@ -4,7 +4,7 @@
DefinitionBlock( DefinitionBlock(
"dsdt.aml", "dsdt.aml",
"DSDT", "DSDT",
0x02, // DSDT revision: ACPI v2.0 and up ACPI_DSDT_REV_2,
OEM_ID, OEM_ID,
ACPI_TABLE_CREATOR, ACPI_TABLE_CREATOR,
0x20110725 // OEM revision 0x20110725 // OEM revision

View File

@ -4,7 +4,7 @@
DefinitionBlock( DefinitionBlock(
"dsdt.aml", "dsdt.aml",
"DSDT", "DSDT",
0x02, // DSDT revision: ACPI v2.0 and up ACPI_DSDT_REV_2,
OEM_ID, OEM_ID,
ACPI_TABLE_CREATOR, ACPI_TABLE_CREATOR,
0x20110725 // OEM revision 0x20110725 // OEM revision

View File

@ -1,51 +1,29 @@
/* /* SPDX-License-Identifier: GPL-2.0-only */
* This file is part of the coreboot project.
*
* Copyright 2019 System76
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#include <acpi/acpi.h> #include <acpi/acpi.h>
DefinitionBlock( DefinitionBlock(
"dsdt.aml", "dsdt.aml",
"DSDT", "DSDT",
0x02, // DSDT revision: ACPI v2.0 and up ACPI_DSDT_REV_2,
OEM_ID, OEM_ID,
ACPI_TABLE_CREATOR, ACPI_TABLE_CREATOR,
0x20110725 // OEM revision 0x20110725 // OEM revision
) )
{ {
// Some generic macros #include <soc/intel/common/block/acpi/acpi/platform.asl>
#include <soc/intel/cannonlake/acpi/platform.asl>
// global NVS and variables
#include <soc/intel/common/block/acpi/acpi/globalnvs.asl> #include <soc/intel/common/block/acpi/acpi/globalnvs.asl>
// CPU
#include <cpu/intel/common/acpi/cpu.asl> #include <cpu/intel/common/acpi/cpu.asl>
Scope (\_SB) { Device (\_SB.PCI0)
Device (PCI0) {
{ #include <soc/intel/common/block/acpi/acpi/northbridge.asl>
#include <soc/intel/cannonlake/acpi/northbridge.asl> #include <soc/intel/cannonlake/acpi/southbridge.asl>
#include <soc/intel/cannonlake/acpi/southbridge.asl>
}
} }
// Chipset specific sleep states
#include <southbridge/intel/common/acpi/sleepstates.asl> #include <southbridge/intel/common/acpi/sleepstates.asl>
Scope (\_SB.PCI0.LPCB) Scope (\_SB.PCI0.LPCB)
{ {
/* ACPI code for EC SuperIO functions */
#include <drivers/pc80/pc/ps2_controller.asl> #include <drivers/pc80/pc/ps2_controller.asl>
} }
} }