Skip to content

Commit

Permalink
soc/intel/meteorlake: Hook up GMA ACPI brightness controls
Browse files Browse the repository at this point in the history
Change-Id: I436feba1166c0dedb7b0e89458347e6ca2826ae7
Signed-off-by: Jeremy Soller <jackpot51@gmail.com>
  • Loading branch information
jackpot51 committed Mar 19, 2024
1 parent b8bf900 commit d14c9c6
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/soc/intel/meteorlake/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,18 @@ config BUILDING_WITH_DEBUG_FSP
help
Set this option if debug build of FSP is used.

config INTEL_GMA_BCLV_OFFSET
default 0xc8258

config INTEL_GMA_BCLV_WIDTH
default 32

config INTEL_GMA_BCLM_OFFSET
default 0xc8254

config INTEL_GMA_BCLM_WIDTH
default 32

config DROP_CPU_FEATURE_PROGRAM_IN_FSP
bool
default y if MP_SERVICES_PPI_V2_NOOP || CHROMEOS
Expand Down
1 change: 1 addition & 0 deletions src/soc/intel/meteorlake/Makefile.mk
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ ramstage-y += elog.c
ramstage-y += espi.c
ramstage-y += finalize.c
ramstage-y += fsp_params.c
ramstage-y += graphics.c
ramstage-y += lockdown.c
ramstage-y += p2sb.c
ramstage-y += pcie_rp.c
Expand Down
4 changes: 4 additions & 0 deletions src/soc/intel/meteorlake/chip.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <gpio.h>
#include <intelblocks/cfg.h>
Expand Down Expand Up @@ -525,6 +526,9 @@ struct soc_intel_meteorlake_config {
* as per `enum slew_rate` data type.
*/
uint8_t slow_slew_rate_config[NUM_VR_DOMAINS];

/* i915 struct for GMA backlight control */
struct i915_gpu_controller_info gfx;
};

typedef struct soc_intel_meteorlake_config config_t;
Expand Down
11 changes: 11 additions & 0 deletions src/soc/intel/meteorlake/graphics.c
Original file line number Diff line number Diff line change
@@ -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_meteorlake_config *const chip = dev->chip_info;
return &chip->gfx;
}

0 comments on commit d14c9c6

Please sign in to comment.