diff options
author | Matt DeVillier <matt.devillier@gmail.com> | 2023-01-23 10:23:55 -0600 |
---|---|---|
committer | Lean Sheng Tan <sheng.tan@9elements.com> | 2023-04-16 14:06:57 +0000 |
commit | e30d204d386f270b94bdeeb7797342031839c9c8 (patch) | |
tree | 42b2fcf57068bc56b6bbc4a6243481900f2b7510 /src/soc/intel/jasperlake/graphics.c | |
parent | cd3545556ee410dc722e7046c96ac0fc7da51ade (diff) |
soc/intel/jasperlake: 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 google/magpie. Backlight controls
work on Windows 10 and Linux 6.1.
Change-Id: Iaa9872cd590c3b1298667cc80354ed3efd91c6c8
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/74324
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Sean Rhodes <sean@starlabs.systems>
Diffstat (limited to 'src/soc/intel/jasperlake/graphics.c')
-rw-r--r-- | src/soc/intel/jasperlake/graphics.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/soc/intel/jasperlake/graphics.c b/src/soc/intel/jasperlake/graphics.c new file mode 100644 index 0000000000..773f3c6de8 --- /dev/null +++ b/src/soc/intel/jasperlake/graphics.c @@ -0,0 +1,11 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#include <intelblocks/graphics.h> +#include <soc/ramstage.h> + +const struct i915_gpu_controller_info * +intel_igd_get_controller_info(const struct device *const dev) +{ + const struct soc_intel_jasperlake_config *const chip = dev->chip_info; + return &chip->gfx; +} |