From 6cf551d73950fa0a703bed9eaa7fe3ba9493ead7 Mon Sep 17 00:00:00 2001
From: Przemyslaw Marczak
Date: Wed, 2 Dec 2015 11:48:56 +0100
Subject: [PATCH] bootstage: enable bootstage timing report to fdt
This commit enables boot stage time reporting for U-Boot
and appends it to device-tree, which can be seen in Linux.
The report is created as 'bootstage' fdt node with child
for each stage, like:
- main_loop (U-Boot prompt)
- start_kernel
fdt:
bootstage {
44 {
name = "start_kernel";
mark = <>;
};
...
};
This can be checked in linux with 'cat /proc/device-tree/bootstage/id/name'.
Note: The id's are not constant for each boot stage name. For safety
use in linux, it's better to find the proper one by it's name.
This feature is enabled for configs:
- odroid-xu3
- odroid-u3
- tizen
Signed-off-by: Przemyslaw Marczak
---
configs/odroid-xu3_defconfig | 3 +++
configs/odroid_defconfig | 3 +++
configs/tizen_defconfig | 3 +++
3 files changed, 9 insertions(+)
diff --git a/configs/odroid-xu3_defconfig b/configs/odroid-xu3_defconfig
index e56384303b..16f2f28234 100644
--- a/configs/odroid-xu3_defconfig
+++ b/configs/odroid-xu3_defconfig
@@ -19,3 +19,6 @@ CONFIG_USB=y
CONFIG_DM_USB=y
CONFIG_VIDEO_BRIDGE=y
CONFIG_ERRNO_STR=y
+CONFIG_BOOTSTAGE=y
+CONFIG_BOOTSTAGE_FDT=y
+CONFIG_CMD_BOOTSTAGE=y
diff --git a/configs/odroid_defconfig b/configs/odroid_defconfig
index 2c4959bd85..b80909149a 100644
--- a/configs/odroid_defconfig
+++ b/configs/odroid_defconfig
@@ -22,3 +22,6 @@ CONFIG_DM_REGULATOR_MAX77686=y
CONFIG_USB=y
CONFIG_DM_USB=y
CONFIG_ERRNO_STR=y
+CONFIG_BOOTSTAGE=y
+CONFIG_BOOTSTAGE_FDT=y
+CONFIG_CMD_BOOTSTAGE=y
diff --git a/configs/tizen_defconfig b/configs/tizen_defconfig
index d69b481aaf..b2c33147b1 100644
--- a/configs/tizen_defconfig
+++ b/configs/tizen_defconfig
@@ -13,3 +13,6 @@ CONFIG_SYS_PROMPT="U-Boot # "
# CONFIG_CMD_MISC is not set
CONFIG_USB=y
CONFIG_DM_USB=y
+CONFIG_BOOTSTAGE=y
+CONFIG_BOOTSTAGE_FDT=y
+CONFIG_CMD_BOOTSTAGE=y
--
2.34.1