aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/alderlake/chip.h
diff options
context:
space:
mode:
authorTim Crawford <tcrawford@system76.com>2022-11-01 11:42:28 -0600
committerFelix Held <felix-coreboot@felixheld.de>2022-11-03 12:58:26 +0000
commitc6529c7c0aadf200f187078244fbeea13ed5303a (patch)
tree2dd35e249f511f57d6571e7c3572c1fc0267b4de /src/soc/intel/alderlake/chip.h
parent8541325f38c754299664b9f9320a29ee8394bb04 (diff)
soc/intel/alderlake: Hook up GMA ACPI brightness controls
Add function needed to generate ACPI backlight control SSDT, along with Kconfig values for accessing the registers. Tested by adding gfx register on system76/lemp11. Backlight controls work on Windows 10 and Linux 6.1. Change-Id: I1cc33bf0121ff44aea68a7e3615c5e58e2ab6ce2 Signed-off-by: Tim Crawford <tcrawford@system76.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/69076 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/soc/intel/alderlake/chip.h')
-rw-r--r--src/soc/intel/alderlake/chip.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/soc/intel/alderlake/chip.h b/src/soc/intel/alderlake/chip.h
index a1a8fb3922..46721b0b84 100644
--- a/src/soc/intel/alderlake/chip.h
+++ b/src/soc/intel/alderlake/chip.h
@@ -4,6 +4,7 @@
#define _SOC_CHIP_H_
#include <drivers/i2c/designware/dw_i2c.h>
+#include <drivers/intel/gma/gma.h>
#include <device/pci_ids.h>
#include <intelblocks/cfg.h>
#include <intelblocks/gpio.h>
@@ -647,6 +648,9 @@ struct soc_intel_alderlake_config {
* Default is set to 0 and set to 1 to skip the MBP HOB.
*/
bool skip_mbp_hob;
+
+ /* i915 struct for GMA backlight control */
+ struct i915_gpu_controller_info gfx;
};
typedef struct soc_intel_alderlake_config config_t;