From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/2] LPC2468 support
Date: Wed, 25 Mar 2009 22:51:17 +0100 [thread overview]
Message-ID: <20090325215117.GD18991@game.jcrosoft.org> (raw)
In-Reply-To: <49CA0222.9080203@duran-audio.com>
On 11:06 Wed 25 Mar , Remco Poelstra wrote:
> Wolfgang Denk schreef:
> > Dear Remco Poelstra,
> >
> >>> Is there no way we can do without such a #ifdef here?
> >> The problem is that start.S needs hardware.h, but the code in immap.h
> >> should not be included in start.S, so I can not merge hardware.h and immap.h
> >
> > Why not? I'm not aware of such a restriction?
>
> I'm not an expert in assembly, but at first I had immap.h included in
> start.S and it complained about invalid instructions, so if I combine
> hardware.h and immap.h, then there must be some way of making sure that
> the assembler ignores the C code in immap.h. Do you know of any such thing?
>
immap.h?
> > I would like to avoid the ever growing list of
> >
> > #if defined(this) || defined(that) || defined(...) || ...
> >
> > Maybe we can have a common #define that covers the common case?
>
> I could add something like
> #if defined(CONFIG_LPC2922) || defined(CONFIG_LPC2468)
> #define (CONFIG_LPC2000)
> #endif
>
> in a general place and then use CONFIG_LPC2000 at the common places.
>
> The problem I then have is: What would be the best place to put such
> define? Preferably it is automatically included also for the LPC2292
> code. If that's not possible, it can be defined in the board config, but
> I think that leads to confusion.
> What's your opinion?
Maybe in include/asm-arm/config.h
>
> >>> Ummm... What exactly is this file needed for?
> >> I don't need it, but start.S wants to include it. See my comment about
> >> the #ifdef's. Other architectures left it empty too, so it seemed the
> >> best option to me.
> >
> > Hm... that doesn't really make sense to me. Also, the error checking
> > in this file makes little sense to me.
>
> I can remove the file, but than I need to put an #ifdef construct in
> start.S to only exclude it in the lpc2468 case. The file is used by the
> other ARM ports. I can also simply empty it, but in this way it is more
> similar to the other ports. What would you like?
no please do not I'll prefer to separate arch file
Best Regards;
J.
next prev parent reply other threads:[~2009-03-25 21:51 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-18 13:13 [U-Boot] [PATCH 1/1] LPC2468 support Remco Poelstra
2009-03-18 13:58 ` Wolfgang Denk
2009-03-18 14:54 ` [U-Boot] [PATCH 1/2] " Remco Poelstra
2009-03-18 16:46 ` Wolfgang Denk
2009-03-19 15:06 ` Remco Poelstra
2009-03-19 21:22 ` Wolfgang Denk
2009-03-24 11:05 ` Remco Poelstra
2009-03-24 22:33 ` Wolfgang Denk
2009-03-25 8:29 ` Remco Poelstra
2009-03-25 9:47 ` Wolfgang Denk
2009-03-25 10:06 ` Remco Poelstra
2009-03-25 21:51 ` Jean-Christophe PLAGNIOL-VILLARD [this message]
2009-03-26 9:03 ` Remco Poelstra
2009-04-24 11:57 ` Remco Poelstra
2009-04-24 12:55 ` Wolfgang Denk
2009-04-28 9:14 ` Remco Poelstra
2009-04-28 16:43 ` Ben Warren
2009-04-24 21:58 ` Jean-Christophe PLAGNIOL-VILLARD
2009-04-24 22:14 ` Wolfgang Denk
2009-04-25 12:47 ` Jean-Christophe PLAGNIOL-VILLARD
2009-04-27 7:27 ` Stefan Roese
2009-04-27 23:20 ` Wolfgang Denk
2009-04-28 6:27 ` Stefan Roese
2009-04-28 6:46 ` Wolfgang Denk
2009-04-28 7:08 ` Stefan Roese
2009-03-25 21:43 ` Jean-Christophe PLAGNIOL-VILLARD
2009-03-26 9:10 ` Remco Poelstra
2009-03-26 9:27 ` Remco Poelstra
2009-03-18 14:56 ` [U-Boot] [PATCH 2/2] LPC2468 example board Remco Poelstra
2009-03-25 22:01 ` Jean-Christophe PLAGNIOL-VILLARD
2009-03-26 9:11 ` Remco Poelstra
2009-04-28 13:54 ` Remco Poelstra
2009-07-17 22:18 ` Wolfgang Denk
2009-07-18 16:16 ` Jean-Christophe PLAGNIOL-VILLARD
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=20090325215117.GD18991@game.jcrosoft.org \
--to=plagnioj@jcrosoft.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.