Nicolas Reinecke | b165c4a | 2015-07-04 23:37:06 +0200 | [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 | |
| 17 | #define THINKPAD_EC_GPE 17 |
| 18 | #define BRIGHTNESS_UP \_SB.PCI0.GFX0.INCB |
| 19 | #define BRIGHTNESS_DOWN \_SB.PCI0.GFX0.DECB |
| 20 | #define ACPI_VIDEO_DEVICE \_SB.PCI0.GFX0 |
| 21 | #define EC_LENOVO_H8_ME_WORKAROUND 1 |
| 22 | |
| 23 | #include <arch/acpi.h> |
| 24 | DefinitionBlock( |
| 25 | "dsdt.aml", |
| 26 | "DSDT", |
| 27 | 0x02, /* DSDT revision: ACPI v2.0 and up */ |
| 28 | OEM_ID, |
| 29 | ACPI_TABLE_CREATOR, |
| 30 | 0x20130325 /* OEM revision */ |
| 31 | ) |
| 32 | { |
| 33 | #include <southbridge/intel/bd82x6x/acpi/platform.asl> |
| 34 | |
| 35 | /* Some generic macros */ |
| 36 | #include "acpi/platform.asl" |
| 37 | |
| 38 | /* global NVS and variables */ |
| 39 | #include <southbridge/intel/bd82x6x/acpi/globalnvs.asl> |
| 40 | |
| 41 | /* General Purpose Events */ |
| 42 | #include "acpi/gpe.asl" |
| 43 | |
| 44 | #include <cpu/intel/common/acpi/cpu.asl> |
| 45 | |
| 46 | Scope (\_SB) { |
| 47 | Device (PCI0) |
| 48 | { |
| 49 | #include <northbridge/intel/nehalem/acpi/nehalem.asl> |
| 50 | #include <southbridge/intel/bd82x6x/acpi/pch.asl> |
| 51 | |
| 52 | #include <drivers/intel/gma/acpi/default_brightness_levels.asl> |
| 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 | |
| 90 | /* Chipset specific sleep states */ |
| 91 | #include <southbridge/intel/i82801gx/acpi/sleepstates.asl> |
| 92 | |
| 93 | /* Dock support code */ |
| 94 | #include "acpi/dock.asl" |
| 95 | } |