coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <device/mmio.h>
#include <console/console.h>
#include <device/device.h>
#include <device/pci.h>
#include <device/pci_ids.h>
#include <drivers/intel/gma/edid.h>
#include <drivers/intel/gma/opregion.h>
#include <drivers/intel/gma/libgfxinit.h>
#include <string.h>
#include <device/pci_ops.h>
#include <commonlib/helpers.h>
#include <types.h>
#include "drivers/intel/gma/i915_reg.h"
#include "chip.h"
#include "gm45.h"
Go to the source code of this file.
Functions | |
u32 | gtt_read (u32 reg) |
void | gtt_write (u32 reg, u32 data) |
static u32 | get_cdclk (struct device *const dev) |
static u32 | freq_to_blc_pwm_ctl (struct device *const dev, u16 pwm_freq, u8 duty_perc) |
u16 | get_blc_pwm_freq_value (const char *edid_ascii_string) |
static void | gma_pm_init_post_vbios (struct device *const dev, const char *edid_ascii_string) |
static void | gma_func0_init (struct device *dev) |
static void | gma_generate_ssdt (const struct device *device) |
static const char * | gma_acpi_name (const struct device *dev) |
Variables | |
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 gma | __pci_driver |
Definition at line 50 of file gma.c.
References get_cdclk().
Referenced by gma_pm_init_post_vbios().
u16 get_blc_pwm_freq_value | ( | const char * | edid_ascii_string | ) |
Definition at line 63 of file gma.c.
References blc_pwm_t::ascii_string, BIOS_DEBUG, BIOS_NOTICE, get_blc_values(), printk, blc_pwm_t::pwm_freq, and strcmp().
Referenced by gma_pm_init_post_vbios(), and mainboard_vbt_filename().
Definition at line 32 of file gma.c.
References BIOS_WARNING, GCFGC_CD_MASK, GCFGC_OFFSET, HPLLVCO_MCHBAR, mchbar_read8(), pci_read_config16(), printk, VCO_2666, VCO_3200, VCO_4000, and VCO_5333.
Referenced by freq_to_blc_pwm_ctl(), and gma_pm_init_post_vbios().
|
static |
Definition at line 145 of file gma.c.
References acpi_is_wakeup_s3(), edid::ascii_string, BIOS_DEBUG, BIOS_INFO, device::chip_info, CONFIG, D0F0_GGC, decode_edid(), generate_fake_intel_oprom(), northbridge_intel_gm45_config::gfx, gma_gfxinit(), gma_pm_init_post_vbios(), GMBUS0, GMBUS_PORT_PANEL, gtt_res, intel_gma_init_igd_opregion(), intel_gmbus_read_edid(), intel_gmbus_stop(), NULL, PCI_BASE_ADDRESS_0, PCI_COMMAND, PCI_COMMAND_MASTER, pci_dev_init(), pci_or_config16(), pci_read_config16(), printk, probe_resource(), and res2mmio().
Definition at line 191 of file gma.c.
References chip, device::chip_info, and drivers_intel_gma_displays_ssdt_generate().
|
static |
Definition at line 96 of file gma.c.
References BLC_PWM_CTL, BLC_PWM_CTL2, device::chip_info, northbridge_intel_gm45_config::default_pwm_freq, northbridge_intel_gm45_config::duty_cycle, freq_to_blc_pwm_ctl(), get_blc_pwm_freq_value(), get_cdclk(), northbridge_intel_gm45_config::gpu_panel_power_backlight_off_delay, northbridge_intel_gm45_config::gpu_panel_power_backlight_on_delay, northbridge_intel_gm45_config::gpu_panel_power_cycle_delay, northbridge_intel_gm45_config::gpu_panel_power_down_delay, northbridge_intel_gm45_config::gpu_panel_power_up_delay, gtt_read(), gtt_write(), PP_DIVISOR, PP_OFF_DELAYS, PP_ON_DELAYS, and PP_REFERENCE_DIVIDER_SHIFT.
Referenced by gma_func0_init().
Definition at line 22 of file gma.c.
Referenced by gma_pm_init_post_vbios(), gma_pm_init_pre_vbios(), gma_setup_panel(), gtt_poll(), gtt_rmw(), igd_get_cdclk_broadwell(), and igd_get_cdclk_haswell().
Definition at line 27 of file gma.c.
Referenced by gma_pm_init_post_vbios(), gma_pm_init_pre_vbios(), gma_setup_panel(), gtt_rmw(), gtt_write_powermeter(), gtt_write_regs(), igd_cdclk_init(), igd_get_cdclk_broadwell(), igd_init(), init_display_planes(), and power_well_enable().
|
static |
|
static |
Definition at line 20 of file gma.c.
Referenced by gma_func0_init(), gtt_read(), and gtt_write().