summaryrefslogtreecommitdiffstats
path: root/board/hermes
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2011-12-10 11:07:58 +0000
committerWolfgang Denk <wd@denx.de>2012-03-18 21:16:22 +0100
commit8ade95063815d8ffca7cededa6c40cddec857d38 (patch)
tree824dbabdbbb3687580df631f026af187c9c1e362 /board/hermes
parent5e41088364582b6435f6d7a6e6d7a36f3fa94701 (diff)
downloadblackbird-obmc-uboot-8ade95063815d8ffca7cededa6c40cddec857d38.tar.gz
blackbird-obmc-uboot-8ade95063815d8ffca7cededa6c40cddec857d38.zip
bootstage: Convert progress numbers 20-41 to enums
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board/hermes')
-rw-r--r--board/hermes/hermes.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/board/hermes/hermes.c b/board/hermes/hermes.c
index 1b40ae8708..38bab03e38 100644
--- a/board/hermes/hermes.c
+++ b/board/hermes/hermes.c
@@ -595,7 +595,9 @@ void show_boot_progress (int status)
{
volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
- if (status < -32) status = -1; /* let things compatible */
+ /* let things compatible */
+ if (status < -BOOTSTAGE_ID_POST_FAIL_R)
+ status = -1;
status ^= 0x0F;
status = (status & 0x0F) << 14;
immr->im_cpm.cp_pbdat = (immr->im_cpm.cp_pbdat & ~PB_LED_ALL) | status;
OpenPOWER on IntegriCloud