public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Shimoda, Yoshihiro <yoshihiro.shimoda.uh@renesas.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] net: sh_eth: fix build error when CONFIG_CPU_SH7757 is set
Date: Thu, 21 Jun 2012 15:32:57 +0900	[thread overview]
Message-ID: <4FE2C019.7050804@renesas.com> (raw)

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

             reply	other threads:[~2012-06-21  6:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-21  6:32 Shimoda, Yoshihiro [this message]
2012-06-21  6:51 ` [U-Boot] net: sh_eth: fix build error when CONFIG_CPU_SH7757 is set Nobuhiro Iwamatsu
2012-06-21  6:57   ` Shimoda, Yoshihiro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FE2C019.7050804@renesas.com \
    --to=yoshihiro.shimoda.uh@renesas.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox