mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-27 23:20:26 +09:00
video: Fix video on coreboot with the copy buffer
The copy buffer, if enabled, prevents booting from coreboot correctly, since no memory is allocated for it. Allow it to fall back to disabled in this situation. This ensures that a console is displayed, even if it is slow. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
907bcd3a33
commit
bcac36185b
@ -349,13 +349,10 @@ int vbe_setup_video_priv(struct vesa_mode_info *vesa,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Use double buffering if enabled */
|
/* Use double buffering if enabled */
|
||||||
if (IS_ENABLED(CONFIG_VIDEO_COPY)) {
|
if (IS_ENABLED(CONFIG_VIDEO_COPY) && plat->base)
|
||||||
if (!plat->base)
|
|
||||||
return log_msg_ret("copy", -ENFILE);
|
|
||||||
plat->copy_base = vesa->phys_base_ptr;
|
plat->copy_base = vesa->phys_base_ptr;
|
||||||
} else {
|
else
|
||||||
plat->base = vesa->phys_base_ptr;
|
plat->base = vesa->phys_base_ptr;
|
||||||
}
|
|
||||||
log_debug("base = %lx, copy_base = %lx\n", plat->base, plat->copy_base);
|
log_debug("base = %lx, copy_base = %lx\n", plat->base, plat->copy_base);
|
||||||
plat->size = vesa->bytes_per_scanline * vesa->y_resolution;
|
plat->size = vesa->bytes_per_scanline * vesa->y_resolution;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user