]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/hermes/hermes.c
Change initdram() return type to phys_size_t
[karo-tx-uboot.git] / board / hermes / hermes.c
index a523db1a487d92a94d6298ed5ac8d63b3f25dbe8..f9b57204f0a5b4b748dcdf5d388fd50969bf575f 100644 (file)
@@ -134,7 +134,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
@@ -597,6 +597,7 @@ void show_boot_progress (int status)
 {
        volatile immap_t *immr = (immap_t *) CFG_IMMR;
 
+       if (status < -32) status = -1;  /* let things compatible */
        status ^= 0x0F;
        status = (status & 0x0F) << 14;
        immr->im_cpm.cp_pbdat = (immr->im_cpm.cp_pbdat & ~PB_LED_ALL) | status;