coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
dptf.c File Reference
#include <bootstate.h>
#include <console/console.h>
#include <reg_script.h>
#include <soc/iosf.h>
Include dependency graph for dptf.c:

Go to the source code of this file.

Functions

static void dptf_init (void *unused)
 
 BOOT_STATE_INIT_ENTRY (BS_DEV_INIT, BS_ON_ENTRY, dptf_init, NULL)
 

Variables

static const struct reg_script dptf_init_settings []
 

Function Documentation

◆ BOOT_STATE_INIT_ENTRY()

BOOT_STATE_INIT_ENTRY ( BS_DEV_INIT  ,
BS_ON_ENTRY  ,
dptf_init  ,
NULL   
)

◆ dptf_init()

static void dptf_init ( void unused)
static

Definition at line 27 of file dptf.c.

References BIOS_DEBUG, dptf_init_settings, printk, and reg_script_run().

Here is the call graph for this function:

Variable Documentation

◆ dptf_init_settings

const struct reg_script dptf_init_settings[]
static
Initial value:
= {
REG_IOSF_WRITE(IOSF_PORT_PMC, PUNIT_PTMC, 0x00030708),
REG_IOSF_WRITE(IOSF_PORT_PMC, PUNIT_GFXT, 0x0000C000),
REG_IOSF_WRITE(IOSF_PORT_PMC, PUNIT_VEDT, 0x00000004),
REG_IOSF_WRITE(IOSF_PORT_PMC, PUNIT_ISPT, 0x00000004),
REG_IOSF_WRITE(IOSF_PORT_PMC, PUNIT_PTPS, 0x00000000),
REG_IOSF_WRITE(IOSF_PORT_PMC, PUNIT_TE_AUX3, 0x00061029),
REG_IOSF_WRITE(IOSF_PORT_PMC, PUNIT_TTE_VRIccMax, 0x00061029),
REG_IOSF_WRITE(IOSF_PORT_PMC, PUNIT_TTE_VRHot, 0x00061029),
REG_IOSF_WRITE(IOSF_PORT_PMC, PUNIT_TTE_XXPROCHOT, 0x00061029),
REG_IOSF_WRITE(IOSF_PORT_PMC, PUNIT_TTE_SLM0, 0x00001029),
REG_IOSF_WRITE(IOSF_PORT_PMC, PUNIT_TTE_SLM1, 0x00001029),
REG_IOSF_WRITE(IOSF_PORT_PMC, PUNIT_SOC_POWER_BUDGET, 0x00000B00),
REG_IOSF_WRITE(IOSF_PORT_PMC, PUNIT_SOC_ENERGY_CREDIT, 0x00000002),
}
#define PUNIT_ISPT
Definition: iosf.h:245
#define PUNIT_PTPS
Definition: iosf.h:246
#define PUNIT_TE_AUX3
Definition: iosf.h:250
#define PUNIT_TTE_VRIccMax
Definition: iosf.h:251
#define IOSF_PORT_PMC
Definition: iosf.h:93
#define PUNIT_TTE_SLM1
Definition: iosf.h:255
#define PUNIT_SOC_ENERGY_CREDIT
Definition: iosf.h:241
#define PUNIT_TTE_SLM0
Definition: iosf.h:254
#define PUNIT_SOC_POWER_BUDGET
Definition: iosf.h:240
#define PUNIT_PTMC
Definition: iosf.h:242
#define PUNIT_GFXT
Definition: iosf.h:243
#define PUNIT_VEDT
Definition: iosf.h:244
#define PUNIT_TTE_VRHot
Definition: iosf.h:252
#define PUNIT_TTE_XXPROCHOT
Definition: iosf.h:253
#define REG_SCRIPT_END
Definition: reg_script.h:427

Definition at line 1 of file dptf.c.

Referenced by dptf_init().