bootstage: Create an initial header for boot progress integers

At present boot_stage_progress() is called with various magic numbers. The
new bootstage.h header will be used to turn these into symbolic names
throughout the code.

The intent is not that these numbers are passed to Linux. In fact by using
an enum to track them we should eventually be able to remove the explict
numbers and just have the stages count up from 0.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2012-03-18 20:43:38 +01:00
committed by Wolfgang Denk
parent 6eee21daf3
commit 097e17836d
2 changed files with 60 additions and 4 deletions
+2 -4
View File
@@ -798,10 +798,8 @@ int pcmcia_init (void);
#ifdef CONFIG_STATUS_LED
# include <status_led.h>
#endif
/*
* Board-specific Platform code can reimplement show_boot_progress () if needed
*/
void show_boot_progress(int val);
#include <bootstage.h>
/* Multicore arch functions */
#ifdef CONFIG_MP