summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-01-27 22:13:35 -0700
committerSimon Glass <sjg@chromium.org>2015-02-05 22:16:43 -0700
commitef565a53ea96761ee8e705c0d56dbf160b672d51 (patch)
tree863abd23f22cc0e95268cdd0448614f7bc559028 /drivers/video
parentbc17d8f4ac41a6a4bcc4b28f1c6216a5a034fa63 (diff)
downloadu-boot-imx-ef565a53ea96761ee8e705c0d56dbf160b672d51.zip
u-boot-imx-ef565a53ea96761ee8e705c0d56dbf160b672d51.tar.gz
u-boot-imx-ef565a53ea96761ee8e705c0d56dbf160b672d51.tar.bz2
x86: bootstage: Add time measurement for vesa start-up
Since we must run a PCI BIOS ROM, and this can take a calamitous amount of time, measure it using bootstage. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/vesa_fb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/vesa_fb.c b/drivers/video/vesa_fb.c
index 9164f8d..47f824a 100644
--- a/drivers/video/vesa_fb.c
+++ b/drivers/video/vesa_fb.c
@@ -42,8 +42,10 @@ void *video_hw_init(void)
printf("no card detected\n");
return NULL;
}
+ bootstage_start(BOOTSTAGE_ID_ACCUM_LCD, "vesa display");
ret = pci_run_vga_bios(dev, NULL, PCI_ROM_USE_NATIVE |
PCI_ROM_ALLOW_FALLBACK);
+ bootstage_accum(BOOTSTAGE_ID_ACCUM_LCD);
if (ret) {
printf("failed to run video BIOS: %d\n", ret);
return NULL;