blob: e2292ff011f34b42bb039d2352eb995168b36a03 [file] [log] [blame]
Sven Schnellee8a7df82011-02-16 15:04:59 +00001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2007-2009 coresystems GmbH
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; version 2 of
9 * the License.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
Sven Schnellee8a7df82011-02-16 15:04:59 +000015 */
16
Vladimir Serbinenkodd2bc3f2014-10-31 09:16:31 +010017#include "smi.h"
18
Vladimir Serbinenkoeb13b6f2013-11-26 10:13:28 +010019#define THINKPAD_EC_GPE 28
Vladimir Serbinenkodd2bc3f2014-10-31 09:16:31 +010020#define BRIGHTNESS_UP \_SB.PCI0.GFX0.INCB
21#define BRIGHTNESS_DOWN \_SB.PCI0.GFX0.DECB
Vladimir Serbinenkod7813432013-12-07 12:19:08 +010022#define ACPI_VIDEO_DEVICE \_SB.PCI0.GFX0
Vladimir Serbinenkoeb13b6f2013-11-26 10:13:28 +010023
Sven Schnellee8a7df82011-02-16 15:04:59 +000024DefinitionBlock(
25 "dsdt.aml",
26 "DSDT",
27 0x03, // DSDT revision: ACPI v3.0
28 "COREv4", // OEM id
Paul Menzeld2e0e292013-02-04 10:31:34 +010029 "COREBOOT", // OEM table id
Sven Schnellee8a7df82011-02-16 15:04:59 +000030 0x20090419 // OEM revision
31)
32{
33 // Some generic macros
34 #include "acpi/platform.asl"
35
36 // global NVS and variables
Patrick Georgi91bd3062012-02-16 19:16:14 +010037 #include <southbridge/intel/i82801gx/acpi/globalnvs.asl>
Paul Menzel8fc5c642015-10-13 21:19:49 +020038 #include <southbridge/intel/common/acpi/platform.asl>
Sven Schnellee8a7df82011-02-16 15:04:59 +000039
40 // General Purpose Events
41 #include "acpi/gpe.asl"
42
43 // mainboard specific devices
44 #include "acpi/mainboard.asl"
45
Paul Menzel469f5932015-10-13 21:07:32 +020046 #include <cpu/intel/common/acpi/cpu.asl>
Vladimir Serbinenko24813c12014-10-16 10:39:06 +020047
Sven Schnellee8a7df82011-02-16 15:04:59 +000048 Scope (\_SB) {
49 Device (PCI0)
50 {
Patrick Georgi91bd3062012-02-16 19:16:14 +010051 #include <northbridge/intel/i945/acpi/i945.asl>
52 #include <southbridge/intel/i82801gx/acpi/ich7.asl>
Sven Schnellee8a7df82011-02-16 15:04:59 +000053 }
54 }
55
56 /* Chipset specific sleep states */
Patrick Georgi91bd3062012-02-16 19:16:14 +010057 #include <southbridge/intel/i82801gx/acpi/sleepstates.asl>
Sven Schnelleffcd1432011-04-11 19:43:32 +000058
59 // Dock support code
60 #include "acpi/dock.asl"
Sven Schnellee8a7df82011-02-16 15:04:59 +000061}