summaryrefslogtreecommitdiff
path: root/lib_blackfin/board.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-10-06 04:01:26 -0400
committerMike Frysinger <vapier@gentoo.org>2009-03-23 15:14:53 -0400
commit45c48953e8a4038bd49c46813fcff5a207867ae4 (patch)
treeb6ea2e75aae3a5ba97a9edacfe0bd7204c0dee97 /lib_blackfin/board.c
parent1c7a79a04eb916f685f7275520b5eea6968a1559 (diff)
downloadu-boot-imx-45c48953e8a4038bd49c46813fcff5a207867ae4.zip
u-boot-imx-45c48953e8a4038bd49c46813fcff5a207867ae4.tar.gz
u-boot-imx-45c48953e8a4038bd49c46813fcff5a207867ae4.tar.bz2
Blackfin: print out Flash: before checking it
If there is some problem in the flash init/checking code, it's nicer to see the message "Flash:" before crashing. This way the source of the problem is a bit more straightforward. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'lib_blackfin/board.c')
-rw-r--r--lib_blackfin/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib_blackfin/board.c b/lib_blackfin/board.c
index cc89590..49465d2 100644
--- a/lib_blackfin/board.c
+++ b/lib_blackfin/board.c
@@ -327,8 +327,8 @@ void board_init_r(gd_t * id, ulong dest_addr)
#if !defined(CONFIG_SYS_NO_FLASH)
/* Initialize the flash and protect u-boot by default */
extern flash_info_t flash_info[];
- ulong size = flash_init();
puts("Flash: ");
+ ulong size = flash_init();
print_size(size, "\n");
flash_protect(FLAG_PROTECT_SET, CONFIG_SYS_FLASH_BASE,
CONFIG_SYS_FLASH_BASE + CONFIG_SYS_MONITOR_LEN - 1,