Add POST code for "All devices initialized"

Right now we only had a post code for "All devices enabled" which
was emitted at the wrong time (after the device initialize stage
rather than the device enable stage)

Change-Id: Iee82bff020de844c7095703f8d6521953003032c
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/1693
Reviewed-by: Marc Jones <marcj303@gmail.com>
Tested-by: build bot (Jenkins)
This commit is contained in:
Stefan Reinauer 2012-08-07 13:14:20 -07:00 committed by Stefan Reinauer
parent b6e1237978
commit 52095f5854
2 changed files with 9 additions and 1 deletions

View File

@ -102,13 +102,14 @@ void hardwaremain(int boot_complete)
#endif
/* Now actually enable devices on the bus */
dev_enable();
post_code(POST_DEVICES_ENABLED);
#if CONFIG_COLLECT_TIMESTAMPS
timestamps[4] = rdtsc();
#endif
/* And of course initialize devices on the bus */
dev_initialize();
post_code(POST_DEVICES_ENABLED);
post_code(POST_DEVICES_INITIALIZED);
#if CONFIG_COLLECT_TIMESTAMPS
timestamps[5] = rdtsc();

View File

@ -133,6 +133,13 @@
*/
#define POST_DEVICES_ENABLED 0x89
/**
* \brief Devices have been initialized
*
* Devices have been initialized.
*/
#define POST_DEVICES_INITIALIZED 0x8a
/**
* \brief Entry into elf boot
*