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 <bootmode.h>
4 #include <console/console.h>
5 #include <device/device.h>
6 #include <gpio.h>
7 #include <soc/display.h>
8 #include <soc/soc.h>
9 #include <soc/sdram.h>
10 #include <symbols.h>
11 
12 #include "chip.h"
13 
14 static void soc_init(struct device *dev)
15 {
18  rk_display_init(dev, (uintptr_t)_framebuffer,
19  REGION_SIZE(framebuffer));
20  else
21  printk(BIOS_INFO, "Skipping display init.\n");
22 }
23 
24 static struct device_operations soc_ops = {
26  .set_resources = noop_set_resources,
27  .init = soc_init,
28 };
29 
30 static void enable_rk3288_dev(struct device *dev)
31 {
32  dev->ops = &soc_ops;
33 }
34 
36  CHIP_NAME("SOC Rockchip 3288")
37  .enable_dev = enable_rk3288_dev,
38 };
int display_init_required(void)
Definition: bootmode.c:22
#define MiB
Definition: helpers.h:76
#define KiB
Definition: helpers.h:75
size_t sdram_size_mb(void)
Definition: sdram.c:24
#define printk(level,...)
Definition: stdlib.h:16
#define CHIP_NAME(X)
Definition: device.h:32
static void noop_read_resources(struct device *dev)
Standard device operations function pointers shims.
Definition: device.h:73
static void noop_set_resources(struct device *dev)
Definition: device.h:74
#define ram_resource(dev, idx, basek, sizek)
Definition: device.h:321
u8 _dram[]
#define REGION_SIZE(name)
Definition: symbols.h:10
#define BIOS_INFO
BIOS_INFO - Expected events.
Definition: loglevel.h:113
static void enable_rk3288_dev(struct device *dev)
Definition: soc.c:30
static struct device_operations soc_ops
Definition: soc.c:24
static void soc_init(struct device *dev)
Definition: soc.c:14
struct chip_operations soc_rockchip_rk3288_ops
Definition: soc.c:35
void rk_display_init(struct device *dev, u32 lcdbase, unsigned long fb_size)
Definition: display.c:24
unsigned long uintptr_t
Definition: stdint.h:21
void(* read_resources)(struct device *dev)
Definition: device.h:39
Definition: device.h:107
struct device_operations * ops
Definition: device.h:143