Vladimir Serbinenko | 9bf05de | 2013-11-14 19:11:19 +0100 | [diff] [blame] | 1 | /* |
| 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 Georgi | b890a12 | 2015-03-26 15:17:45 +0100 | [diff] [blame] | 18 | * Foundation, Inc. |
Vladimir Serbinenko | 9bf05de | 2013-11-14 19:11:19 +0100 | [diff] [blame] | 19 | */ |
| 20 | |
| 21 | #define THINKPAD_EC_GPE 17 |
Vladimir Serbinenko | dd2bc3f | 2014-10-31 09:16:31 +0100 | [diff] [blame] | 22 | #define BRIGHTNESS_UP \_SB.PCI0.GFX0.INCB |
| 23 | #define BRIGHTNESS_DOWN \_SB.PCI0.GFX0.DECB |
Vladimir Serbinenko | 9bf05de | 2013-11-14 19:11:19 +0100 | [diff] [blame] | 24 | #define ACPI_VIDEO_DEVICE \_SB.PCI0.GFX0 |
Vladimir Serbinenko | e0ceac3 | 2014-07-29 00:51:31 +0200 | [diff] [blame] | 25 | #define EC_LENOVO_H8_ME_WORKAROUND 1 |
Vladimir Serbinenko | 9bf05de | 2013-11-14 19:11:19 +0100 | [diff] [blame] | 26 | |
| 27 | DefinitionBlock( |
| 28 | "dsdt.aml", |
| 29 | "DSDT", |
| 30 | 0x03, /* DSDT revision: ACPI v3.0 */ |
| 31 | "COREv4", /* OEM id */ |
| 32 | "COREBOOT", /* OEM table id */ |
| 33 | 0x20130325 /* OEM revision */ |
| 34 | ) |
| 35 | { |
| 36 | /* Some generic macros */ |
| 37 | #include "acpi/platform.asl" |
| 38 | |
| 39 | /* global NVS and variables */ |
| 40 | #include <southbridge/intel/bd82x6x/acpi/globalnvs.asl> |
| 41 | |
| 42 | /* General Purpose Events */ |
| 43 | #include "acpi/gpe.asl" |
| 44 | |
Vladimir Serbinenko | 9bf05de | 2013-11-14 19:11:19 +0100 | [diff] [blame] | 45 | #include <cpu/intel/model_206ax/acpi/cpu.asl> |
| 46 | |
| 47 | Scope (\_SB) { |
| 48 | Device (PCI0) |
| 49 | { |
| 50 | #include <northbridge/intel/nehalem/acpi/nehalem.asl> |
| 51 | #include <southbridge/intel/bd82x6x/acpi/pch.asl> |
Kyösti Mälkki | a482322 | 2015-06-06 11:03:12 +0300 | [diff] [blame^] | 52 | #include <southbridge/intel/bd82x6x/acpi/default_irq_route.asl> |
Vladimir Serbinenko | 9bf05de | 2013-11-14 19:11:19 +0100 | [diff] [blame] | 53 | } |
| 54 | Device (UNCR) |
| 55 | { |
| 56 | Name (_BBN, 0xFF) |
| 57 | Name (_ADR, 0x00) |
| 58 | Name (RID, 0x00) |
| 59 | Name (_HID, EisaId ("PNP0A03")) |
| 60 | Name (_CRS, ResourceTemplate () |
| 61 | { |
| 62 | WordBusNumber (ResourceProducer, MinFixed, MaxFixed, PosDecode, |
| 63 | 0x0000, /* Granularity */ |
| 64 | 0x00FF, /* Range Minimum */ |
| 65 | 0x00FF, /* Range Maximum */ |
| 66 | 0x0000, /* Translation Offset */ |
| 67 | 0x0001, /* Length */ |
| 68 | ,, ) |
| 69 | }) |
| 70 | Device (SAD) |
| 71 | { |
| 72 | Name (_ADR, 0x01) |
| 73 | Name (RID, 0x00) |
| 74 | OperationRegion (SADC, PCI_Config, 0x00, 0x0100) |
| 75 | Field (SADC, DWordAcc, NoLock, Preserve) |
| 76 | { |
| 77 | Offset (0x40), |
| 78 | PAM0, 8, |
| 79 | PAM1, 8, |
| 80 | PAM2, 8, |
| 81 | PAM3, 8, |
| 82 | PAM4, 8, |
| 83 | PAM5, 8, |
| 84 | PAM6, 8 |
| 85 | } |
| 86 | } |
| 87 | } |
| 88 | } |
| 89 | |
Vladimir Serbinenko | a93c014 | 2015-05-21 09:28:14 +0200 | [diff] [blame] | 90 | /* |
| 91 | * LPC Trusted Platform Module |
| 92 | */ |
| 93 | Scope (\_SB.PCI0.LPCB) |
| 94 | { |
| 95 | #include <drivers/pc80/tpm/acpi/tpm.asl> |
| 96 | } |
| 97 | |
Vladimir Serbinenko | 9bf05de | 2013-11-14 19:11:19 +0100 | [diff] [blame] | 98 | /* Chipset specific sleep states */ |
| 99 | #include <southbridge/intel/i82801gx/acpi/sleepstates.asl> |
| 100 | |
| 101 | /* Dock support code */ |
| 102 | #include "acpi/dock.asl" |
| 103 | } |