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

Go to the source code of this file.

Data Structures

struct  ipq_mem_map_t
 

Macros

#define LINUX_REGION1_START   ((uintptr_t)(ipq_mem_map->hlos1))
 
#define LINUX_REGION1_START_KB   (LINUX_REGION1_START / KiB)
 
#define LINUX_REGION1_SIZE
 
#define LINUX_REGION1_SIZE_KB   (LINUX_REGION1_SIZE / KiB)
 
#define RESERVED_START   ((uintptr_t)(ipq_mem_map->rsvd))
 
#define RESERVED_START_KB   (RESERVED_START / KiB)
 
#define RESERVED_SIZE   (sizeof(ipq_mem_map->rsvd))
 
#define RESERVED_SIZE_KB   (RESERVED_SIZE / KiB)
 
#define LINUX_REGION2_START   ((uintptr_t)(ipq_mem_map->hlos2))
 
#define LINUX_REGION2_START_KB   (LINUX_REGION2_START / KiB)
 

Functions

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_qualcomm_ipq40xx_ops
 

Macro Definition Documentation

◆ LINUX_REGION1_SIZE

#define LINUX_REGION1_SIZE
Value:
(sizeof(ipq_mem_map->hlos1) + \
sizeof(ipq_mem_map->appsbl) + \
sizeof(ipq_mem_map->sbl))

Definition at line 18 of file soc.c.

◆ LINUX_REGION1_SIZE_KB

#define LINUX_REGION1_SIZE_KB   (LINUX_REGION1_SIZE / KiB)

Definition at line 21 of file soc.c.

◆ LINUX_REGION1_START

#define LINUX_REGION1_START   ((uintptr_t)(ipq_mem_map->hlos1))

Definition at line 16 of file soc.c.

◆ LINUX_REGION1_START_KB

#define LINUX_REGION1_START_KB   (LINUX_REGION1_START / KiB)

Definition at line 17 of file soc.c.

◆ LINUX_REGION2_START

#define LINUX_REGION2_START   ((uintptr_t)(ipq_mem_map->hlos2))

Definition at line 29 of file soc.c.

◆ LINUX_REGION2_START_KB

#define LINUX_REGION2_START_KB   (LINUX_REGION2_START / KiB)

Definition at line 30 of file soc.c.

◆ RESERVED_SIZE

#define RESERVED_SIZE   (sizeof(ipq_mem_map->rsvd))

Definition at line 25 of file soc.c.

◆ RESERVED_SIZE_KB

#define RESERVED_SIZE_KB   (RESERVED_SIZE / KiB)

Definition at line 26 of file soc.c.

◆ RESERVED_START

#define RESERVED_START   ((uintptr_t)(ipq_mem_map->rsvd))

Definition at line 23 of file soc.c.

◆ RESERVED_START_KB

#define RESERVED_START_KB   (RESERVED_START / KiB)

Definition at line 24 of file soc.c.

Function Documentation

◆ enable_soc_dev()

static void enable_soc_dev ( struct device dev)
static

Definition at line 62 of file soc.c.

References device::ops, and soc_ops.

◆ soc_init()

static void soc_init ( struct device dev)
static

Definition at line 46 of file soc.c.

References BIOS_INFO, ipq40xx_uart_init(), and printk.

Here is the call graph for this function:

◆ soc_read_resources()

static void soc_read_resources ( struct device dev)
static

Variable Documentation

◆ soc_ops

struct device_operations soc_ops
static
Initial value:
= {
.read_resources = soc_read_resources,
.init = soc_init,
}
static void soc_read_resources(struct device *dev)
Definition: soc.c:32
static void soc_init(struct device *dev)
Definition: soc.c:46

Definition at line 46 of file soc.c.

Referenced by enable_soc_dev().

◆ soc_qualcomm_ipq40xx_ops

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

Definition at line 62 of file soc.c.