From: Przemyslaw Marczak Date: Wed, 2 Dec 2015 10:48:56 +0000 (+0100) Subject: bootstage: enable bootstage timing report to fdt X-Git-Tag: submit/tizen/20160425.072005~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f6fcc8c061926b9f2cfb04d90dd8f4d5983f9ced;p=platform%2Fkernel%2Fu-boot.git 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 --- 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