summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrafulla Wadaskar <prafulla@marvell.com>2009-05-31 14:53:20 +0200
committerWolfgang Denk <wd@denx.de>2009-06-12 20:45:46 +0200
commita24d96e40e1ca66dde6e6c158e7ecffafc5a2199 (patch)
tree465e78630c973bb8b9d386b8fe433a8d81dfe9cd
parentb2403589b4d9996394bafc73eca3623f43ac2c31 (diff)
arch_misc_init support for ARM architectures
This patch is required for Kirkwood support may be used by other ARM architectures Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
-rw-r--r--include/asm-arm/u-boot-arm.h1
-rw-r--r--lib_arm/board.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-arm/u-boot-arm.h b/include/asm-arm/u-boot-arm.h
index 76f1ffa5a2..6d2f8bccb5 100644
--- a/include/asm-arm/u-boot-arm.h
+++ b/include/asm-arm/u-boot-arm.h
@@ -42,6 +42,7 @@ int cleanup_before_linux(void);
/* cpu/.../arch/cpu.c */
int arch_cpu_init(void);
+int arch_misc_init(void);
/* board/.../... */
int board_init(void);
diff --git a/lib_arm/board.c b/lib_arm/board.c
index e081fbccb5..5c3bfecead 100644
--- a/lib_arm/board.c
+++ b/lib_arm/board.c
@@ -399,6 +399,10 @@ void start_armboot (void)
console_init_r (); /* fully init console as a device */
+#if defined(CONFIG_ARCH_MISC_INIT)
+ /* miscellaneous arch dependent initialisations */
+ arch_misc_init ();
+#endif
#if defined(CONFIG_MISC_INIT_R)
/* miscellaneous platform dependent initialisations */
misc_init_r ();