Nico Huber | 53ec8c5 | 2020-03-21 19:50:26 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Patrick Georgi | 2efc880 | 2012-11-06 11:03:53 +0100 | [diff] [blame] | 2 | |
Matt DeVillier | c6589ae | 2020-11-28 13:17:54 -0600 | [diff] [blame^] | 3 | Scope (GFX0) |
Patrick Georgi | 2efc880 | 2012-11-06 11:03:53 +0100 | [diff] [blame] | 4 | { |
Vladimir Serbinenko | f3155d2 | 2014-08-10 23:53:42 +0200 | [diff] [blame] | 5 | OperationRegion (GFXC, PCI_Config, 0x00, 0x0100) |
| 6 | Field (GFXC, DWordAcc, NoLock, Preserve) |
| 7 | { |
| 8 | Offset (0x10), |
Patrick Rudolph | 6838aae | 2018-07-29 10:53:01 +0200 | [diff] [blame] | 9 | BAR0, 64, |
| 10 | Offset (0xe4), |
| 11 | ASLE, 32, |
| 12 | Offset (0xfc), |
| 13 | ASLS, 32, |
Edward O'Callaghan | 4568f19 | 2014-12-06 14:32:23 +1100 | [diff] [blame] | 14 | } |
Vladimir Serbinenko | f3155d2 | 2014-08-10 23:53:42 +0200 | [diff] [blame] | 15 | |
Nico Huber | d5842f5 | 2015-09-24 17:45:45 +0200 | [diff] [blame] | 16 | OperationRegion (GFRG, SystemMemory, And (BAR0, 0xfffffffffffffff0), 0x400000) |
Vladimir Serbinenko | f3155d2 | 2014-08-10 23:53:42 +0200 | [diff] [blame] | 17 | Field (GFRG, DWordAcc, NoLock, Preserve) |
| 18 | { |
Nico Huber | 612a867 | 2019-02-19 19:11:29 +0100 | [diff] [blame] | 19 | Offset (CONFIG_INTEL_GMA_BCLV_OFFSET), |
| 20 | BCLV, CONFIG_INTEL_GMA_BCLV_WIDTH, |
Michael Niewöhner | fca152c | 2020-12-20 18:01:26 +0100 | [diff] [blame] | 21 | } |
| 22 | Field (GFRG, DWordAcc, NoLock, Preserve) |
| 23 | { |
Nico Huber | 612a867 | 2019-02-19 19:11:29 +0100 | [diff] [blame] | 24 | Offset (CONFIG_INTEL_GMA_BCLM_OFFSET), |
| 25 | BCLM, CONFIG_INTEL_GMA_BCLM_WIDTH |
Vladimir Serbinenko | f3155d2 | 2014-08-10 23:53:42 +0200 | [diff] [blame] | 26 | } |
| 27 | |
Nico Huber | 954a55b | 2015-08-27 13:31:46 +0200 | [diff] [blame] | 28 | #include "configure_brightness_levels.asl" |
Nico Huber | 62047d1 | 2015-08-27 15:07:03 +0200 | [diff] [blame] | 29 | #include "common.asl" |
Patrick Georgi | 2efc880 | 2012-11-06 11:03:53 +0100 | [diff] [blame] | 30 | } |