From: Marc Singer <elf@buici.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Manufacturer specific code in a bothersome place
Date: Mon, 7 Jul 2003 08:29:07 -0700 [thread overview]
Message-ID: <20030707152907.GA2816@buici.com> (raw)
In-Reply-To: <20030707142046.3C189C6D82@atlas.denx.de>
On Mon, Jul 07, 2003 at 04:20:41PM +0200, Wolfgang Denk wrote:
> In message <20030707002607.GA4106@buici.com> you wrote:
> > I'm porting u-boot to the Sharp KEV7A400 development board. The CPU
> > has an ARM9 core with some Sharp and some ARM cells. The existing
> > ARM920T cpu code has quite a bit of Samsung specific code in it. So,
> > the question is this: how do we best handle development like this?
>
> If this really becomes a problem I think we might create processor
> specific sub-directories below the CPU/* directory, i.e. something
> like
>
> cpu/arm920t/s3c24x0/
> cpu/arm920t/other_1/
> cpu/arm920t/other_2/
> ...
>
> What do you think?
OK. Does this mean that the configuration line in Makefile says:
... arm arm920t/<subcpu> <boardname>
>
> > 2) There are some board-specific driver choices, e.g. serial driver,
> > that sometimes appear in the CPU directory. Perhaps these
> > choices are best made in the board directory instead.
>
> There should be no _board_-specific drivers in CPU directories. We
> had this discussion before, and all such cases that I'm aware of are
> really _processor_-specific drivers.
Perhaps I am misspeaking. These serial drivers are chip specific.
ARM920T, however, is *not* a chip. The serial driver in the ARM920T
directory is specific to the Samsung implementation.
> Please name the files if you disagree.
>
> > 3) Drivers, such as serial, could be made to export a function
> > table. This would allow driver selection by choosing which file
> > to compile and link.
>
> Isn't this how it works right now?
The serial driver for the samsung chip exports serial_getc(void) and
like routines. It could export more generic routines using a jump
table. I think this is the same thing that happened with the x86
port.
Cheers.
next prev parent reply other threads:[~2003-07-07 15:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-07 0:26 [U-Boot-Users] Manufacturer specific code in a bothersome place Marc Singer
[not found] ` <20030707142046.3C189C6D82@atlas.denx.de>
2003-07-07 15:29 ` Marc Singer [this message]
2003-07-07 16:33 ` Wolfgang Denk
2003-07-07 18:41 ` Marc Singer
2003-07-07 22:37 ` Wolfgang Denk
2003-07-07 23:24 ` Marc Singer
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=20030707152907.GA2816@buici.com \
--to=elf@buici.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