Debian Codegraph @

src/soc/rockchip/rk3288/soc.c

raw symbols SCIP
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 {
16 ram_range(dev, 0, (uintptr_t)_dram, sdram_size_mb() * MiB);
17 if (display_init_required())
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 = {
25 .read_resources = noop_read_resources,
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
35 struct chip_operations soc_rockchip_rk3288_ops = {
36 .name = "SOC Rockchip 3288",
37 .enable_dev = enable_rk3288_dev,
38 };