From: Steven Scholz <steven.scholz@imc-berlin.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] Generic Support for Motorola i.MX architecture
Date: Tue, 03 Aug 2004 13:26:39 +0200 [thread overview]
Message-ID: <410F766F.2020106@imc-berlin.de> (raw)
In-Reply-To: <20040801223546.67B2CC109F@atlas.denx.de>
Wolfgang Denk wrote:
> Dear Sasha,
>
> in message <20040628120334.GA27672@herry.saufen> you wrote:
>
>>I removed the trailing white spaces, dos line endings, etc from the
>>patch. Ming-Len Wu sent me a patch for mx1ads boards, which I included
>>into the patch. I can't test mx1ads support, but he says it works.
>>
>>You can download the patch here:
>>
>>http://www.pengutronix.de/software/u-boot/u-boot-imx1-20040628-1.diff
>
>
> Added, thanks.
Now that this patch finally got into CVS I raise the following question again:
Does it make sense to put processor specific peripheral code into
cpu/arm920t directory (like s3c24x0_serial.c or imx_interrupts.c or usb code)!?
Although the AT91RM9200 is based on a ARM9 it has it's own directory.
I understand that copying the same code again and again won't make sense.
A while ago I suggested to create cpu/imx, cpu/s3c24x0 etc. and put all the
cpu specific stuff in there.
To avoid copying the arm9 generic code one could do:
1.) cpu/at91rm9200/Makefile:
OBJS = ../arm920t/interrupts.o ../arm920t/cpu.o \
serial.o at91rm9200_ether.o at45.o
start.S has to be a link "start.S -> ../arm920t/start.S" since
START= ../arm920t/start.o
would not work due to dependencies in the main makefile.
2.) Or creating (by Makefile) links to the generic sources:
LINKS = start.S interrupts.c cpu.c
$(LINKS)
ln -s ../arm920t/$@ $@ (oder s.?.)
Comments?
--
Steven Scholz
imc Measurement & Control
next prev parent reply other threads:[~2004-08-03 11:26 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-27 19:27 [U-Boot-Users] [PATCH] Generic Support for Motorola i.MX architecture Robert Schwebel
2004-06-27 19:57 ` Wolfgang Denk
2004-06-28 12:03 ` Sascha Hauer
2004-08-01 22:35 ` Wolfgang Denk
2004-08-03 11:26 ` Steven Scholz [this message]
2004-08-03 13:27 ` Wolfgang Denk
2004-08-03 13:37 ` Steven Scholz
2004-08-03 14:21 ` Wolfgang Denk
2004-08-03 14:30 ` Steven Scholz
2004-08-03 14:57 ` Steven Scholz
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=410F766F.2020106@imc-berlin.de \
--to=steven.scholz@imc-berlin.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 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.