diff options
author | wdenk <wdenk> | 2004-07-10 23:48:41 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2004-07-10 23:48:41 +0000 |
commit | 857cad37a41c431582a74be56f858ee0476cd0d9 (patch) | |
tree | ad20b07944687e5996418e91111a6cef5b2e319e /lib_microblaze/board.c | |
parent | fabd46acff08edd9f945340338caa07bb0534e64 (diff) | |
download | u-boot-imx-857cad37a41c431582a74be56f858ee0476cd0d9.zip u-boot-imx-857cad37a41c431582a74be56f858ee0476cd0d9.tar.gz u-boot-imx-857cad37a41c431582a74be56f858ee0476cd0d9.tar.bz2 |
Patches by Yasushi Shoji, 29 Jun 2004:
- add empty include/asm-microblaze/processor.h
- add to CREDITS and MAINTAINERS
- add gd initialization
- add MicroBlaze and SUZAKU board to MAKEALL script
- add reset support for SUZAKU
- add flush_cache() for MicroBlaze
- add CFG_FLASH_SIZE to include/configs/suzaku.h since we have fixed
size flash memory on SUZAKU
Diffstat (limited to 'lib_microblaze/board.c')
-rw-r--r-- | lib_microblaze/board.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib_microblaze/board.c b/lib_microblaze/board.c index b720e82..bc987a3 100644 --- a/lib_microblaze/board.c +++ b/lib_microblaze/board.c @@ -72,8 +72,21 @@ init_fnc_t *init_sequence[] = { void board_init(void) { + DECLARE_GLOBAL_DATA_PTR; + + bd_t *bd; init_fnc_t **init_fnc_ptr; + /* Pointer is writable since we allocated a register for it. */ + gd = (gd_t *)CFG_GBL_DATA_OFFSET; + memset((void *)gd, 0, CFG_GBL_DATA_SIZE); + + gd->bd = (bd_t *)(gd+1); /* At end of global data */ + gd->baudrate = CONFIG_BAUDRATE; + + bd = gd->bd; + bd->bi_baudrate = CONFIG_BAUDRATE; + for (init_fnc_ptr = init_sequence; *init_fnc_ptr; ++init_fnc_ptr) { WATCHDOG_RESET (); if ((*init_fnc_ptr) () != 0) { |