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 <ec/google/chromeec/ec.h>
#include <soc/dp.h>
#include <soc/fimd.h>
#include <soc/cpu.h>
#include <soc/clk.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 tps65090_thru_ec_fet_disable (int index)
 
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_exynos5420_dev (struct device *dev)
 

Variables

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

Function Documentation

◆ cpu_enable()

static void cpu_enable ( struct device dev)
static

Definition at line 113 of file cpu.c.

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

Here is the call graph for this function:

◆ cpu_init()

static void cpu_init ( struct device dev)
static

Definition at line 140 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 131 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_exynos5420_dev()

static void enable_exynos5420_dev ( struct device dev)
static

Definition at line 153 of file cpu.c.

References cpu_ops, and device::ops.

◆ exynos_displayport_init()

◆ set_cpu_id()

static void set_cpu_id ( void  )
static

Definition at line 19 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:

◆ tps65090_thru_ec_fet_disable()

static void tps65090_thru_ec_fet_disable ( int  index)
static

Definition at line 102 of file cpu.c.

References BIOS_ERR, google_chromeec_i2c_xfer(), printk, and value.

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 16 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:113
static void cpu_init(struct device *dev)
Definition: cpu.c:140
static void cpu_read_resources(struct device *dev)
Definition: cpu.c:131

Definition at line 140 of file cpu.c.

Referenced by enable_exynos5420_dev().

◆ cpu_rev

unsigned int cpu_rev
static

Definition at line 17 of file cpu.c.

Referenced by set_cpu_id().

◆ soc_samsung_exynos5420_ops

struct chip_operations soc_samsung_exynos5420_ops
Initial value:
= {
.enable_dev = enable_exynos5420_dev,
}
static void enable_exynos5420_dev(struct device *dev)
Definition: cpu.c:153

Definition at line 153 of file cpu.c.