coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
pmif_clk.c File Reference
#include <commonlib/helpers.h>
#include <delay.h>
#include <device/mmio.h>
#include <soc/infracfg.h>
#include <soc/pll.h>
#include <soc/pll_common.h>
#include <soc/pmif.h>
#include <soc/pmif_clk_common.h>
#include <soc/pmif_sw.h>
#include <soc/pmif_spmi.h>
#include <soc/spm.h>
Include dependency graph for pmif_clk.c:

Go to the source code of this file.

Functions

static void pmif_ulposc_config (void)
 
u32 pmif_get_ulposc_freq_mhz (u32 cali_val)
 
static int pmif_init_ulposc (void)
 
int pmif_clk_init (void)
 

Function Documentation

◆ pmif_clk_init()

int pmif_clk_init ( void  )

Definition at line 105 of file pmif_clk.c.

◆ pmif_get_ulposc_freq_mhz()

u32 pmif_get_ulposc_freq_mhz ( u32  cali_val)

Definition at line 75 of file pmif_clk.c.

Referenced by pmif_ulposc_cali().

Here is the caller graph for this function:

◆ pmif_init_ulposc()

static int pmif_init_ulposc ( void  )
static

Definition at line 87 of file pmif_clk.c.

References FREQ_260MHZ, mtk_spm, pmif_ulposc_cali(), pmif_ulposc_config(), mtk_spm_regs::poweron_config_set, READ32_BITFIELD, SET32_BITFIELDS, udelay(), and mtk_spm_regs::ulposc_con.

Referenced by pmif_clk_init().

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

◆ pmif_ulposc_config()

static void pmif_ulposc_config ( void  )
static

Definition at line 61 of file pmif_clk.c.

References mtk_apmixed, and SET32_BITFIELDS.

Referenced by pmif_init_ulposc().

Here is the caller graph for this function: