From 4e1a4e8d4d670ab7a4c281317a8b440f4ee4581a Mon Sep 17 00:00:00 2001 From: Steve Sakoman Date: Thu, 31 Jul 2008 16:34:54 -0700 Subject: [PATCH] board.c: print boot method (mmc, onenand, nand) --- lib/board.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/board.c b/lib/board.c index 48825ae..6c85937 100644 --- a/lib/board.c +++ b/lib/board.c @@ -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 */ -- 2.47.2