summaryrefslogtreecommitdiff
path: root/include/post.h
diff options
context:
space:
mode:
authorYuri Tikhonov <yur@pollux.denx.de>2008-02-04 14:11:03 +0100
committerWolfgang Denk <wd@denx.de>2008-03-18 22:24:48 +0100
commitb428f6a8c65c5303e5f96db8d24f2f699d94a98c (patch)
tree0bede5fb7b3eaec6b71b355748ad19b4ddab2c79 /include/post.h
parent8f15d4addd49c956412e1e3bfc764a0c8b1f3184 (diff)
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/post.h')
-rw-r--r--include/post.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/post.h b/include/post.h
index 12c0e920010..ee07d2caa2e 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 {