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 
13  CHIP_NAME("TI AM335X")
14  .enable_dev = soc_enable,
15 };
#define MiB
Definition: helpers.h:76
#define KiB
Definition: helpers.h:75
#define CHIP_NAME(X)
Definition: device.h:32
#define ram_resource(dev, idx, basek, sizek)
Definition: device.h:321
u8 _dram[]
unsigned long uintptr_t
Definition: stdint.h:21
Definition: device.h:107
struct chip_operations soc_ti_am335x_ops
Definition: soc.c:12
static void soc_enable(struct device *dev)
Definition: soc.c:7