coreboot/src/mainboard/intel
Ronald G. Minnich 39a1875f7d Provide support for setting up the framebuffer from EDID
Add three functions to edid.c:

void set_vbe_mode_info_valid(struct edid *edid, uintptr_t fb_addr)
takes an edid and uintptr_t, and fills in a static lb_framebuffer struct
as well as setting the static vbe_valid to 1 unless some problem
is found in the edid. The intent here is that this could be called from
the native graphics setup code on both ARM and x86.

int vbe_mode_info_valid(void)
returns value of the static vbe_valid.

void fill_lb_framebuffer(struct lb_framebuffer *framebuffer)
copies the static edid_fb to lb_framebuffer.

There is now a common vbe.h in src/include, removed the two special ones.

In general, graphics in coreboot is a mess, but graphics is always a
mess.  We don't have a clean way to try two different ways to turn on
a device and use the one that works. One battle at a time. Overall,
things are much better.

The best part: this code would also work for ARM, which also uses EDID.

BUG=None
TEST=build coreboot with and without native graphics enabled. It builds.
Build with YABEL. It still builds.
BRANCH=NONE

Change-Id: Ieef2178e7e7fa850556c9af68e2d897a33aec871
Signed-off-by: Ronald G. Minnich <rminnich@google.com>
Reviewed-on: https://gerrit.chromium.org/gerrit/48923
Reviewed-by: David Hendricks <dhendrix@chromium.org>
Reviewed-by: Stefan Reinauer <reinauer@google.com>
Commit-Queue: Ronald G. Minnich <rminnich@chromium.org>
Tested-by: Ronald G. Minnich <rminnich@chromium.org>
2013-04-24 18:33:20 -07:00
..
baskingridge haswell: Fix VGA option rom INT15 handler 2013-04-23 14:46:03 -07:00
d810e2cb GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
d945gclf x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
eagleheights x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
emeraldlake2 Unify coreboot table generation 2013-03-22 00:17:55 +01:00
jarrell x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
mtarvon x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
truxton x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
wtm2 Provide support for setting up the framebuffer from EDID 2013-04-24 18:33:20 -07:00
xe7501devkit x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
Kconfig Remove the wtm1 mainboard. 2013-04-23 13:35:32 -07:00