drivers/mipi: Add support for KD_KD110N11_51IE panel
[coreboot2.git] / src / soc / rockchip / rk3288 / soc.c
blob8704d16043368e886bba4f6ac334d66b01df8f64
1 /* SPDX-License-Identifier: GPL-2.0-only */
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>
12 #include "chip.h"
14 static void soc_init(struct device *dev)
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");
24 static struct device_operations soc_ops = {
25 .read_resources = noop_read_resources,
26 .set_resources = noop_set_resources,
27 .init = soc_init,
30 static void enable_rk3288_dev(struct device *dev)
32 dev->ops = &soc_ops;
35 struct chip_operations soc_rockchip_rk3288_ops = {
36 .name = "SOC Rockchip 3288",
37 .enable_dev = enable_rk3288_dev,