summaryrefslogtreecommitdiff
path: root/lib_microblaze/board.c
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2009-01-05 13:28:40 +0100
committerMichal Simek <monstr@monstr.eu>2009-01-23 10:39:59 +0100
commitb4f8dda35bfad447b4106828232705b2e878d168 (patch)
tree65a5c1ca140e6a72466676040d792af2706f0dc5 /lib_microblaze/board.c
parent330e55459bc9983341da6c1d5c7fe00a664436fe (diff)
downloadu-boot-imx-b4f8dda35bfad447b4106828232705b2e878d168.zip
u-boot-imx-b4f8dda35bfad447b4106828232705b2e878d168.tar.gz
u-boot-imx-b4f8dda35bfad447b4106828232705b2e878d168.tar.bz2
microblaze: Add bootup messages to board.c
Diffstat (limited to 'lib_microblaze/board.c')
-rw-r--r--lib_microblaze/board.c33
1 files changed, 31 insertions, 2 deletions
diff --git a/lib_microblaze/board.c b/lib_microblaze/board.c
index 4f48341..732f81e 100644
--- a/lib_microblaze/board.c
+++ b/lib_microblaze/board.c
@@ -112,6 +112,10 @@ void board_init (void)
#if defined(CONFIG_CMD_FLASH)
ulong flash_size = 0;
#endif
+#if defined(CONFIG_CMD_NET)
+ char *s, *e;
+ int i;
+#endif
asm ("nop"); /* FIXME gd is not initialize - wait */
memset ((void *)gd, 0, CONFIG_SYS_GBL_DATA_SIZE);
gd->bd = (bd_t *) (gd + 1); /* At end of global data */
@@ -132,11 +136,37 @@ void board_init (void)
}
}
+ puts ("SDRAM :\n");
+#if defined(CONFIG_CMD_CACHE)
+ puts ("\tEnabling caches :\n");
+ printf ("\t\tIcache:%s\n", icache_status() ? "OK" : "FAIL");
+ printf ("\t\tDcache:%s\n", dcache_status() ? "OK" : "FAIL");
+#endif
+ printf ("\tU-Boot Start:0x%08x\n", TEXT_BASE);
+
#if defined(CONFIG_CMD_FLASH)
+ puts ("FLASH: ");
bd->bi_flashstart = CONFIG_SYS_FLASH_BASE;
if (0 < (flash_size = flash_init ())) {
bd->bi_flashsize = flash_size;
bd->bi_flashoffset = CONFIG_SYS_FLASH_BASE + flash_size;
+# ifdef CONFIG_SYS_FLASH_CHECKSUM
+ print_size (flash_size, "");
+ /*
+ * Compute and print flash CRC if flashchecksum is set to 'y'
+ *
+ * NOTE: Maybe we should add some WATCHDOG_RESET()? XXX
+ */
+ s = getenv ("flashchecksum");
+ if (s && (*s == 'y')) {
+ printf (" CRC: %08X",
+ crc32 (0, (const unsigned char *) CONFIG_SYS_FLASH_BASE, flash_size)
+ );
+ }
+ putc ('\n');
+# else /* !CONFIG_SYS_FLASH_CHECKSUM */
+ print_size (flash_size, "\n");
+# endif /* CONFIG_SYS_FLASH_CHECKSUM */
} else {
puts ("Flash init FAILED");
bd->bi_flashstart = 0;
@@ -146,10 +176,9 @@ void board_init (void)
#endif
#if defined(CONFIG_CMD_NET)
- char *s, *e;
- int i;
/* board MAC address */
s = getenv ("ethaddr");
+ printf ("MAC:%s\n",s);
for (i = 0; i < 6; ++i) {
bd->bi_enetaddr[i] = s ? simple_strtoul (s, &e, 16) : 0;
if (s)