summaryrefslogtreecommitdiff
path: root/src/mainboard/google/peach_pit
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/peach_pit')
-rw-r--r--src/mainboard/google/peach_pit/mainboard.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/mainboard/google/peach_pit/mainboard.c b/src/mainboard/google/peach_pit/mainboard.c
index 85c0407e81..ab3c0f5b35 100644
--- a/src/mainboard/google/peach_pit/mainboard.c
+++ b/src/mainboard/google/peach_pit/mainboard.c
@@ -9,7 +9,6 @@
#include <device/i2c_simple.h>
#include <drivers/parade/ps8625/ps8625.h>
#include <ec/google/chromeec/ec.h>
-#include <edid.h>
#include <soc/tmu.h>
#include <soc/clk.h>
#include <soc/cpu.h>
@@ -23,20 +22,12 @@
#include <string.h>
#include <symbols.h>
#include <vbe.h>
+#include <framebuffer_info.h>
/* convenient shorthand (in MB) */
#define DRAM_START ((uintptr_t)_dram/MiB)
#define DRAM_SIZE CONFIG_DRAM_SIZE_MB
-static struct edid edid = {
- .mode.ha = 1366,
- .mode.va = 768,
- .framebuffer_bits_per_pixel = 16,
- .x_resolution = 1366,
- .y_resolution = 768,
- .bytes_per_line = 2 * 1366
-};
-
/* from the fdt */
static struct vidinfo vidinfo = {
.vl_freq = 60,
@@ -402,7 +393,7 @@ static void mainboard_init(struct device *dev)
sdmmc_vdd();
- set_vbe_mode_info_valid(&edid, (uintptr_t)fb_addr);
+ fb_add_framebuffer_info((uintptr_t)fb_addr, 1366, 768, 2 * 1366, 16);
/*
* The reset value for FIMD SYSMMU register MMU_CTRL:0x14640000