coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
soc.c File Reference
#include <bootmem.h>
#include <device/device.h>
#include <soc/devapc.h>
#include <soc/dfd.h>
#include <soc/emi.h>
#include <soc/mmu_operations.h>
#include <soc/sspm.h>
#include <symbols.h>
Include dependency graph for soc.c:

Go to the source code of this file.

Functions

void bootmem_platform_add_ranges (void)
 
static void soc_read_resources (struct device *dev)
 
static void soc_init (struct device *dev)
 
static void enable_soc_dev (struct device *dev)
 

Variables

static struct device_operations soc_ops
 
struct chip_operations soc_mediatek_mt8186_ops
 

Function Documentation

◆ bootmem_platform_add_ranges()

void bootmem_platform_add_ranges ( void  )

Definition at line 12 of file soc.c.

References BM_MEM_RESERVED, bootmem_add_range(), CONFIG, DFD_DUMP_ADDRESS, and DFD_DUMP_SIZE.

Here is the call graph for this function:

◆ enable_soc_dev()

static void enable_soc_dev ( struct device dev)
static

Definition at line 39 of file soc.c.

References device::ops, and soc_ops.

◆ soc_init()

static void soc_init ( struct device dev)
static

Definition at line 23 of file soc.c.

References CONFIG, dapc_init(), dfd_init(), mtk_mmu_disable_l2c_sram(), and sspm_init().

Here is the call graph for this function:

◆ soc_read_resources()

static void soc_read_resources ( struct device dev)
static

Definition at line 18 of file soc.c.

References _dram, KiB, ram_resource, and sdram_size().

Here is the call graph for this function:

Variable Documentation

◆ soc_mediatek_mt8186_ops

struct chip_operations soc_mediatek_mt8186_ops
Initial value:
= {
.enable_dev = enable_soc_dev,
}
static void enable_soc_dev(struct device *dev)
Definition: soc.c:39

Definition at line 39 of file soc.c.

◆ soc_ops

struct device_operations soc_ops
static
Initial value:
= {
.read_resources = soc_read_resources,
.set_resources = noop_set_resources,
.init = soc_init,
}
static void noop_set_resources(struct device *dev)
Definition: device.h:74
static void soc_read_resources(struct device *dev)
Definition: soc.c:18
static void soc_init(struct device *dev)
Definition: soc.c:23

Definition at line 23 of file soc.c.

Referenced by enable_soc_dev().