From: Prafulla Wadaskar Date: Sun, 31 May 2009 12:53:20 +0000 (+0200) Subject: arch_misc_init support for ARM architectures X-Git-Tag: v2009.08-rc1~153^2~73 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a24d96e40e1ca66dde6e6c158e7ecffafc5a2199;p=u-boot 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 --- 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 ();