board.c: print boot method (mmc, onenand, nand)
authorSteve Sakoman <steve@sakoman.com>
Thu, 31 Jul 2008 23:34:54 +0000 (16:34 -0700)
committerSteve Sakoman <steve@sakoman.com>
Thu, 31 Jul 2008 23:34:54 +0000 (16:34 -0700)
lib/board.c

index 48825ae..6c85937 100644 (file)
@@ -36,7 +36,7 @@
 #ifdef CFG_PRINTF
 int print_info(void)
 {
-        printf("\n\nTexas Instruments X-Loader 1.41\n");
+        printf("\n\nTexas Instruments X-Loader 1.41sms\n");
        return 0;
 }
 #endif
@@ -69,10 +69,16 @@ void start_armboot (void)
        buf =  (uchar*) CFG_LOADADDR;
 
        if ((get_mem_type() == MMC_ONENAND) || (get_mem_type() == MMC_NAND)){
+#ifdef CFG_PRINTF
+                       printf("Booting from mmc . . .\n");
+#endif
                buf += mmc_boot(buf);
        }
 
        if (get_mem_type() == GPMC_ONENAND){
+#ifdef CFG_PRINTF
+                       printf("Booting from onenand . . .\n");
+#endif
                for (i = ONENAND_START_BLOCK; i < ONENAND_END_BLOCK; i++){
                        if (!onenand_read_block(buf, i))
                                buf += ONENAND_BLOCK_SIZE;
@@ -80,6 +86,9 @@ void start_armboot (void)
        }
 
        if (get_mem_type() == GPMC_NAND){
+#ifdef CFG_PRINTF
+                       printf("Booting from nand . . .\n");
+#endif
                for (i = NAND_UBOOT_START; i < NAND_UBOOT_END; i+= NAND_BLOCK_SIZE){
                        if (!nand_read_block(buf, i))
                                buf += NAND_BLOCK_SIZE; /* advance buf ptr */