diff options
| author | Yuri Tikhonov <yur@pollux.denx.de> | 2008-02-04 14:11:03 +0100 | 
|---|---|---|
| committer | Wolfgang Denk <wd@denx.de> | 2008-03-18 22:24:48 +0100 | 
| commit | b428f6a8c65c5303e5f96db8d24f2f699d94a98c (patch) | |
| tree | 0bede5fb7b3eaec6b71b355748ad19b4ddab2c79 /include | |
| parent | 8f15d4addd49c956412e1e3bfc764a0c8b1f3184 (diff) | |
| download | olio-uboot-2014.01-b428f6a8c65c5303e5f96db8d24f2f699d94a98c.tar.xz olio-uboot-2014.01-b428f6a8c65c5303e5f96db8d24f2f699d94a98c.zip | |
The patch introduces the CRITICAL feature of POST tests. If the test marked as POST_CRITICAL fails then the alternative, post_critical, boot-command is used. If this command is not defined then U-Boot enters into interactive mode.
Signed-off-by: Dmitry Rakhchev <rda@emcraft.com>
Signed-off-by: Yuri Tikhonov <yur@emcraft.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-arm/global_data.h | 1 | ||||
| -rw-r--r-- | include/asm-avr32/global_data.h | 1 | ||||
| -rw-r--r-- | include/asm-blackfin/global_data.h | 1 | ||||
| -rw-r--r-- | include/asm-i386/global_data.h | 1 | ||||
| -rw-r--r-- | include/asm-m68k/global_data.h | 1 | ||||
| -rw-r--r-- | include/asm-microblaze/global_data.h | 1 | ||||
| -rw-r--r-- | include/asm-mips/global_data.h | 1 | ||||
| -rw-r--r-- | include/asm-nios/global_data.h | 1 | ||||
| -rw-r--r-- | include/asm-nios2/global_data.h | 1 | ||||
| -rw-r--r-- | include/asm-ppc/global_data.h | 1 | ||||
| -rw-r--r-- | include/asm-sh/global_data.h | 1 | ||||
| -rw-r--r-- | include/post.h | 4 | 
12 files changed, 15 insertions, 0 deletions
| diff --git a/include/asm-arm/global_data.h b/include/asm-arm/global_data.h index c2d52915a..0410b5ef7 100644 --- a/include/asm-arm/global_data.h +++ b/include/asm-arm/global_data.h @@ -60,6 +60,7 @@ typedef	struct	global_data {  #define	GD_FLG_RELOC	0x00001		/* Code was relocated to RAM		*/  #define	GD_FLG_DEVINIT	0x00002		/* Devices have been initialized	*/  #define	GD_FLG_SILENT	0x00004		/* Silent mode				*/ +#define	GD_FLG_POSTFAIL	0x00008		/* Critical POST test failed		*/  #define DECLARE_GLOBAL_DATA_PTR     register volatile gd_t *gd asm ("r8") diff --git a/include/asm-avr32/global_data.h b/include/asm-avr32/global_data.h index 681c514cc..daf64bc00 100644 --- a/include/asm-avr32/global_data.h +++ b/include/asm-avr32/global_data.h @@ -51,6 +51,7 @@ typedef	struct	global_data {  #define GD_FLG_RELOC	0x00001		/* Code was relocated to RAM	 */  #define GD_FLG_DEVINIT	0x00002		/* Devices have been initialized */  #define GD_FLG_SILENT	0x00004		/* Silent mode			 */ +#define GD_FLG_POSTFAIL	0x00008		/* Critical POST test failed	 */  #define DECLARE_GLOBAL_DATA_PTR register gd_t *gd asm("r5") diff --git a/include/asm-blackfin/global_data.h b/include/asm-blackfin/global_data.h index cb0dfc2d9..6debfc745 100644 --- a/include/asm-blackfin/global_data.h +++ b/include/asm-blackfin/global_data.h @@ -61,6 +61,7 @@ typedef struct global_data {  #define	GD_FLG_RELOC	0x00001	/* Code was relocated to RAM     */  #define	GD_FLG_DEVINIT	0x00002	/* Devices have been initialized */  #define	GD_FLG_SILENT	0x00004	/* Silent mode                   */ +#define	GD_FLG_POSTFAIL	0x00008	/* Critical POST test failed     */  #define DECLARE_GLOBAL_DATA_PTR     register gd_t * volatile gd asm ("P5") diff --git a/include/asm-i386/global_data.h b/include/asm-i386/global_data.h index 1d309d5b5..68a9ad61e 100644 --- a/include/asm-i386/global_data.h +++ b/include/asm-i386/global_data.h @@ -54,6 +54,7 @@ typedef	struct {  #define	GD_FLG_RELOC	0x00001		/* Code was relocated to RAM		*/  #define	GD_FLG_DEVINIT	0x00002		/* Devices have been initialized	*/  #define	GD_FLG_SILENT	0x00004		/* Silent mode				*/ +#define	GD_FLG_POSTFAIL	0x00008		/* Critical POST test failed		*/  extern gd_t *global_data; diff --git a/include/asm-m68k/global_data.h b/include/asm-m68k/global_data.h index 1e26eb037..958736ec7 100644 --- a/include/asm-m68k/global_data.h +++ b/include/asm-m68k/global_data.h @@ -68,6 +68,7 @@ typedef	struct	global_data {  #define	GD_FLG_RELOC	0x00001		/* Code was relocated to RAM		*/  #define	GD_FLG_DEVINIT	0x00002		/* Devices have been initialized	*/  #define	GD_FLG_SILENT	0x00004		/* Silent mode				*/ +#define	GD_FLG_POSTFAIL	0x00008		/* Critical POST test failed		*/  #if 0  extern gd_t *global_data; diff --git a/include/asm-microblaze/global_data.h b/include/asm-microblaze/global_data.h index a6e783424..91243b22c 100644 --- a/include/asm-microblaze/global_data.h +++ b/include/asm-microblaze/global_data.h @@ -52,6 +52,7 @@ typedef	struct	global_data {  #define	GD_FLG_RELOC	0x00001		/* Code was relocated to RAM		*/  #define	GD_FLG_DEVINIT	0x00002		/* Devices have been initialized	*/  #define	GD_FLG_SILENT	0x00004		/* Silent mode				*/ +#define	GD_FLG_POSTFAIL	0x00008		/* Critical POST test failed		*/  #define DECLARE_GLOBAL_DATA_PTR     register volatile gd_t *gd asm ("r31") diff --git a/include/asm-mips/global_data.h b/include/asm-mips/global_data.h index a024194ba..bd9e4dd86 100644 --- a/include/asm-mips/global_data.h +++ b/include/asm-mips/global_data.h @@ -54,6 +54,7 @@ typedef	struct	global_data {  #define	GD_FLG_RELOC	0x00001		/* Code was relocated to RAM     */  #define	GD_FLG_DEVINIT	0x00002		/* Devices have been initialized */  #define	GD_FLG_SILENT	0x00004		/* Silent mode			 */ +#define	GD_FLG_POSTFAIL	0x00008		/* Critical POST test failed	 */  #define DECLARE_GLOBAL_DATA_PTR     register volatile gd_t *gd asm ("k0") diff --git a/include/asm-nios/global_data.h b/include/asm-nios/global_data.h index fd1138920..ddd66cfd4 100644 --- a/include/asm-nios/global_data.h +++ b/include/asm-nios/global_data.h @@ -45,6 +45,7 @@ typedef	struct	global_data {  #define	GD_FLG_RELOC	0x00001		/* Code was relocated to RAM		*/  #define	GD_FLG_DEVINIT	0x00002		/* Devices have been initialized	*/  #define	GD_FLG_SILENT	0x00004		/* Silent mode				*/ +#define	GD_FLG_POSTFAIL	0x00008		/* Critical POST test failed		*/  #define DECLARE_GLOBAL_DATA_PTR     register gd_t *gd asm ("%g7") diff --git a/include/asm-nios2/global_data.h b/include/asm-nios2/global_data.h index a1ac28856..ae5f61700 100644 --- a/include/asm-nios2/global_data.h +++ b/include/asm-nios2/global_data.h @@ -44,6 +44,7 @@ typedef	struct	global_data {  #define	GD_FLG_RELOC	0x00001		/* Code was relocated to RAM		*/  #define	GD_FLG_DEVINIT	0x00002		/* Devices have been initialized	*/  #define	GD_FLG_SILENT	0x00004		/* Silent mode				*/ +#define	GD_FLG_POSTFAIL	0x00008		/* Critical POST test failed		*/  #define DECLARE_GLOBAL_DATA_PTR     register gd_t *gd asm ("r15") diff --git a/include/asm-ppc/global_data.h b/include/asm-ppc/global_data.h index 205f7ed74..e07092baa 100644 --- a/include/asm-ppc/global_data.h +++ b/include/asm-ppc/global_data.h @@ -164,6 +164,7 @@ typedef	struct	global_data {  #define	GD_FLG_RELOC	0x00001		/* Code was relocated to RAM		*/  #define	GD_FLG_DEVINIT	0x00002		/* Devices have been initialized	*/  #define	GD_FLG_SILENT	0x00004		/* Silent mode				*/ +#define	GD_FLG_POSTFAIL	0x00008		/* Critical POST test failed		*/  #if 1  #define DECLARE_GLOBAL_DATA_PTR     register volatile gd_t *gd asm ("r2") diff --git a/include/asm-sh/global_data.h b/include/asm-sh/global_data.h index 0a44a34ce..521a66ffc 100644 --- a/include/asm-sh/global_data.h +++ b/include/asm-sh/global_data.h @@ -44,6 +44,7 @@ typedef	struct global_data  #define	GD_FLG_RELOC	0x00001		/* Code was relocated to RAM		*/  #define	GD_FLG_DEVINIT	0x00002		/* Devices have been initialized	*/  #define	GD_FLG_SILENT	0x00004		/* Silent mode				*/ +#define	GD_FLG_POSTFAIL	0x00008		/* Critical POST test failed		*/  #define DECLARE_GLOBAL_DATA_PTR	register gd_t *gd asm ("r13") diff --git a/include/post.h b/include/post.h index 12c0e9200..ee07d2caa 100644 --- a/include/post.h +++ b/include/post.h @@ -42,12 +42,16 @@  #define POST_REBOOT		0x0800	/* test may cause rebooting */  #define POST_PREREL             0x1000  /* test runs before relocation */ +#define POST_CRITICAL		0x2000	/* Use failbootcmd if test failed */ +  #define POST_MEM		(POST_RAM | POST_ROM)  #define POST_ALWAYS		(POST_NORMAL	| \  				 POST_SLOWTEST	| \  				 POST_MANUAL	| \  				 POST_POWERON	) +#define POST_FAIL_SAVE		0x80 +  #ifndef	__ASSEMBLY__  struct post_test { |