summaryrefslogtreecommitdiff
path: root/src/soc/intel/skylake/graphics.c
diff options
context:
space:
mode:
authorMatt DeVillier <matt.devillier@gmail.com>2020-03-27 14:13:07 -0500
committerNico Huber <nico.h@gmx.de>2020-03-28 23:12:31 +0000
commitddb4cf08f741dff9bdea708a34301efc0a6061eb (patch)
treeafced5d9f94980fa36649ba4780774d2a9b9b27c /src/soc/intel/skylake/graphics.c
parent1eea1dd7d78c0c043abb02986cae866cd5ff7ce1 (diff)
downloadcoreboot-ddb4cf08f741dff9bdea708a34301efc0a6061eb.tar.xz
soc/intel/skylake: Hook up GMA ACPI brightness controls
Add struct i915_gpu_controller_info for boards to supply info needed to generate ACPI backlight control SSDT. Hook into soc/common framework by implementing intel_igd_get_controller_info(). Change-Id: I70e280e54d78e69a335f9a382261193c593ce430 Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/39883 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/soc/intel/skylake/graphics.c')
-rw-r--r--src/soc/intel/skylake/graphics.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/soc/intel/skylake/graphics.c b/src/soc/intel/skylake/graphics.c
index daa6eaa117..5f2fddfd56 100644
--- a/src/soc/intel/skylake/graphics.c
+++ b/src/soc/intel/skylake/graphics.c
@@ -19,6 +19,7 @@
#include <device/pci.h>
#include <device/pci_ops.h>
#include <device/resource.h>
+#include <drivers/intel/gma/i915.h>
#include <drivers/intel/gma/i915_reg.h>
#include <drivers/intel/gma/libgfxinit.h>
#include <intelblocks/graphics.h>
@@ -185,3 +186,10 @@ uintptr_t graphics_soc_write_acpi_opregion(struct device *device,
printk(BIOS_DEBUG, "current = %lx\n", current);
return current;
}
+
+const struct i915_gpu_controller_info *
+intel_igd_get_controller_info(struct device *device)
+{
+ struct soc_intel_skylake_config *chip = device->chip_info;
+ return &chip->gfx;
+}