x86: Show an error if video fails
If video is enabled we expect it to work. Avoid silent failure by adding a panic if things go wrong. Expand the SPL malloc-area for qemu-x86_64 to avoid a panic. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -300,9 +300,14 @@ void spl_board_init(void)
|
||||
|
||||
if (CONFIG_IS_ENABLED(VIDEO)) {
|
||||
struct udevice *dev;
|
||||
int ret;
|
||||
|
||||
/* Set up PCI video in SPL if required */
|
||||
uclass_first_device_err(UCLASS_PCI, &dev);
|
||||
uclass_first_device_err(UCLASS_VIDEO, &dev);
|
||||
ret = uclass_first_device_err(UCLASS_PCI, &dev);
|
||||
if (ret)
|
||||
panic("Failed to set up PCI");
|
||||
ret = uclass_first_device_err(UCLASS_VIDEO, &dev);
|
||||
if (ret)
|
||||
panic("Failed to set up video");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user