diff options
author | wdenk <wdenk> | 2004-04-18 21:45:42 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2004-04-18 21:45:42 +0000 |
commit | 7abf0c5886c395a3cc7e11f191d67be9a964a1bf (patch) | |
tree | 9bb260e2cf75f6255d9b1162a68740d4e6409b26 /lib_microblaze | |
parent | d4326aca187b965b6c96fee85cb6b98b6e5fe79c (diff) | |
download | u-boot-midas-7abf0c5886c395a3cc7e11f191d67be9a964a1bf.tar.gz u-boot-midas-7abf0c5886c395a3cc7e11f191d67be9a964a1bf.tar.bz2 u-boot-midas-7abf0c5886c395a3cc7e11f191d67be9a964a1bf.zip |
* Patch by Dan Malek, 07 Apr 2004:
- Add support for RPC/STx GP3, Motorola 8560 board
- Update 85xx TSEC driver so it searches MII for first available PHY
and uses that one.
- Add functions to support console MII commands.
* Patch by Tolunay Orkun, 07 Apr 2004:
Move initialization of bi_iic_fast[]
from board_init_f() to board_init_r()
* Patch by Yasushi Shoji, 07 Apr 2004:
Cleanup microblaze port
* Patch by Sangmoon Kim, 07 Apr 2004:
Add auto SDRAM module detection for Debris board
Diffstat (limited to 'lib_microblaze')
-rw-r--r-- | lib_microblaze/board.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib_microblaze/board.c b/lib_microblaze/board.c index 3e3fb3762c..b720e82039 100644 --- a/lib_microblaze/board.c +++ b/lib_microblaze/board.c @@ -26,6 +26,7 @@ #include <command.h> #include <malloc.h> #include <version.h> +#include <watchdog.h> const char version_string[] = U_BOOT_VERSION" (" __DATE__ " - " __TIME__ ")"; @@ -69,6 +70,24 @@ init_fnc_t *init_sequence[] = { NULL, }; +void board_init(void) +{ + init_fnc_t **init_fnc_ptr; + + for (init_fnc_ptr = init_sequence; *init_fnc_ptr; ++init_fnc_ptr) { + WATCHDOG_RESET (); + if ((*init_fnc_ptr) () != 0) { + hang (); + } + } + + /* main_loop */ + for (;;) { + WATCHDOG_RESET (); + main_loop (); + } +} + void hang (void) { puts ("### ERROR ### Please RESET the board ###\n"); |