[U-Boot] [PATCH] MIPS: Add board_early_init_f() to init_sequence

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Mon Nov 17 15:14:19 CET 2008


On 13:18 Wed 12 Nov     , Stefan Roese wrote:
> 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 at denx.de>
> ---
>  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 77e1cc8..01dda69 100644
> --- a/lib_mips/board.c
> +++ b/lib_mips/board.c
> @@ -70,6 +70,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;
> +}
why not remove this and create a generic dummy function

to reduce to code size impact

Best Regards,
J.


More information about the U-Boot mailing list