aboutsummaryrefslogtreecommitdiff
path: root/arch/x86
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-03-15 18:00:28 +1300
committerSimon Glass <sjg@chromium.org>2021-03-27 15:04:30 +1300
commit937175ee72fa5318016be3d887bd1a1b5409f038 (patch)
treecf5645b80dfb2895c7066a9d7200435908c9ea05 /arch/x86
parent19987c9834bfd854ff27ae0382ce18511b84c6ea (diff)
downloadu-boot-937175ee72fa5318016be3d887bd1a1b5409f038.zip
u-boot-937175ee72fa5318016be3d887bd1a1b5409f038.tar.gz
u-boot-937175ee72fa5318016be3d887bd1a1b5409f038.tar.bz2
x86: fsp: Don't enable FSP graphics if booted from coreboot
This driver cannot work when booted from coreboot, since the FSP information is not available. Disable it in that case, so that the coreboot video driver can be used instead. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/lib/fsp/fsp_graphics.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/lib/fsp/fsp_graphics.c b/arch/x86/lib/fsp/fsp_graphics.c
index cc909e0..02fd05c 100644
--- a/arch/x86/lib/fsp/fsp_graphics.c
+++ b/arch/x86/lib/fsp/fsp_graphics.c
@@ -87,7 +87,7 @@ static int fsp_video_probe(struct udevice *dev)
int ret;
if (!ll_boot_init())
- return 0;
+ return -ENODEV;
printf("Video: ");