diff options
author | Stefan Roese | 2008-11-12 13:18:02 +0100 |
---|---|---|
committer | Shinya Kuribayashi | 2008-12-10 23:29:06 +0900 |
commit | db08ecaa6eb8176904b3bae103a85ee8f735dc40 (patch) | |
tree | 7501b335c5c02e850a297d98600e8ef5bbddfda8 /lib_mips | |
parent | 9d23fc584c4b7b8bb9ecbee48920b1b04b08fa1b (diff) |
MIPS: Add board_early_init_f() to init_sequence
This patch adds the board_early_init_f() call to the MIPS init
sequence. A weak dummy implementation is also added which can be
overridden by a board specific version.
This will be used by the upcoming VCTH board support.
Signed-off-by: Stefan Roese <sr@denx.de>
Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
Diffstat (limited to 'lib_mips')
-rw-r--r-- | lib_mips/board.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib_mips/board.c b/lib_mips/board.c index 5133b8a5dc4..dfe683161fd 100644 --- a/lib_mips/board.c +++ b/lib_mips/board.c @@ -72,6 +72,15 @@ static ulong mem_malloc_brk; */ unsigned long mips_io_port_base = -1; +int __board_early_init_f(void) +{ + /* + * Nothing to do in this dummy implementation + */ + return 0; +} +int board_early_init_f(void) __attribute__((weak, alias("__board_early_init_f"))); + /* * The Malloc area is immediately below the monitor copy in DRAM */ @@ -169,6 +178,7 @@ static int init_baudrate (void) typedef int (init_fnc_t) (void); init_fnc_t *init_sequence[] = { + board_early_init_f, timer_init, env_init, /* initialize environment */ #ifdef CONFIG_INCA_IP |