diff mbox

[U-Boot,v3,05/35] tegra: video: Time the LCD init

Message ID 20170612122202.3379-6-sjg@chromium.org
State Accepted
Delegated to: Simon Glass
Headers show

Commit Message

Simon Glass June 12, 2017, 12:21 p.m. UTC
Calculate the time taken to set up the LCD.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

Changes in v3: None
Changes in v2: None

 drivers/video/tegra124/display.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Simon Glass July 6, 2017, 5:36 p.m. UTC | #1
Calculate the time taken to set up the LCD.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

Changes in v3: None
Changes in v2: None

 drivers/video/tegra124/display.c | 2 ++
 1 file changed, 2 insertions(+)

Applied to u-boot-dm, thanks!
diff mbox

Patch

diff --git a/drivers/video/tegra124/display.c b/drivers/video/tegra124/display.c
index bbbca13bdc..47752b27f1 100644
--- a/drivers/video/tegra124/display.c
+++ b/drivers/video/tegra124/display.c
@@ -471,7 +471,9 @@  static int tegra124_lcd_probe(struct udevice *dev)
 	int ret;
 
 	start = get_timer(0);
+	bootstage_start(BOOTSTAGE_ID_ACCUM_LCD, "lcd");
 	ret = tegra124_lcd_init(dev, (void *)plat->base, VIDEO_BPP16);
+	bootstage_accum(BOOTSTAGE_ID_ACCUM_LCD);
 	debug("LCD init took %lu ms\n", get_timer(start));
 	if (ret)
 		printf("%s: Error %d\n", __func__, ret);