From: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/3] Add board specific code for da850 EVM
Date: Tue, 22 Dec 2009 12:00:18 +0530 [thread overview]
Message-ID: <01b101ca82d0$3c207910$b4616b30$@raj@ti.com> (raw)
In-Reply-To: <4B2F4B7E.3020407@ge.com>
Hi,
On Mon, Dec 21, 2009 at 15:48:38, Nick Thompson wrote:
[...]
> >>
> >> At this point, this seem to be a copy of da830evm.c (well except the first
> > few lines above).
> >>
> >
> > I don't think you have observed that the PINMUX registers are different on
> > da850. So we are at risk of adding many ifdefs now itself if we combine da830
> > and da850. Also, there are few things which differ between da830 and da850, for
> > example, MAC address is stored in I2C eeprom on da830 and in SPI eeprom on
> > da850. You can have a look at http://www.arago-project.org/git/people/?
> > p=sekhar/u-boot-omapl1.git;a=summary to understand how the da830 and da850
> > files look later when support for most peripherals are added.
> >
> > To avoid code cluttering, I prefer using two separate files for da830 and da850.
>
> Yes, the pinmux table definitions are different, but I don't see how this
> requires duplicating code.
>
> In the latest patches for da830, the pinmux setup is table driven. It would
> be very simple to pull out the two tables into da830 and da850 specific
> files (selected by the build system) and use common pinmux code to setup the
> pins appropriately. The code part for this is simply:
>
> /* configure pinmux settings */
> if (davinci_configure_pin_mux_items(pinmuxes, ARRAY_SIZE(pinmuxes)))
> return 1;
>
> That would be exactly the same line of code for both devices.
>
Now I understand your intention. You are OK having two different files for da830 and
da850, but you want me to put the common code in one place. I'll rework on this patch
based on your comments and will resubmit it.
Also, you are talking about the latest patches for da830 which are following the above
framework, but I did not see them in u-boot-ti branch. Have you submitted them to the
list? If you have any public tree where you have maintained them, can you point me to
that?
Thanks,
Sudhakar
next prev parent reply other threads:[~2009-12-22 6:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-16 10:24 [U-Boot] [PATCH 2/3] Add board specific code for da850 EVM Sudhakar Rajashekhara
2009-12-16 11:56 ` Nick Thompson
2009-12-18 10:23 ` Sudhakar Rajashekhar
2009-12-21 10:18 ` Nick Thompson
2009-12-22 6:30 ` Sudhakar Rajashekhara [this message]
2010-01-04 11:21 ` Sudhakar Rajashekhara
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='01b101ca82d0$3c207910$b4616b30$@raj@ti.com' \
--to=sudhakar.raj@ti.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