Vladimir Serbinenko | b1ccccc | 2014-02-19 22:20:14 +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 | b1ccccc | 2014-02-19 22:20:14 +0100 | [diff] [blame] | 15 | */ |
| 16 | |
Elyes HAOUAS | 6d19a20 | 2018-11-22 11:15:29 +0100 | [diff] [blame] | 17 | #include <arch/acpi.h> |
Vladimir Serbinenko | b1ccccc | 2014-02-19 22:20:14 +0100 | [diff] [blame] | 18 | DefinitionBlock( |
| 19 | "dsdt.aml", |
| 20 | "DSDT", |
Elyes HAOUAS | 0cca6e2 | 2018-11-13 14:23:29 +0100 | [diff] [blame] | 21 | 0x02, /* DSDT revision: ACPI v2.0 and up */ |
Elyes HAOUAS | 6d19a20 | 2018-11-22 11:15:29 +0100 | [diff] [blame] | 22 | OEM_ID, |
| 23 | ACPI_TABLE_CREATOR, |
Vladimir Serbinenko | b1ccccc | 2014-02-19 22:20:14 +0100 | [diff] [blame] | 24 | 0x20140108 /* OEM revision */ |
| 25 | ) |
| 26 | { |
Arthur Heymans | 6c13b04 | 2019-11-02 17:19:26 +0100 | [diff] [blame] | 27 | #include <southbridge/intel/common/acpi/platform.asl> |
Vladimir Serbinenko | d2aa473 | 2015-05-17 00:20:52 +0200 | [diff] [blame] | 28 | |
Vladimir Serbinenko | b1ccccc | 2014-02-19 22:20:14 +0100 | [diff] [blame] | 29 | #include "acpi/platform.asl" |
| 30 | |
| 31 | /* global NVS and variables */ |
| 32 | #include <southbridge/intel/bd82x6x/acpi/globalnvs.asl> |
| 33 | |
| 34 | /* General Purpose Events */ |
| 35 | #include "acpi/gpe.asl" |
| 36 | |
Arthur Heymans | aaced4a | 2018-11-28 13:53:15 +0100 | [diff] [blame] | 37 | #include <cpu/intel/common/acpi/cpu.asl> |
Vladimir Serbinenko | b1ccccc | 2014-02-19 22:20:14 +0100 | [diff] [blame] | 38 | |
| 39 | Scope (\_SB) { |
| 40 | Device (PCI0) |
| 41 | { |
Angel Pons | 95de231 | 2020-02-17 13:08:53 +0100 | [diff] [blame^] | 42 | #include <northbridge/intel/ironlake/acpi/ironlake.asl> |
Vladimir Serbinenko | b1ccccc | 2014-02-19 22:20:14 +0100 | [diff] [blame] | 43 | #include <southbridge/intel/bd82x6x/acpi/pch.asl> |
Nico Huber | 954a55b | 2015-08-27 13:31:46 +0200 | [diff] [blame] | 44 | |
| 45 | #include <drivers/intel/gma/acpi/default_brightness_levels.asl> |
Vladimir Serbinenko | b1ccccc | 2014-02-19 22:20:14 +0100 | [diff] [blame] | 46 | } |
| 47 | Device (UNCR) |
| 48 | { |
| 49 | Name (_BBN, 0xFF) |
Vladimir Serbinenko | b1ccccc | 2014-02-19 22:20:14 +0100 | [diff] [blame] | 50 | Name (RID, 0x00) |
| 51 | Name (_HID, EisaId ("PNP0A03")) |
| 52 | Name (_CRS, ResourceTemplate () |
| 53 | { |
| 54 | WordBusNumber (ResourceProducer, MinFixed, MaxFixed, PosDecode, |
| 55 | 0x0000, /* Granularity */ |
| 56 | 0x00FF, /* Range Minimum */ |
| 57 | 0x00FF, /* Range Maximum */ |
| 58 | 0x0000, /* Translation Offset */ |
| 59 | 0x0001, /* Length */ |
| 60 | ,, ) |
| 61 | }) |
| 62 | Device (SAD) |
| 63 | { |
| 64 | Name (_ADR, 0x01) |
| 65 | Name (RID, 0x00) |
| 66 | OperationRegion (SADC, PCI_Config, 0x00, 0x0100) |
| 67 | Field (SADC, DWordAcc, NoLock, Preserve) |
| 68 | { |
| 69 | Offset (0x40), |
| 70 | PAM0, 8, |
| 71 | PAM1, 8, |
| 72 | PAM2, 8, |
| 73 | PAM3, 8, |
| 74 | PAM4, 8, |
| 75 | PAM5, 8, |
| 76 | PAM6, 8 |
| 77 | } |
| 78 | } |
| 79 | } |
| 80 | } |
| 81 | |
Subrata Banik | 2715cdb | 2019-10-30 16:48:19 +0530 | [diff] [blame] | 82 | #include <southbridge/intel/common/acpi/sleepstates.asl> |
Vladimir Serbinenko | b1ccccc | 2014-02-19 22:20:14 +0100 | [diff] [blame] | 83 | } |