qemu: fix cirrus build

commit 9518b56 (intel/gma: Clarify code and use dedicated init for
Google Peppy) changed "struct edid" and thereby broke the build.
Adapt drivers/emulation/qemu/bochs.c to the changes to fix this.

Build failure triggers with CONFIG_FRAMEBUFFER_KEEP_VESA_MODE=y.

Change-Id: I2d3cecde21d495e9b99ff8d2f741f8a462c75a4d
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-on: http://review.coreboot.org/6771
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
Gerd Hoffmann 2014-08-27 11:23:35 +02:00
parent 4f62732858
commit 2177f1bcb5
1 changed files with 3 additions and 1 deletions

View File

@ -338,7 +338,9 @@ static void cirrus_init(device_t dev)
edid.x_resolution = width; edid.x_resolution = width;
edid.y_resolution = height; edid.y_resolution = height;
edid.bytes_per_line = width * 4; edid.bytes_per_line = width * 4;
edid.bpp = 32; edid.framebuffer_bits_per_pixel = 32;
edid.panel_bits_per_color = 8;
edid.panel_bits_per_pixel = 24;
set_vbe_mode_info_valid(&edid, addr); set_vbe_mode_info_valid(&edid, addr);
#else #else
vga_misc_write(0x1); vga_misc_write(0x1);