* [U-Boot] net: sh_eth: fix build error when CONFIG_CPU_SH7757 is set
@ 2012-06-21 6:32 Shimoda, Yoshihiro
2012-06-21 6:51 ` Nobuhiro Iwamatsu
0 siblings, 1 reply; 3+ messages in thread
From: Shimoda, Yoshihiro @ 2012-06-21 6:32 UTC (permalink / raw)
To: u-boot
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@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
^ permalink raw reply related [flat|nested] 3+ messages in thread* [U-Boot] net: sh_eth: fix build error when CONFIG_CPU_SH7757 is set
2012-06-21 6:32 [U-Boot] net: sh_eth: fix build error when CONFIG_CPU_SH7757 is set Shimoda, Yoshihiro
@ 2012-06-21 6:51 ` Nobuhiro Iwamatsu
2012-06-21 6:57 ` Shimoda, Yoshihiro
0 siblings, 1 reply; 3+ messages in thread
From: Nobuhiro Iwamatsu @ 2012-06-21 6:51 UTC (permalink / raw)
To: u-boot
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@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@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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-06-21 6:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-21 6:32 [U-Boot] net: sh_eth: fix build error when CONFIG_CPU_SH7757 is set Shimoda, Yoshihiro
2012-06-21 6:51 ` Nobuhiro Iwamatsu
2012-06-21 6:57 ` Shimoda, Yoshihiro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox