blob: c31bd6d71bb8428294b5eaf27f62eb3d5f598a38 [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.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
Patrick Georgib890a122015-03-26 15:17:45 +010018 * Foundation, Inc.
Sven Schnellee8a7df82011-02-16 15:04:59 +000019 */
20
Vladimir Serbinenkodd2bc3f2014-10-31 09:16:31 +010021#include "smi.h"
22
Vladimir Serbinenkoeb13b6f2013-11-26 10:13:28 +010023#define THINKPAD_EC_GPE 28
Vladimir Serbinenkodd2bc3f2014-10-31 09:16:31 +010024#define BRIGHTNESS_UP \_SB.PCI0.GFX0.INCB
25#define BRIGHTNESS_DOWN \_SB.PCI0.GFX0.DECB
Vladimir Serbinenkod7813432013-12-07 12:19:08 +010026#define ACPI_VIDEO_DEVICE \_SB.PCI0.GFX0
Vladimir Serbinenkoeb13b6f2013-11-26 10:13:28 +010027
Sven Schnellee8a7df82011-02-16 15:04:59 +000028DefinitionBlock(
29 "dsdt.aml",
30 "DSDT",
31 0x03, // DSDT revision: ACPI v3.0
32 "COREv4", // OEM id
Paul Menzeld2e0e292013-02-04 10:31:34 +010033 "COREBOOT", // OEM table id
Sven Schnellee8a7df82011-02-16 15:04:59 +000034 0x20090419 // OEM revision
35)
36{
37 // Some generic macros
38 #include "acpi/platform.asl"
39
40 // global NVS and variables
Patrick Georgi91bd3062012-02-16 19:16:14 +010041 #include <southbridge/intel/i82801gx/acpi/globalnvs.asl>
Vladimir Serbinenko24813c12014-10-16 10:39:06 +020042 #include <southbridge/intel/i82801gx/acpi/platform.asl>
Sven Schnellee8a7df82011-02-16 15:04:59 +000043
44 // General Purpose Events
45 #include "acpi/gpe.asl"
46
47 // mainboard specific devices
48 #include "acpi/mainboard.asl"
49
Paul Menzel469f5932015-10-13 21:07:32 +020050 #include <cpu/intel/common/acpi/cpu.asl>
Vladimir Serbinenko24813c12014-10-16 10:39:06 +020051
Sven Schnellee8a7df82011-02-16 15:04:59 +000052 Scope (\_SB) {
53 Device (PCI0)
54 {
Patrick Georgi91bd3062012-02-16 19:16:14 +010055 #include <northbridge/intel/i945/acpi/i945.asl>
56 #include <southbridge/intel/i82801gx/acpi/ich7.asl>
Sven Schnellee8a7df82011-02-16 15:04:59 +000057 }
58 }
59
60 /* Chipset specific sleep states */
Patrick Georgi91bd3062012-02-16 19:16:14 +010061 #include <southbridge/intel/i82801gx/acpi/sleepstates.asl>
Sven Schnelleffcd1432011-04-11 19:43:32 +000062
63 // Dock support code
64 #include "acpi/dock.asl"
Sven Schnellee8a7df82011-02-16 15:04:59 +000065}