From a24d96e40e1ca66dde6e6c158e7ecffafc5a2199 Mon Sep 17 00:00:00 2001 From: Prafulla Wadaskar Date: Sun, 31 May 2009 14:53:20 +0200 Subject: [PATCH] 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 --- include/asm-arm/u-boot-arm.h | 1 + lib_arm/board.c | 4 ++++ 2 files changed, 5 insertions(+) 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 (); -- 2.39.5