From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] EBC_NUM_BANKS for Virtex5 PPC440?
Date: Tue, 2 Mar 2010 14:21:04 +0100 [thread overview]
Message-ID: <201003021421.04328.sr@denx.de> (raw)
In-Reply-To: <17f672c61002251053h7ca01628ga533bd5b832e430a@mail.gmail.com>
Hi Lucas,
On Thursday 25 February 2010 19:53:45 Lucas wrote:
> I'm working on a custom board that is similar to the ml507 (with a virtex 5
> powerpc 440), and I ran across this error compiling u-boot:
>
> fdt.c: In function '__ft_board_setup':
> fdt.c:43: error: 'EBC_NUM_BANKS' undeclared (first use in this function)
> fdt.c:43: error: (Each undeclared identifier is reported only once
> fdt.c:43: error: for each function it appears in.)
> fdt.c:43: warning: unused variable 'ranges'
>
> I looked in ppc4xx-ebc.h and EBC_NUM_BANKS is only defined for 405xx and
> 440xx variants. I tried setting it to zero and it works so far (see the
> following diff), but is there a more proper way of disabling EBC?
Yes. I would prefer to disable using this EBC fdt blob configuration on those
boards without EBC. Why don't you just don't call the weak default
__ft_board_setup() function in cpu/ppc4xx/fdt.c by defining a board specific
version in your board-platform code (board/board_name/board_name.c)? This way
you can override the weak default function and it's not called at all.
Cheers,
Stefan
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de
prev parent reply other threads:[~2010-03-02 13:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-25 18:53 [U-Boot] EBC_NUM_BANKS for Virtex5 PPC440? Lucas
2010-03-02 13:21 ` Stefan Roese [this message]
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=201003021421.04328.sr@denx.de \
--to=sr@denx.de \
--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