[coreboot-gerrit] Patch set updated for coreboot: soc/intel/apollolake: Write LB_FRAMEBUFFER table when appropriate
Alexandru Gagniuc (mr.nuke.me@gmail.com)
gerrit at coreboot.org
Mon Jan 25 06:41:34 CET 2016
Alexandru Gagniuc (mr.nuke.me at gmail.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/13387
-gerrit
commit c639610d57b754bbe5c5df95b5a28d6402b187ff
Author: Alexandru Gagniuc <alexandrux.gagniuc at intel.com>
Date: Tue Dec 15 16:06:15 2015 -0800
soc/intel/apollolake: Write LB_FRAMEBUFFER table when appropriate
FSP does not itself write the LB_FRAMEBUFFER entry, so that needs to
be done in platform code.
Change-Id: Ie678249fb0620e776b07a3aa2d4bcde25171cbde
Signed-off-by: Alexandru Gagniuc <alexandrux.gagniuc at intel.com>
---
src/soc/intel/apollolake/Makefile.inc | 1 +
src/soc/intel/apollolake/graphics.c | 25 +++++++++++++++++++++++++
2 files changed, 26 insertions(+)
diff --git a/src/soc/intel/apollolake/Makefile.inc b/src/soc/intel/apollolake/Makefile.inc
index bedbf07..af0bd56 100644
--- a/src/soc/intel/apollolake/Makefile.inc
+++ b/src/soc/intel/apollolake/Makefile.inc
@@ -29,6 +29,7 @@ ramstage-y += car_teardown.c
ramstage-y += chip.c
ramstage-y += cpu.c
ramstage-y += gpio.c
+ramstage-y += graphics.c
ramstage-y += lpc.c
ramstage-y += memmap.c
ramstage-y += mmap_boot.c
diff --git a/src/soc/intel/apollolake/graphics.c b/src/soc/intel/apollolake/graphics.c
new file mode 100644
index 0000000..7b9a75c
--- /dev/null
+++ b/src/soc/intel/apollolake/graphics.c
@@ -0,0 +1,25 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2015 Intel Corp.
+ * (Written by Alexandru Gagniuc <alexandrux.gagniuc at intel.com> for Intel Corp.)
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ */
+
+#include <console/console.h>
+#include <fsp/util.h>
+
+void lb_framebuffer(struct lb_header *header)
+{
+ enum cb_err ret;
+ struct lb_framebuffer *framebuffer;
+
+ framebuffer = (void *)lb_new_record(header);
+ ret = fsp_fill_lb_framebuffer(framebuffer);
+ if (ret != CB_SUCCESS)
+ printk(BIOS_ALERT, "FSP did not return a valid framebuffer\n");
+}
More information about the coreboot-gerrit
mailing list