Add i915_gpu_controller_info

Change-Id: I5f4e360974aefc75570ec20e500bb77bd962ca0a
This commit is contained in:
Jeremy Soller
2020-10-16 12:01:09 -06:00
parent d58c413a7a
commit a1aaca8cc8
4 changed files with 18 additions and 1 deletions

View File

@@ -174,7 +174,7 @@ chip soc/intel/tigerlake
register "tcc_offset" = "13"
# Graphics (soc/intel/tigerlake/graphics.c)
#TODO register "gfx" = "GMA_STATIC_DISPLAYS(0)"
register "gfx" = "GMA_STATIC_DISPLAYS(0)"
# PMC (soc/intel/tigerlake/pmc.c)
# TODO: Disable deep Sx states

View File

@@ -36,6 +36,7 @@ ramstage-y += espi.c
ramstage-y += finalize.c
ramstage-y += fsp_params.c
ramstage-y += gpio.c
ramstage-y += graphics.c
ramstage-y += lockdown.c
ramstage-y += p2sb.c
ramstage-y += pmc.c

View File

@@ -4,6 +4,7 @@
#define _SOC_CHIP_H_
#include <drivers/i2c/designware/dw_i2c.h>
#include <drivers/intel/gma/gma.h>
#include <intelblocks/cfg.h>
#include <intelblocks/gpio.h>
#include <intelblocks/gspi.h>
@@ -442,6 +443,10 @@ struct soc_intel_tigerlake_config {
* - PM_CFG.SLP_LAN_MIN_ASST_WDTH
*/
uint8_t PchPmPwrCycDur;
/* i915 struct for GMA backlight control */
struct i915_gpu_controller_info gfx;
};
typedef struct soc_intel_tigerlake_config config_t;

View File

@@ -0,0 +1,11 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <intelblocks/graphics.h>
#include <soc/ramstage.h>
const struct i915_gpu_controller_info *
intel_igd_get_controller_info(const struct device *device)
{
struct soc_intel_tigerlake_config *chip = device->chip_info;
return &chip->gfx;
}