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