diff --git a/src/commonlib/include/commonlib/timestamp_serialized.h b/src/commonlib/include/commonlib/timestamp_serialized.h index f60e040c3b..6bcbabc890 100644 --- a/src/commonlib/include/commonlib/timestamp_serialized.h +++ b/src/commonlib/include/commonlib/timestamp_serialized.h @@ -37,7 +37,8 @@ enum timestamp_id { TS_ULZMA_END = 16, TS_ULZ4F_START = 17, TS_ULZ4F_END = 18, - TS_DEVICE_ENUMERATE = 30, + TS_DEVICE_INIT_CHIPS = 30, + TS_DEVICE_ENUMERATE = 31, TS_DEVICE_CONFIGURE = 40, TS_DEVICE_ENABLE = 50, TS_DEVICE_INITIALIZE = 60, @@ -218,6 +219,7 @@ static const struct timestamp_id_to_name { TS_NAME_DEF(TS_ULZMA_END, 0, "finished LZMA decompress (ignore for x86)"), TS_NAME_DEF(TS_ULZ4F_START, TS_ULZ4F_END, "starting LZ4 decompress (ignore for x86)"), TS_NAME_DEF(TS_ULZ4F_END, 0, "finished LZ4 decompress (ignore for x86)"), + TS_NAME_DEF(TS_DEVICE_INIT_CHIPS, TS_DEVICE_ENUMERATE, "early chipset initialization"), TS_NAME_DEF(TS_DEVICE_ENUMERATE, TS_DEVICE_CONFIGURE, "device enumeration"), TS_NAME_DEF(TS_DEVICE_CONFIGURE, TS_DEVICE_ENABLE, "device configuration"), TS_NAME_DEF(TS_DEVICE_ENABLE, TS_DEVICE_INITIALIZE, "device enable"), diff --git a/src/lib/hardwaremain.c b/src/lib/hardwaremain.c index fda6c62d2e..7e5d848af9 100644 --- a/src/lib/hardwaremain.c +++ b/src/lib/hardwaremain.c @@ -93,7 +93,7 @@ static boot_state_t bs_pre_device(void *arg) static boot_state_t bs_dev_init_chips(void *arg) { - timestamp_add_now(TS_DEVICE_ENUMERATE); + timestamp_add_now(TS_DEVICE_INIT_CHIPS); /* Initialize chips early, they might disable unused devices. */ dev_initialize_chips(); @@ -103,6 +103,8 @@ static boot_state_t bs_dev_init_chips(void *arg) static boot_state_t bs_dev_enumerate(void *arg) { + timestamp_add_now(TS_DEVICE_ENUMERATE); + /* Find the devices we don't have hard coded knowledge about. */ dev_enumerate();