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>
Thu, 10 Oct 2019 04:38:36 +0000 (13:38 +0900)
commitcc19bd066c446a91d0e1292e2e21fc9395afb92a
tree9b5a0008a5d21a66cb13b3a8deea080f94aa20a0
parent8501dd51b4cbc1e4262c22d552e5e1ecea053b61
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 <p.marczak@samsung.com>
configs/odroid-xu3_defconfig
configs/odroid_defconfig
configs/tizen_defconfig