soc/intel/tigerlake: Add i915_gpu_controller_info

Change-Id: Iadb530d7113a48549779ea3baa499f9f7a772f32
This commit is contained in:
Jeremy Soller
2020-12-29 11:15:18 -07:00
committed by Jeremy Soller
parent 6e6da3bd29
commit 020f2b8897
3 changed files with 17 additions and 0 deletions

View File

@@ -37,6 +37,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>
@@ -500,6 +501,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;
}