From: "André Schwarz" <Andre.Schwarz@matrix-vision.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] Add MVBC_P board
Date: Wed, 09 Jul 2008 00:57:44 +0200 [thread overview]
Message-ID: <4873F0E8.9030305@matrix-vision.de> (raw)
In-Reply-To: <20080708162042.4519e782.kim.phillips@freescale.com>
Kim Phillips wrote:
> On Tue, 08 Jul 2008 16:35:00 +0200
> Andre Schwarz <andre.schwarz@matrix-vision.de> wrote:
>
>
>> Kim,
>>
>> I forgot to mention that both fpga.c are _not_ the same.
>> They are using different FPGA sizes _and_ different I/Os on different cpu.
>>
>
> the size is a one-line thing that can be easily and understandably
> #ifdeffed. The gpio struct difference can be fixed like this:
>
> static u32 get_dvo()
> {
> #ifdef CONFIG_MPC83XX
> volatile immap_t *im = (volatile immap_t *)CFG_IMMR;
> volatile gpio83xx_t *gpio = (volatile gpio83xx_t *)&im->gpio[0];
> return gpio->dat;
> #else
> #ifdef CONFIG_MPC5XXX
> struct mpc5xxx_gpio *gpio = (struct mpc5xxx_gpio*)MPC5XXX_GPIO;
> return gpio->simple_dvo;
> #endif
> #endif
> }
>
> ...and subsequently use get_dvo() later in the file.
>
>
ok - you're right.
Will fix it along with other out_* issues.
>> It's not possible for me to use a common file for the short term.
>> Maybe later when the FPGA interface got mature ...
>>
>
> I really think code maintenance will suffer if you don't do it now;
> afaict, the file is functionally equal modulo the size one-liner.
>
> Kim
>
yes - thanks for persuading :-)
MATRIX VISION GmbH, Talstra?e 16, DE-71570 Oppenweiler - Registergericht: Amtsgericht Stuttgart, HRB 271090
Gesch?ftsf?hrer: Gerhard Thullner, Werner Armingeon, Uwe Furtner
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20080709/676d4809/attachment.htm
prev parent reply other threads:[~2008-07-08 22:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-04 7:42 [U-Boot-Users] [PATCH] Add MVBC_P board Andre Schwarz
2008-07-04 8:04 ` Wolfgang Grandegger
2008-07-04 8:14 ` Andre Schwarz
2008-07-07 20:04 ` Kim Phillips
2008-07-08 8:25 ` Andre Schwarz
2008-07-08 14:35 ` Andre Schwarz
2008-07-08 21:20 ` Kim Phillips
2008-07-08 22:57 ` André Schwarz [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=4873F0E8.9030305@matrix-vision.de \
--to=andre.schwarz@matrix-vision.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.