More compilation fixes
Change-Id: I9cfffd9792675eaaa036225f4229da127caa143f
This commit is contained in:
@@ -4,6 +4,7 @@ config BOARD_SPECIFIC_OPTIONS
|
|||||||
def_bool y
|
def_bool y
|
||||||
select BOARD_ROMSIZE_KB_16384
|
select BOARD_ROMSIZE_KB_16384
|
||||||
select DRIVERS_I2C_HID
|
select DRIVERS_I2C_HID
|
||||||
|
select DRIVERS_INTEL_PMC
|
||||||
select DRIVERS_SYSTEM76_DGPU
|
select DRIVERS_SYSTEM76_DGPU
|
||||||
select EC_SYSTEM76_EC
|
select EC_SYSTEM76_EC
|
||||||
select EC_SYSTEM76_EC_BAT_THRESHOLDS
|
select EC_SYSTEM76_EC_BAT_THRESHOLDS
|
||||||
|
@@ -1,11 +0,0 @@
|
|||||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
||||||
|
|
||||||
// GPP_K6 SCI
|
|
||||||
Method (_L06, 0, Serialized) {
|
|
||||||
Debug = Concatenate("GPE _L06: ", ToHexString(\_SB.PCI0.LPCB.EC0.WFNO))
|
|
||||||
If (\_SB.PCI0.LPCB.EC0.ECOK) {
|
|
||||||
If (\_SB.PCI0.LPCB.EC0.WFNO == One) {
|
|
||||||
Notify(\_SB.LID0, 0x80)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -3,8 +3,8 @@
|
|||||||
#include "../gpio.h"
|
#include "../gpio.h"
|
||||||
#include <drivers/system76/dgpu/acpi/dgpu.asl>
|
#include <drivers/system76/dgpu/acpi/dgpu.asl>
|
||||||
|
|
||||||
#define EC_GPE_SCI 0x03 /* GPP_K3 */
|
#define EC_GPE_SCI 0x6E // TODO
|
||||||
#define EC_GPE_SWI 0x06 /* GPP_K6 */
|
#define EC_GPE_SWI 0x6B // TODO
|
||||||
#include <ec/system76/ec/acpi/ec.asl>
|
#include <ec/system76/ec/acpi/ec.asl>
|
||||||
|
|
||||||
Scope (\_SB) {
|
Scope (\_SB) {
|
||||||
@@ -13,7 +13,3 @@ Scope (\_SB) {
|
|||||||
#include "backlight.asl"
|
#include "backlight.asl"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Scope (\_GPE) {
|
|
||||||
#include "gpe.asl"
|
|
||||||
}
|
|
||||||
|
@@ -1,5 +1,8 @@
|
|||||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
|
|
||||||
|
// Hack for including GMA ACPI code
|
||||||
|
#define SYSTEM76_ACPI_NO_GFX0
|
||||||
|
|
||||||
#include <acpi/acpi.h>
|
#include <acpi/acpi.h>
|
||||||
DefinitionBlock(
|
DefinitionBlock(
|
||||||
"dsdt.aml",
|
"dsdt.aml",
|
||||||
@@ -10,22 +13,25 @@ DefinitionBlock(
|
|||||||
0x20110725 // OEM revision
|
0x20110725 // OEM revision
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#include <soc/intel/tigerlake/acpi/platform.asl>
|
|
||||||
|
#include <soc/intel/common/block/acpi/acpi/platform.asl>
|
||||||
#include <soc/intel/common/block/acpi/acpi/globalnvs.asl>
|
#include <soc/intel/common/block/acpi/acpi/globalnvs.asl>
|
||||||
#include <cpu/intel/common/acpi/cpu.asl>
|
#include <cpu/intel/common/acpi/cpu.asl>
|
||||||
|
|
||||||
Device (\_SB.PCI0) {
|
Scope (\_SB) {
|
||||||
#include <soc/intel/common/block/acpi/acpi/northbridge.asl>
|
Device (PCI0) {
|
||||||
#include <soc/intel/tigerlake/acpi/southbridge.asl>
|
#include <soc/intel/common/block/acpi/acpi/northbridge.asl>
|
||||||
//TODO
|
#include <soc/intel/tigerlake/acpi/southbridge.asl>
|
||||||
#include <soc/intel/tigerlake/acpi/tcss.asl>
|
//TODO
|
||||||
|
#include <soc/intel/tigerlake/acpi/tcss.asl>
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#include <southbridge/intel/common/acpi/sleepstates.asl>
|
|
||||||
|
|
||||||
Scope (\_SB.PCI0.LPCB) {
|
Scope (\_SB.PCI0.LPCB) {
|
||||||
#include <drivers/pc80/pc/ps2_controller.asl>
|
#include <drivers/pc80/pc/ps2_controller.asl>
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "acpi/mainboard.asl"
|
#include "acpi/mainboard.asl"
|
||||||
|
|
||||||
|
#include <southbridge/intel/common/acpi/sleepstates.asl>
|
||||||
}
|
}
|
||||||
|
@@ -1,6 +1,9 @@
|
|||||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
|
|
||||||
|
// Hack for including GMA ACPI code
|
||||||
|
#ifndef SYSTEM76_ACPI_NO_GFX0
|
||||||
Device (GFX0)
|
Device (GFX0)
|
||||||
{
|
{
|
||||||
Name (_ADR, 0x00020000)
|
Name (_ADR, 0x00020000)
|
||||||
}
|
}
|
||||||
|
#endif // SYSTEM76_ACPI_NO_GFX0
|
||||||
|
Reference in New Issue
Block a user