[U-Boot] net: sh_eth: fix build error when CONFIG_CPU_SH7757 is set
Shimoda, Yoshihiro
yoshihiro.shimoda.uh at renesas.com
Thu Jun 21 08:32:57 CEST 2012
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
More information about the U-Boot
mailing list