blob: 983dc01f109b6a535f0c0857513942cac3183ae4 [file] [log] [blame]
Patrick Georgi2efc8802012-11-06 11:03:53 +01001/*
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.
Patrick Georgi2efc8802012-11-06 11:03:53 +010019 */
20
21Device (GFX0)
22{
23 Name (_ADR, 0x00020000)
24
Vladimir Serbinenkof3155d22014-08-10 23:53:42 +020025 OperationRegion (GFXC, PCI_Config, 0x00, 0x0100)
26 Field (GFXC, DWordAcc, NoLock, Preserve)
27 {
28 Offset (0x10),
Vladimir Serbinenkodd2bc3f2014-10-31 09:16:31 +010029 BAR0, 64
Edward O'Callaghan4568f192014-12-06 14:32:23 +110030 }
Vladimir Serbinenkof3155d22014-08-10 23:53:42 +020031
Nico Huberd5842f52015-09-24 17:45:45 +020032 OperationRegion (GFRG, SystemMemory, And (BAR0, 0xfffffffffffffff0), 0x400000)
Vladimir Serbinenkof3155d22014-08-10 23:53:42 +020033 Field (GFRG, DWordAcc, NoLock, Preserve)
34 {
Nico Huberd5842f52015-09-24 17:45:45 +020035 Offset (0x61254),
36 BCLV, 16,
37 BCLM, 16,
Vladimir Serbinenkof3155d22014-08-10 23:53:42 +020038 }
39
Nico Huber954a55b2015-08-27 13:31:46 +020040#include "configure_brightness_levels.asl"
Nico Huber62047d12015-08-27 15:07:03 +020041#include "common.asl"
Patrick Georgi2efc8802012-11-06 11:03:53 +010042}