[U-Boot] net: sh_eth: fix build error when CONFIG_CPU_SH7757 is set

Nobuhiro Iwamatsu nobuhiro.iwamatsu.yj at renesas.com
Thu Jun 21 08:51:16 CEST 2012


Hi,

This patch already send to this ML
  http://lists.denx.de/pipermail/u-boot/2012-June/125789.html

Best regards,
  Nobuhiro

2012/6/21 Shimoda, Yoshihiro <yoshihiro.shimoda.uh at renesas.com>:
> This patch fixes the following build error when CONFIG_CPU_SH7757 is set:
>
> In file included from sh_eth.c:32:
> sh_eth.h:466: error: expected identifier before ‘}’ token
> sh_eth.c: In function ‘sh_eth_config’:
> sh_eth.c:380: error: ‘ECSIPR_BRCRXIP’ undeclared (first use in this function)
> sh_eth.c:380: error: (Each undeclared identifier is reported only once
> sh_eth.c:380: error: for each function it appears in.)
> sh_eth.c:380: error: ‘ECSIPR_PSRTOIP’ undeclared (first use in this function)
> sh_eth.c:380: error: ‘ECSIPR_LCHNGIP’ undeclared (first use in this function)
> sh_eth.c:380: error: ‘ECSIPR_MPDIP’ undeclared (first use in this function)
> sh_eth.c:380: error: ‘ECSIPR_ICDIP’ undeclared (first use in this function)
> make[1]: *** [sh_eth.o] Error 1
>
> Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh at renesas.com>
> ---
>  drivers/net/sh_eth.h |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/net/sh_eth.h b/drivers/net/sh_eth.h
> index a1ba68b..f2bd734 100644
> --- a/drivers/net/sh_eth.h
> +++ b/drivers/net/sh_eth.h
> @@ -452,9 +452,11 @@ enum ECSR_STATUS_BIT {
>
>  /* ECSIPR */
>  enum ECSIPR_STATUS_MASK_BIT {
> -#if defined(CONFIG_CPU_SH7724)
> +#if defined(CONFIG_CPU_SH7724) || defined(CONFIG_CPU_SH7757)
> +       ECSIPR_BRCRXIP = 0x20,
>        ECSIPR_PSRTOIP = 0x10,
>        ECSIPR_LCHNGIP = 0x04,
> +       ECSIPR_MPDIP = 0x02,
>        ECSIPR_ICDIP = 0x01,
>  #elif defined(CONFIG_CPU_SH7763) || defined(CONFIG_CPU_SH7734)
>        ECSIPR_PSRTOIP = 0x10,
> --
> 1.7.1
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot



-- 
Nobuhiro Iwamatsu


More information about the U-Boot mailing list