coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
pmif_sw.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SWINF_FSM_IDLE   0x00
 
#define SWINF_FSM_REQ   0x02
 
#define SWINF_FSM_WFDLE   0x04
 
#define SWINF_FSM_WFVLDCLR   0x06
 
#define SWINF_INIT_DONE   0x01
 
#define GET_SWINF_0_FSM(x)   (((x) >> 1) & 0x7)
 

Enumerations

enum  { PMIF_READ_US = 1000 , PMIF_WAIT_IDLE_US = 1000 }
 
enum  { CAL_TOL_RATE = 40 , CAL_MAX_VAL = 0x7F }
 

Functions

u32 pmif_get_ulposc_freq_mhz (u32 cali_val)
 
int pmif_clk_init (void)
 

Macro Definition Documentation

◆ GET_SWINF_0_FSM

#define GET_SWINF_0_FSM (   x)    (((x) >> 1) & 0x7)

Definition at line 13 of file pmif_sw.h.

◆ SWINF_FSM_IDLE

#define SWINF_FSM_IDLE   0x00

Definition at line 7 of file pmif_sw.h.

◆ SWINF_FSM_REQ

#define SWINF_FSM_REQ   0x02

Definition at line 8 of file pmif_sw.h.

◆ SWINF_FSM_WFDLE

#define SWINF_FSM_WFDLE   0x04

Definition at line 9 of file pmif_sw.h.

◆ SWINF_FSM_WFVLDCLR

#define SWINF_FSM_WFVLDCLR   0x06

Definition at line 10 of file pmif_sw.h.

◆ SWINF_INIT_DONE

#define SWINF_INIT_DONE   0x01

Definition at line 11 of file pmif_sw.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
PMIF_READ_US 
PMIF_WAIT_IDLE_US 

Definition at line 15 of file pmif_sw.h.

◆ anonymous enum

anonymous enum
Enumerator
CAL_TOL_RATE 
CAL_MAX_VAL 

Definition at line 21 of file pmif_sw.h.

Function Documentation

◆ pmif_clk_init()

◆ pmif_get_ulposc_freq_mhz()

u32 pmif_get_ulposc_freq_mhz ( u32  cali_val)

Definition at line 75 of file pmif_clk.c.

References FMETER_ABIST, FREQ_METER_ABIST_AD_OSC_CK, mt_fmeter_get_freq_khz(), mtk_apmixed, SET32_BITFIELDS, and udelay().

Referenced by pmif_ulposc_cali().

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