coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
graphics.c File Reference
#include <stdint.h>
#include <commonlib/helpers.h>
#include <device/device.h>
#include <device/mmio.h>
#include <device/pci_def.h>
#include <intelblocks/graphics.h>
#include <drivers/intel/gma/i915_reg.h>
#include "chip.h"
Include dependency graph for graphics.c:

Go to the source code of this file.

Functions

static void graphics_configure_panelpower (const struct i915_gpu_panel_config *const panel_cfg, uint8_t *const mmio, const unsigned int panel_idx)
 
static void graphics_configure_backlight (const struct i915_gpu_panel_config *const panel_cfg, uint8_t *const mmio, const unsigned int panel_idx)
 
void graphics_soc_panel_init (struct device *const dev)
 
const struct i915_gpu_controller_infointel_igd_get_controller_info (const struct device *device)
 

Function Documentation

◆ graphics_configure_backlight()

static void graphics_configure_backlight ( const struct i915_gpu_panel_config *const  panel_cfg,
uint8_t *const  mmio,
const unsigned int  panel_idx 
)
static

Definition at line 33 of file graphics.c.

References i915_gpu_panel_config::backlight_polarity, i915_gpu_panel_config::backlight_pwm_hz, BXT_BLC_PWM_CTL, BXT_BLC_PWM_DUTY, BXT_BLC_PWM_FREQ, BXT_BLC_PWM_POLARITY, UTIL_PIN_CTL, UTIL_PIN_ENABLE, UTIL_PIN_MODE_PWM, and write32().

Referenced by graphics_soc_panel_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ graphics_configure_panelpower()

static void graphics_configure_panelpower ( const struct i915_gpu_panel_config *const  panel_cfg,
uint8_t *const  mmio,
const unsigned int  panel_idx 
)
static

◆ graphics_soc_panel_init()

void graphics_soc_panel_init ( struct device *const  dev)

Definition at line 54 of file graphics.c.

References ARRAY_SIZE, resource::base, device::chip_info, graphics_configure_backlight(), graphics_configure_panelpower(), mmio_res, soc_intel_apollolake_config::panel_cfg, PCI_BASE_ADDRESS_0, and probe_resource().

Referenced by gma_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ intel_igd_get_controller_info()

const struct i915_gpu_controller_info* intel_igd_get_controller_info ( const struct device device)

Definition at line 79 of file graphics.c.

References chip, and device::chip_info.

Referenced by gma_generate_ssdt().

Here is the caller graph for this function: