[U-Boot] [PATCH 24/27] tqm8xx: rename load_sernum_ethaddr() to tqc_load_sernum_ethaddr()

Wolfgang Denk wd at denx.de
Mon Feb 16 23:58:05 CET 2009


Dear Mike Frysinger,

In message <1234596190-524-25-git-send-email-vapier at gentoo.org> you wrote:
> Rename load_sernum_ethaddr() to tqc_load_sernum_ethaddr() and have board
> init code call it rather than the common ppc board code.
> 
> Signed-off-by: Mike Frysinger <vapier at gentoo.org>
> CC: Ben Warren <biggerbadderben at gmail.com>
> ---
>  board/tqc/tqm8xx/load_sernum_ethaddr.c |    6 +++++-
>  board/tqc/tqm8xx/tqm8xx.c              |    3 +++
>  2 files changed, 8 insertions(+), 1 deletions(-)
> 
> diff --git a/board/tqc/tqm8xx/load_sernum_ethaddr.c b/board/tqc/tqm8xx/load_sernum_ethaddr.c
> index d269902..ea534f7 100644
> --- a/board/tqc/tqm8xx/load_sernum_ethaddr.c
> +++ b/board/tqc/tqm8xx/load_sernum_ethaddr.c
> @@ -49,7 +49,7 @@
>   * 4) Number of additional MAC addresses
>   */
>  
> -void load_sernum_ethaddr (void)
> +void tqc_load_sernum_ethaddr (void)
>  {
>  	unsigned char *hwi;
>  	unsigned char  serial [CONFIG_SYS_HWINFO_SIZE];
> @@ -103,3 +103,7 @@ void load_sernum_ethaddr (void)
>  		setenv ((char *)"ethaddr", (char *)ethaddr);
>  	}
>  }
> +
> +void load_sernum_ethaddr (void)
> +{
> +}
> diff --git a/board/tqc/tqm8xx/tqm8xx.c b/board/tqc/tqm8xx/tqm8xx.c
> index e065d69..ca91554 100644
> --- a/board/tqc/tqm8xx/tqm8xx.c
> +++ b/board/tqc/tqm8xx/tqm8xx.c
> @@ -449,11 +449,14 @@ int board_early_init_r (void)
>  
>  
>  #ifdef CONFIG_MISC_INIT_R
> +extern void tqc_load_sernum_ethaddr(void);
>  int misc_init_r (void)
>  {
>  	volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
>  	volatile memctl8xx_t *memctl = &immap->im_memctl;
>  
> +	tqc_load_sernum_ethaddr();
> +
>  #ifdef	CONFIG_SYS_OR_TIMING_FLASH_AT_50MHZ
>  	int scy, trlx, flash_or_timing, clk_diff;

See previous review comments - NAK.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
FORTRAN? The syntactically incorrect statement "DO 10 I = 1.10"  will
parse  and  generate  code  creating  a  variable, DO10I, as follows:
"DO10I = 1.10" If that doesn't terrify you, it should.


More information about the U-Boot mailing list