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

Go to the source code of this file.

Macros

#define ABNORMALBOOT_REG   0x0C55FAA0
 

Functions

static void reset_mcupm (struct mtk_mcu *mcu)
 
void mcupm_init (void)
 

Variables

static struct mtk_mcu mcupm
 

Macro Definition Documentation

◆ ABNORMALBOOT_REG

#define ABNORMALBOOT_REG   0x0C55FAA0

Definition at line 9 of file mcupm.c.

Function Documentation

◆ mcupm_init()

void mcupm_init ( void  )

Definition at line 24 of file mcupm.c.

References mtk_mcu::buffer_size, die(), mtk_mcu::load_buffer, mcupm, mcupm_reg, mtk_init_mcu(), REGION_SIZE, mcupm_regs::sw_rstn, and write32().

Referenced by soc_init().

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

◆ reset_mcupm()

static void reset_mcupm ( struct mtk_mcu mcu)
static

Definition at line 11 of file mcupm.c.

Variable Documentation

◆ mcupm

struct mtk_mcu mcupm
static
Initial value:
= {
.firmware_name = CONFIG_MCUPM_FIRMWARE,
.run_address = (void *)MCUPM_SRAM_BASE,
}
static void reset_mcupm(struct mtk_mcu *mcu)
Definition: mcupm.c:11
@ MCUPM_SRAM_BASE
Definition: addressmap.h:8
static void __noreturn reset(void)

Definition at line 11 of file mcupm.c.

Referenced by mcupm_init().