![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <commonlib/helpers.h>
#include <arch/io.h>
#include <device/mmio.h>
#include <device/pci_ops.h>
#include <console/console.h>
#include <bootmode.h>
#include <delay.h>
#include <device/device.h>
#include <device/pci.h>
#include <device/pci_ids.h>
#include <drivers/intel/gma/i915_reg.h>
#include <drivers/intel/gma/i915.h>
#include <drivers/intel/gma/libgfxinit.h>
#include <cpu/intel/haswell/haswell.h>
#include <drivers/intel/gma/opregion.h>
#include <southbridge/intel/lynxpoint/pch.h>
#include <types.h>
#include "chip.h"
#include "haswell.h"
Go to the source code of this file.
Data Structures | |
struct | gt_reg |
Macros | |
#define | GTT_RETRY 1000 |
Functions | |
u32 | map_oprom_vendev (u32 vendev) |
u32 | gtt_read (u32 reg) |
void | gtt_write (u32 reg, u32 data) |
static void | gtt_rmw (u32 reg, u32 andmask, u32 ormask) |
static void | gtt_write_regs (const struct gt_reg *gt) |
int | gtt_poll (u32 reg, u32 mask, u32 value) |
static void | power_well_enable (void) |
static void | gma_pm_init_pre_vbios (struct device *dev) |
static void | init_display_planes (void) |
static void | gma_setup_panel (struct device *dev) |
static void | gma_pm_init_post_vbios (struct device *dev) |
static void | gma_enable_swsci (void) |
static void | gma_func0_init (struct device *dev) |
static void | gma_generate_ssdt (const struct device *dev) |
Variables | |
static const struct gt_reg | haswell_gt_setup [] |
static const struct gt_reg | haswell_gt_lock [] |
static struct resource * | gtt_res = NULL |
static struct device_operations | gma_func0_ops |
static const unsigned short | pci_device_ids [] |
static const struct pci_driver pch_lpc | __pci_driver |
Definition at line 404 of file gma.c.
References DMISCI_STS, enable_tco_sci(), get_pmbase(), inw(), outw(), and TCO1_STS.
Referenced by gma_func0_init().
Definition at line 417 of file gma.c.
References BIOS_DEBUG, BIOS_INFO, BIOS_SPEW, CONFIG, gfx_set_init_done(), GGC, gma_enable_swsci(), gma_gfxinit(), gma_pm_init_post_vbios(), gma_pm_init_pre_vbios(), gma_setup_panel(), intel_gma_init_igd_opregion(), PCI_COMMAND, PCI_COMMAND_MASTER, pci_dev_init(), pci_or_config16(), pci_read_config16(), and printk.
Definition at line 367 of file gma.c.
References FORCEWAKE_ACK_HSW, gtt_poll(), gtt_read(), gtt_rmw(), gtt_write(), haswell_is_ult(), PCI_DEVICE_ID, and pci_read_config16().
Referenced by gma_func0_init().
Definition at line 177 of file gma.c.
References resource::base, BIOS_DEBUG, FORCEWAKE_ACK_HSW, GEN6_PM_MBOX_EVENT, GEN6_PM_RP_DOWN_EI_EXPIRED, GEN6_PM_RP_DOWN_THRESHOLD, GEN6_PM_RP_DOWN_TIMEOUT, GEN6_PM_RP_UP_EI_EXPIRED, GEN6_PM_RP_UP_THRESHOLD, GEN6_PM_THERMAL_EVENT, GEN6_PMIER, gtt_poll(), gtt_res, gtt_write(), gtt_write_regs(), haswell_gt_lock, haswell_gt_setup, PCI_BASE_ADDRESS_0, power_well_enable(), printk, and probe_resource().
Referenced by gma_func0_init().
Definition at line 244 of file gma.c.
References _FDI_RXA_MISC, i915_gpu_panel_config::backlight_off_delay_ms, i915_gpu_panel_config::backlight_on_delay_ms, i915_gpu_panel_config::backlight_polarity, i915_gpu_panel_config::backlight_pwm_hz, BIOS_INFO, BLC_PWM_PCH_CTL1, BLC_PWM_PCH_CTL2, BLM_PCH_OVERRIDE_ENABLE, BLM_PCH_PWM_ENABLE, CONFIG, config_of(), i915_gpu_panel_config::cycle_delay_ms, DDI_A_4_LANES, DDI_BUF_CTL_A, DDI_BUF_IS_IDLE, DDI_INIT_DISPLAY_DETECTED, DIGITAL_PORT_HOTPLUG_CNTRL, DIGITAL_PORTA_HOTPLUG_ENABLE, DIV_ROUND_CLOSEST, DIV_ROUND_UP, i915_gpu_panel_config::down_delay_ms, i915_gpu_panel_config::GPU_BACKLIGHT_POLARITY_LOW, northbridge_intel_haswell_config::gpu_ddi_e_connected, northbridge_intel_haswell_config::gpu_dp_b_hotplug, northbridge_intel_haswell_config::gpu_dp_c_hotplug, northbridge_intel_haswell_config::gpu_dp_d_hotplug, gtt_read(), gtt_write(), init_display_planes(), intel_prepare_ddi(), LPT_PWM_GRANULARITY, MHz, NDE_RSTWRN_OPT, northbridge_intel_haswell_config::panel_cfg, PCH_LP_PARTITION_LEVEL_DISABLE, PCH_PORT_HOTPLUG, PCH_PP_DIVISOR, PCH_PP_OFF_DELAYS, PCH_PP_ON_DELAYS, PORTB_HOTPLUG_ENABLE, PORTD_HOTPLUG_ENABLE, power_well_enable(), printk, RST_PCH_HNDSHK_EN, SOUTH_CHICKEN2, SOUTH_DSPCLK_GATE_D, and i915_gpu_panel_config::up_delay_ms.
Referenced by gma_func0_init().
Definition at line 154 of file gma.c.
Referenced by gma_pm_init_post_vbios(), gma_pm_init_pre_vbios(), igd_get_cdclk_broadwell(), and power_well_enable().
Definition at line 135 of file gma.c.
References gtt_read(), gtt_write(), and val.
Referenced by gma_pm_init_post_vbios(), and gtt_write_regs().
Definition at line 130 of file gma.c.
References gtt_res, res2mmio(), and write32().
Definition at line 143 of file gma.c.
References gt_reg::andmask, gtt_rmw(), gtt_write(), gt_reg::ormask, and gt_reg::reg.
Referenced by gma_pm_init_pre_vbios().
Definition at line 224 of file gma.c.
References CPU_VGA_DISABLE, CPU_VGACNTRL, CURBASE_IVB, CURCNTR_IVB, CURSOR_MODE_DISABLE, DISPLAY_PLANE_DISABLE, DSPCNTR, DSPSURF, gtt_write(), PIPE_A, PIPE_C, PLANE_A, and PLANE_C.
Referenced by gma_setup_panel().
Definition at line 171 of file gma.c.
References gtt_poll(), gtt_write(), HSW_PWR_WELL_CTL1, HSW_PWR_WELL_ENABLE, and HSW_PWR_WELL_STATE.
Referenced by gma_pm_init_pre_vbios(), and gma_setup_panel().
|
static |
|
static |
Definition at line 120 of file gma.c.
Referenced by gma_pm_init_pre_vbios(), gtt_read(), and gtt_write().
|
static |
Definition at line 1 of file gma.c.
Referenced by gma_pm_init_pre_vbios().
|
static |
Definition at line 1 of file gma.c.
Referenced by gma_pm_init_pre_vbios().