coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
model_1067x_init.c File Reference
#include <console/console.h>
#include <device/device.h>
#include <cpu/cpu.h>
#include <cpu/x86/msr.h>
#include <cpu/intel/speedstep.h>
#include <cpu/x86/cache.h>
#include <cpu/x86/name.h>
#include <cpu/intel/smm_reloc.h>
#include "chip.h"
Include dependency graph for model_1067x_init.c:

Go to the source code of this file.

Macros

#define MSR_BBL_CR_CTL3   0x11e
 
#define MSR_EMTTM_CR_TABLE(x)   (0xa8 + (x))
 
#define MSR_EMTTM_TABLE_NUM   6
 
#define IA32_PECI_CTL   0x5a0
 
#define PIC_SENS_CFG   0x1aa
 

Functions

static void configure_c_states (const int quad)
 
static void configure_p_states (const char stepping, const char cores)
 
static void configure_emttm_tables (void)
 
static void configure_misc (const int eist, const int tm2, const int emttm)
 
static void configure_pic_thermal_sensors (const int tm2, const int quad)
 
static void model_1067x_init (struct device *cpu)
 

Variables

static struct device_operations cpu_dev_ops
 
static const struct cpu_device_id cpu_table []
 
static const struct cpu_driver driver __cpu_driver
 
struct chip_operations cpu_intel_model_1067x_ops
 

Macro Definition Documentation

◆ IA32_PECI_CTL

#define IA32_PECI_CTL   0x5a0

Definition at line 156 of file model_1067x_init.c.

◆ MSR_BBL_CR_CTL3

#define MSR_BBL_CR_CTL3   0x11e

Definition at line 14 of file model_1067x_init.c.

◆ MSR_EMTTM_CR_TABLE

#define MSR_EMTTM_CR_TABLE (   x)    (0xa8 + (x))

Definition at line 107 of file model_1067x_init.c.

◆ MSR_EMTTM_TABLE_NUM

#define MSR_EMTTM_TABLE_NUM   6

Definition at line 108 of file model_1067x_init.c.

◆ PIC_SENS_CFG

#define PIC_SENS_CFG   0x1aa

Definition at line 209 of file model_1067x_init.c.

Function Documentation

◆ configure_c_states()

◆ configure_emttm_tables()

◆ configure_misc()

static void configure_misc ( const int  eist,
const int  tm2,
const int  emttm 
)
static

Definition at line 158 of file model_1067x_init.c.

References cpuid_edx(), msr_struct::hi, IA32_MISC_ENABLE, IA32_PECI_CTL, msr_struct::lo, MSR_FSB_CLOCK_VCC, rdmsr(), and wrmsr().

Here is the call graph for this function:

◆ configure_p_states()

static void configure_p_states ( const char  stepping,
const char  cores 
)
static

◆ configure_pic_thermal_sensors()

static void configure_pic_thermal_sensors ( const int  tm2,
const int  quad 
)
static

Definition at line 210 of file model_1067x_init.c.

References msr_struct::lo, PIC_SENS_CFG, rdmsr(), and wrmsr().

Here is the call graph for this function:

◆ model_1067x_init()

static void model_1067x_init ( struct device cpu)
static

Definition at line 228 of file model_1067x_init.c.

Variable Documentation

◆ __cpu_driver

const struct cpu_driver driver __cpu_driver
static
Initial value:
= {
.ops = &cpu_dev_ops,
.id_table = cpu_table,
}
static const struct cpu_device_id cpu_table[]
static struct device_operations cpu_dev_ops

Definition at line 228 of file model_1067x_init.c.

◆ cpu_dev_ops

struct device_operations cpu_dev_ops
static
Initial value:
= {
}
static void model_1067x_init(struct device *cpu)

Definition at line 228 of file model_1067x_init.c.

◆ cpu_intel_model_1067x_ops

struct chip_operations cpu_intel_model_1067x_ops
Initial value:
= {
}

Definition at line 228 of file model_1067x_init.c.

◆ cpu_table

const struct cpu_device_id cpu_table[]
static
Initial value:
= {
{ X86_VENDOR_INTEL, 0x10676 },
{ X86_VENDOR_INTEL, 0x10677 },
{ X86_VENDOR_INTEL, 0x1067A },
{ 0, 0 },
}
#define X86_VENDOR_INTEL
Definition: cpu.h:138

Definition at line 228 of file model_1067x_init.c.