coreboot/src
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
..
arch armv7: specify condition code for msr instruction 2013-04-08 18:31:08 +02:00
console console: Make use of CONFIG_USE_OPTION_TABLE 2013-04-01 20:54:48 +02:00
cpu haswell: calibrate 24MHz clock against BCLK 2013-04-23 16:50:45 -07:00
device Provide support for setting up the framebuffer from EDID 2013-04-24 18:33:20 -07:00
drivers x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
ec ChromeEC: Drop unneeded Kconfig variable EC_GOOGLE_API_ROOT 2013-04-09 13:45:43 -07:00
include Provide support for setting up the framebuffer from EDID 2013-04-24 18:33:20 -07:00
lib Provide support for setting up the framebuffer from EDID 2013-04-24 18:33:20 -07:00
mainboard Provide support for setting up the framebuffer from EDID 2013-04-24 18:33:20 -07:00
northbridge fox_wtm2: First step support for coreboot-based graphics startup 2013-04-23 15:50:48 -07:00
southbridge lynxpoint: Rework LP GPIO handling 2013-04-24 08:33:25 -07:00
superio Winbond W83627HF: Rename and move ASL snippet to acpi/superio.asl 2013-04-01 21:09:24 +02:00
vendorcode Eliminate use of pointers in coreboot table 2013-04-22 11:57:06 -07:00
Kconfig dynamic cbmem: fix memconsole and timestamps 2013-03-23 19:44:25 +01:00