Add i915_gpu_controller_info
Change-Id: I5f4e360974aefc75570ec20e500bb77bd962ca0a
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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;
|
||||
|
11
src/soc/intel/tigerlake/graphics.c
Normal file
11
src/soc/intel/tigerlake/graphics.c
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user