Patchwork [U-Boot] Add misc_init_r support to AVR32

login
register
mail settings
Submitter Semih Hazar
Date Dec. 17, 2009, 12:56 p.m.
Message ID <4B2A2A95.6070906@indefia.com>
Download mbox | patch
Permalink /patch/71694/
State Accepted
Delegated to: Reinhard Meyer
Headers show

Comments

Semih Hazar - Dec. 17, 2009, 12:56 p.m.
misc_init_r is available in most other platforms and can be used
in board initialization code for late stage stuff.

Signed-off-by: Semih Hazar <semih.hazar@indefia.com>
---
 lib_avr32/board.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

Patch

diff --git a/lib_avr32/board.c b/lib_avr32/board.c
index 57115df..7459e21 100644
--- a/lib_avr32/board.c
+++ b/lib_avr32/board.c
@@ -354,6 +354,11 @@  void board_init_r(gd_t *new_gd, ulong dest_addr)
 	jumptable_init();
 	console_init_r();
 
+#if defined(CONFIG_MISC_INIT_R)
+	/* miscellaneous platform dependent initialisations */
+	misc_init_r();
+#endif
+
 	s = getenv("loadaddr");
 	if (s)
 		load_addr = simple_strtoul(s, NULL, 16);