coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
cpu.c File Reference
#include <arch/cache.h>
#include <console/console.h>
#include <device/mmio.h>
#include <device/device.h>
#include <soc/clk.h>
#include <soc/cpu.h>
#include <soc/dp-core.h>
#include <soc/fimd.h>
#include <string.h>
#include "chip.h"
Include dependency graph for cpu.c:

Go to the source code of this file.

Functions

static void set_cpu_id (void)
 
static void exynos_displayport_init (struct device *dev, u32 lcdbase, unsigned long fb_size)
 
static void cpu_enable (struct device *dev)
 
static void cpu_read_resources (struct device *dev)
 
static void cpu_init (struct device *dev)
 
static void enable_exynos5250_dev (struct device *dev)
 
void exynos5250_config_l2_cache (void)
 

Variables

static unsigned int cpu_id
 
static unsigned int cpu_rev
 
static struct device_operations cpu_ops
 
struct chip_operations soc_samsung_exynos5250_ops
 

Function Documentation

◆ cpu_enable()

static void cpu_enable ( struct device dev)
static

Definition at line 93 of file cpu.c.

References exynos_displayport_init(), FB_SIZE_KB, get_fb_base_kb(), KiB, and set_cpu_id().

Here is the call graph for this function:

◆ cpu_init()

static void cpu_init ( struct device dev)
static

Definition at line 112 of file cpu.c.

References BIOS_INFO, cpu_id, get_arm_clk(), and printk.

Here is the call graph for this function:

◆ cpu_read_resources()

static void cpu_read_resources ( struct device dev)
static

Definition at line 103 of file cpu.c.

References DIV_ROUND_UP, FB_SIZE_KB, get_fb_base_kb(), KiB, mmio_resource, RAM_BASE_KB, ram_resource, and RAM_SIZE_KB.

Here is the call graph for this function:

◆ enable_exynos5250_dev()

static void enable_exynos5250_dev ( struct device dev)
static

Definition at line 125 of file cpu.c.

References cpu_ops, and device::ops.

◆ exynos5250_config_l2_cache()

void exynos5250_config_l2_cache ( void  )

Definition at line 135 of file cpu.c.

References val, and write_l2ctlr().

Referenced by mainboard_enable().

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

◆ exynos_displayport_init()

◆ set_cpu_id()

static void set_cpu_id ( void  )
static

Definition at line 18 of file cpu.c.

References cpu_id, cpu_rev, EXYNOS5_PRO_ID, and read32().

Referenced by cpu_enable().

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

Variable Documentation

◆ cpu_id

unsigned int cpu_id
static

Definition at line 15 of file cpu.c.

Referenced by cpu_init(), and set_cpu_id().

◆ cpu_ops

struct device_operations cpu_ops
static
Initial value:
= {
.read_resources = cpu_read_resources,
.set_resources = noop_set_resources,
.enable_resources = cpu_enable,
.init = cpu_init,
}
static void noop_set_resources(struct device *dev)
Definition: device.h:74
static void cpu_enable(struct device *dev)
Definition: cpu.c:93
static void cpu_init(struct device *dev)
Definition: cpu.c:112
static void cpu_read_resources(struct device *dev)
Definition: cpu.c:103

Definition at line 112 of file cpu.c.

Referenced by enable_exynos5250_dev().

◆ cpu_rev

unsigned int cpu_rev
static

Definition at line 16 of file cpu.c.

Referenced by set_cpu_id().

◆ soc_samsung_exynos5250_ops

struct chip_operations soc_samsung_exynos5250_ops
Initial value:
= {
.enable_dev = enable_exynos5250_dev,
}
static void enable_exynos5250_dev(struct device *dev)
Definition: cpu.c:125

Definition at line 125 of file cpu.c.