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/apusys.h>
#include <soc/devapc.h>
#include <soc/dfd.h>
#include <soc/emi.h>
#include <soc/mcupm.h>
#include <soc/mmu_operations.h>
#include <soc/sspm.h>
#include <soc/ufs.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_mt8192_ops
 

Function Documentation

◆ bootmem_platform_add_ranges()

void bootmem_platform_add_ranges ( void  )

Definition at line 15 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 44 of file soc.c.

References device::ops, and soc_ops.

◆ soc_init()

static void soc_init ( struct device dev)
static

Definition at line 26 of file soc.c.

References apusys_init(), CONFIG, dapc_init(), dfd_init(), mcupm_init(), mtk_mmu_disable_l2c_sram(), sspm_init(), and ufs_disable_refclk().

Here is the call graph for this function:

◆ soc_read_resources()

static void soc_read_resources ( struct device dev)
static

Definition at line 21 of file soc.c.

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

Here is the call graph for this function:

Variable Documentation

◆ soc_mediatek_mt8192_ops

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

Definition at line 44 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:21
static void soc_init(struct device *dev)
Definition: soc.c:26

Definition at line 26 of file soc.c.

Referenced by enable_soc_dev().