summaryrefslogtreecommitdiff
path: root/lib_blackfin
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-07-09 01:15:05 -0400
committerMike Frysinger <vapier@gentoo.org>2009-07-18 21:15:50 -0400
commit909878fd3fda056d19b8b51a5cc51cb1c0b563d1 (patch)
tree8093a518e8637fe7fef3cde5e0b2850fb767bbe9 /lib_blackfin
parentd39041fcadb1231430201d298c31f6be03d654f7 (diff)
downloadu-boot-imx-909878fd3fda056d19b8b51a5cc51cb1c0b563d1.zip
u-boot-imx-909878fd3fda056d19b8b51a5cc51cb1c0b563d1.tar.gz
u-boot-imx-909878fd3fda056d19b8b51a5cc51cb1c0b563d1.tar.bz2
Blackfin: add os log functions
Part of the mini Blackfin ABI with operating systems is that they can use 0x4f0-0x4f8 to pass log buffers to/from bootloaders. So add support to U-Boot for reading the log buffer. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'lib_blackfin')
-rw-r--r--lib_blackfin/board.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib_blackfin/board.c b/lib_blackfin/board.c
index 28de372..b957a9d 100644
--- a/lib_blackfin/board.c
+++ b/lib_blackfin/board.c
@@ -384,6 +384,12 @@ void board_init_r(gd_t * id, ulong dest_addr)
post_run(NULL, POST_RAM | post_bootmode_get(0));
#endif
+ if (bfin_os_log_check()) {
+ puts("\nLog buffer from operating system:\n");
+ bfin_os_log_dump();
+ puts("\n");
+ }
+
/* main_loop() can return to retry autoboot, if so just run it again. */
for (;;)
main_loop();