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

Go to the source code of this file.

Functions

static void mt6315_read (u32 slvid, u32 reg, u32 *data)
 
static void mt6315_write (u32 slvid, u32 reg, u32 data)
 
void mt6315_write_field (u32 slvid, u32 reg, u32 val, u32 mask, u32 shift)
 
static void mt6315_wdt_enable (u32 slvid)
 
void mt6315_buck_set_voltage (u32 slvid, u32 buck_id, u32 buck_uv)
 
u32 mt6315_buck_get_voltage (u32 slvid, u32 buck_id)
 
static void init_pmif_arb (void)
 
void mt6315_init (void)
 

Variables

static struct pmifpmif_arb = NULL
 

Function Documentation

◆ init_pmif_arb()

static void init_pmif_arb ( void  )
static

Definition at line 84 of file mt6315.c.

References die(), get_pmif_controller(), pmif::is_pmif_init_done, pmif_arb, and PMIF_SPMI.

Referenced by mt6315_init().

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

◆ mt6315_buck_get_voltage()

u32 mt6315_buck_get_voltage ( u32  slvid,
u32  buck_id 
)

Definition at line 61 of file mt6315.c.

References die(), MT6315_BUCK_1, MT6315_BUCK_3, MT6315_BUCK_VBUCK1_DBG0, MT6315_BUCK_VBUCK1_DBG3, mt6315_read(), and pmif_arb.

Here is the call graph for this function:

◆ mt6315_buck_set_voltage()

void mt6315_buck_set_voltage ( u32  slvid,
u32  buck_id,
u32  buck_uv 
)

Definition at line 38 of file mt6315.c.

References die(), MT6315_BUCK_1, MT6315_BUCK_3, MT6315_BUCK_TOP_ELR0, MT6315_BUCK_TOP_ELR3, mt6315_write(), and pmif_arb.

Referenced by raise_little_cpu_freq().

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

◆ mt6315_init()

void mt6315_init ( void  )

Definition at line 96 of file mt6315.c.

References init_pmif_arb(), MT6315_CPU, MT6315_GPU, mt6315_init_setting(), and mt6315_wdt_enable().

Referenced by platform_romstage_main().

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

◆ mt6315_read()

static void mt6315_read ( u32  slvid,
u32  reg,
u32 data 
)
static

Definition at line 10 of file mt6315.c.

References pmif_arb, and pmif::read.

Referenced by mt6315_buck_get_voltage().

Here is the caller graph for this function:

◆ mt6315_wdt_enable()

static void mt6315_wdt_enable ( u32  slvid)
static

Definition at line 25 of file mt6315.c.

References mt6315_write(), and udelay().

Referenced by mt6315_init().

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

◆ mt6315_write()

static void mt6315_write ( u32  slvid,
u32  reg,
u32  data 
)
static

Definition at line 15 of file mt6315.c.

References pmif_arb, and pmif::write.

Referenced by mt6315_buck_set_voltage(), and mt6315_wdt_enable().

Here is the caller graph for this function:

◆ mt6315_write_field()

void mt6315_write_field ( u32  slvid,
u32  reg,
u32  val,
u32  mask,
u32  shift 
)

Definition at line 20 of file mt6315.c.

References mask, pmif_arb, val, and pmif::write_field.

Referenced by mt6315_init_setting().

Here is the caller graph for this function:

Variable Documentation

◆ pmif_arb

struct pmif* pmif_arb = NULL
static