coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
soc.c
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#include <
device/device.h
>
4
#include <symbols.h>
5
#include <
bootmem.h
>
6
7
static
void
soc_enable
(
struct
device
*dev)
8
{
9
ram_resource
(dev, 0, (
uintptr_t
)
_dram
/
KiB
, CONFIG_DRAM_SIZE_MB *
MiB
/
KiB
);
10
}
11
12
struct
chip_operations
soc_ti_am335x_ops
= {
13
CHIP_NAME
(
"TI AM335X"
)
14
.enable_dev =
soc_enable
,
15
};
bootmem.h
MiB
#define MiB
Definition:
helpers.h:76
KiB
#define KiB
Definition:
helpers.h:75
device.h
CHIP_NAME
#define CHIP_NAME(X)
Definition:
device.h:32
ram_resource
#define ram_resource(dev, idx, basek, sizek)
Definition:
device.h:321
_dram
u8 _dram[]
uintptr_t
unsigned long uintptr_t
Definition:
stdint.h:21
chip_operations
Definition:
device.h:23
device
Definition:
device.h:107
soc_ti_am335x_ops
struct chip_operations soc_ti_am335x_ops
Definition:
soc.c:12
soc_enable
static void soc_enable(struct device *dev)
Definition:
soc.c:7
src
soc
ti
am335x
soc.c
Generated by
1.9.1