diff options
author | Francois Retief <fgretief@spaceteq.co.za> | 2015-11-23 13:05:44 +0200 |
---|---|---|
committer | Francois Retief <fgretief@spaceteq.co.za> | 2015-12-03 13:15:49 +0200 |
commit | 1e85ccec536f86a96e5e317b5a59a6f5180451f3 (patch) | |
tree | 85818582f0a825daf140ceb8afb8412d7fad8cf8 /common/board_r.c | |
parent | c97088c3cfa84e7e53fddd26896f145cc8c431a2 (diff) |
sparc: Update PROM initialization code for generic board
Fixed the prom_relocate() function in start.S file by reserving memory in
the board_init_f sequence and saving the offset to the __prom_start_reloc
variable. This value is used as the destination when relocating the PROM.
Add the prom_init() function to the end of the board_init_r sequence.
Signed-off-by: Francois Retief <fgretief@spaceteq.co.za>
Diffstat (limited to 'common/board_r.c')
-rw-r--r-- | common/board_r.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/common/board_r.c b/common/board_r.c index f1dfa68fd55..3bf49fdfb37 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -66,6 +66,10 @@ DECLARE_GLOBAL_DATA_PTR; +#if defined(CONFIG_SPARC) +extern int prom_init(void); +#endif + ulong monitor_flash_len; __weak int board_flash_wp_on(void) @@ -934,6 +938,9 @@ init_fnc_t init_sequence_r[] = { #ifdef CONFIG_PS2KBD initr_kbd, #endif +#if defined(CONFIG_SPARC) + prom_init, +#endif run_main_loop, }; |