bootstage: enable bootstage timing report to fdt
authorPrzemyslaw Marczak <p.marczak@samsung.com>
Wed, 2 Dec 2015 10:48:56 +0000 (11:48 +0100)
committerJaehoon Chung <jh80.chung@samsung.com>
Fri, 8 Apr 2016 02:17:34 +0000 (11:17 +0900)
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 <p.marczak@samsung.com>
configs/odroid-xu3_defconfig
configs/odroid_defconfig
configs/tizen_defconfig

index e56384303b838b6fe1c9d648d2d85212c9f24b8b..16f2f28234f6ac626afbd0f4a3c292401780a23d 100644 (file)
@@ -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
index 2c4959bd85d754b12767b96f69634e7e767ff1af..b80909149ade873608a2c8e4c2c91fb70e872737 100644 (file)
@@ -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
index d69b481aaf983d4b86ee73323e8d3f715d52a415..b2c33147b16a875fc9e0e2e30cd71b5bde107335 100644 (file)
@@ -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