drivers/intel/gma: Include gfx.asl by default for all platforms...
which select INTEL_GMA_ACPI. Rework brightness level includes and platform-level asl files to avoid duplicate device definition for GFX0. Include gfx.asl for Skylake/Kabylake, since all other soc/intel/common platforms already do. Adjust mb/51nb/x210 to prevent device redefinition. Some OSes (e.g. Windows, MacOS) require/prefer the ACPI device for the IGD to exist, even if ACPI brightness controls are not utilized. This change adds a GFX0 ACPI device for all boards whose platforms select INTEL_GMA_ACPI without requiring non-functional brightness controls to be added at the board level. Change-Id: Ie71bd5fc7acd926b7ce7da17fbc108670fd453e0 Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/48862 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
This commit is contained in:
parent
5cf4c87da7
commit
c6589aefc1
|
@ -1,9 +1,7 @@
|
||||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
|
|
||||||
Device (GFX0)
|
Scope (GFX0)
|
||||||
{
|
{
|
||||||
Name (_ADR, 0x00020000)
|
|
||||||
|
|
||||||
OperationRegion (GFXC, PCI_Config, 0x00, 0x0100)
|
OperationRegion (GFXC, PCI_Config, 0x00, 0x0100)
|
||||||
Field (GFXC, DWordAcc, NoLock, Preserve)
|
Field (GFXC, DWordAcc, NoLock, Preserve)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||||
|
|
||||||
Device (GFX0)
|
Scope (GFX0)
|
||||||
{
|
{
|
||||||
Name (_ADR, 0x00020000)
|
|
||||||
Method (_DOS, 1, NotSerialized)
|
Method (_DOS, 1, NotSerialized)
|
||||||
{
|
{
|
||||||
/* We never do anything in firmware, so _DOS is a noop */
|
/* We never do anything in firmware, so _DOS is a noop */
|
||||||
|
|
|
@ -33,3 +33,6 @@ Device (PDRC)
|
||||||
|
|
||||||
// PCIe graphics port 0:1.0
|
// PCIe graphics port 0:1.0
|
||||||
#include "peg.asl"
|
#include "peg.asl"
|
||||||
|
|
||||||
|
// Integrated graphics 0:2.0
|
||||||
|
#include <drivers/intel/gma/acpi/gfx.asl>
|
||||||
|
|
|
@ -204,3 +204,6 @@ Device (PDRC)
|
||||||
/* PCI Express Graphics */
|
/* PCI Express Graphics */
|
||||||
#include "peg.asl"
|
#include "peg.asl"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Integrated graphics 0:2.0 */
|
||||||
|
#include <drivers/intel/gma/acpi/gfx.asl>
|
||||||
|
|
|
@ -77,4 +77,5 @@ Device (PDRC)
|
||||||
#include "peg.asl"
|
#include "peg.asl"
|
||||||
|
|
||||||
// Integrated graphics 0:2.0
|
// Integrated graphics 0:2.0
|
||||||
|
#include <drivers/intel/gma/acpi/gfx.asl>
|
||||||
#include "igd.asl"
|
#include "igd.asl"
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
|
|
||||||
Device (GFX0)
|
Scope (GFX0)
|
||||||
{
|
{
|
||||||
Name (_ADR, 0x00020000)
|
|
||||||
|
|
||||||
Name (BRIG, Package (0x12)
|
Name (BRIG, Package (0x12)
|
||||||
{
|
{
|
||||||
0xf,
|
0xf,
|
||||||
|
|
|
@ -36,3 +36,6 @@ Device (PDRC)
|
||||||
Return(PDRS)
|
Return(PDRS)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Integrated graphics 0:2.0 */
|
||||||
|
#include <drivers/intel/gma/acpi/gfx.asl>
|
||||||
|
|
|
@ -32,3 +32,6 @@ Device (PDRC)
|
||||||
|
|
||||||
// PCIe graphics port 0:1.0
|
// PCIe graphics port 0:1.0
|
||||||
#include "peg.asl"
|
#include "peg.asl"
|
||||||
|
|
||||||
|
// Integrated graphics 0:2.0
|
||||||
|
#include <drivers/intel/gma/acpi/gfx.asl>
|
||||||
|
|
|
@ -52,3 +52,6 @@ Device (PDRC)
|
||||||
Return(PDRS)
|
Return(PDRS)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Integrated graphics 0:2.0 */
|
||||||
|
#include <drivers/intel/gma/acpi/gfx.asl>
|
||||||
|
|
|
@ -30,3 +30,6 @@ Device (PDRC)
|
||||||
|
|
||||||
// PCIe graphics port 0:1.0
|
// PCIe graphics port 0:1.0
|
||||||
#include "peg.asl"
|
#include "peg.asl"
|
||||||
|
|
||||||
|
// Integrated graphics 0:2.0
|
||||||
|
#include <drivers/intel/gma/acpi/gfx.asl>
|
||||||
|
|
|
@ -256,3 +256,6 @@ Scope (\_SB.PCI0)
|
||||||
// LPE Device
|
// LPE Device
|
||||||
#include "lpe.asl"
|
#include "lpe.asl"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Integrated graphics 0:2.0 */
|
||||||
|
#include <drivers/intel/gma/acpi/gfx.asl>
|
||||||
|
|
|
@ -272,3 +272,6 @@ Scope (\_SB.PCI0)
|
||||||
/* SCC Devices */
|
/* SCC Devices */
|
||||||
#include "scc.asl"
|
#include "scc.asl"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Integrated graphics 0:2.0 */
|
||||||
|
#include <drivers/intel/gma/acpi/gfx.asl>
|
||||||
|
|
|
@ -195,3 +195,6 @@ Device (PDRC)
|
||||||
|
|
||||||
/* Configurable TDP */
|
/* Configurable TDP */
|
||||||
#include "ctdp.asl"
|
#include "ctdp.asl"
|
||||||
|
|
||||||
|
/* Integrated graphics 0:2.0 */
|
||||||
|
#include <drivers/intel/gma/acpi/gfx.asl>
|
||||||
|
|
|
@ -65,3 +65,6 @@ Method (_OSC, 4)
|
||||||
#if CONFIG(SOC_INTEL_COMMON_BLOCK_SGX)
|
#if CONFIG(SOC_INTEL_COMMON_BLOCK_SGX)
|
||||||
#include <soc/intel/common/acpi/sgx.asl>
|
#include <soc/intel/common/acpi/sgx.asl>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Integrated graphics 0:2.0 */
|
||||||
|
#include <drivers/intel/gma/acpi/gfx.asl>
|
||||||
|
|
Loading…
Reference in New Issue