coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
dpm.c File Reference
#include <device/mmio.h>
#include <soc/dpm.h>
#include <soc/mcu_common.h>
#include <soc/symbols.h>
Include dependency graph for dpm.c:

Go to the source code of this file.

Functions

void dpm_reset (struct mtk_mcu *mcu)
 
int dpm_init (void)
 

Variables

static struct mtk_mcu dpm_mcu []
 

Function Documentation

◆ dpm_init()

int dpm_init ( void  )

Definition at line 33 of file dpm.c.

References ARRAY_SIZE, mtk_mcu::buffer_size, clrsetbits32, CONFIG, dpm_4ch_init(), dpm_4ch_para_setting(), dpm_mcu, DPM_MEM_RATIO_CFG1, DPM_MEM_RATIO_MASK, mtk_mcu::load_buffer, mtk_dpm, mtk_init_mcu(), REGION_SIZE, and dpm_regs::sw_rstn.

Referenced by mainboard_init().

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

◆ dpm_reset()

void dpm_reset ( struct mtk_mcu mcu)

Definition at line 21 of file dpm.c.

References DPM_SW_RSTN_RESET, mtk_mcu::priv, setbits32, dpm_regs::sw_rstn, dpm_regs::twam_mon_type, dpm_regs::twam_window_len, and write32().

Here is the call graph for this function:

Variable Documentation

◆ dpm_mcu

struct mtk_mcu dpm_mcu[]
static
Initial value:
= {
{
.firmware_name = CONFIG_DPM_DM_FIRMWARE,
.run_address = (void *)DPM_DM_SRAM_BASE,
},
{
.firmware_name = CONFIG_DPM_PM_FIRMWARE,
.run_address = (void *)DPM_PM_SRAM_BASE,
.priv = mtk_dpm,
},
}
void dpm_reset(struct mtk_mcu *mcu)
Definition: dpm.c:21
static struct dpm_regs *const mtk_dpm
Definition: dpm.h:49
@ DPM_PM_SRAM_BASE
Definition: addressmap.h:49
@ DPM_DM_SRAM_BASE
Definition: addressmap.h:50
static void __noreturn reset(void)

Definition at line 1 of file dpm.c.

Referenced by dpm_init().