X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Fhermes%2Fhermes.c;h=a3bf4bbe4f50da060d0b2f38a77f0d6632543c6c;hb=45a4d4d35ab64991e47807563b629e7624e40fd8;hp=1b40ae8708520ec6b268465bbbd87ff381047b22;hpb=5dc887164e031dbd6544031eb4dcb8e5c4ddeb13;p=u-boot diff --git a/board/hermes/hermes.c b/board/hermes/hermes.c index 1b40ae8708..a3bf4bbe4f 100644 --- a/board/hermes/hermes.c +++ b/board/hermes/hermes.c @@ -27,7 +27,7 @@ #ifdef CONFIG_SHOW_BOOT_PROGRESS # include -# define SHOW_BOOT_PROGRESS(arg) show_boot_progress(arg) +# define SHOW_BOOT_PROGRESS(arg) bootstage_mark(arg) #else # define SHOW_BOOT_PROGRESS(arg) #endif @@ -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;