public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Nick Thompson <nick.thompson@ge.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/3] Add board specific code for da850 EVM
Date: Wed, 16 Dec 2009 11:56:42 +0000	[thread overview]
Message-ID: <4B28CAFA.5010902@ge.com> (raw)
In-Reply-To: <1260959064-29783-1-git-send-email-sudhakar.raj@ti.com>

On 16/12/09 10:24, Sudhakar Rajashekhara wrote:
> Provides initial support for TI OMAP-L138/DA850 SoC devices on
> a Logic PD EVM board.
> 
> Provides:
> Initial boot and configuration.
> Support for i2c.
> UART support (console).
> 
> Signed-off-by: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
> ---
>  board/davinci/da8xxevm/Makefile         |    1 +
>  board/davinci/da8xxevm/da850evm.c       |  124 +++++++++++++++++++++++++++++++
>  include/asm-arm/arch-davinci/hardware.h |    1 +
>  3 files changed, 126 insertions(+), 0 deletions(-)
>  create mode 100644 board/davinci/da8xxevm/da850evm.c
> 

[...]

> diff --git a/board/davinci/da8xxevm/da850evm.c b/board/davinci/da8xxevm/da850evm.c
> new file mode 100644
> index 0000000..92548e2
> --- /dev/null
> +++ b/board/davinci/da8xxevm/da850evm.c
> @@ -0,0 +1,124 @@
> +/*
> + * (C) Copyright 2009, Texas Instruments, Inc. http://www.ti.com/
> + *
> + * Based on da830evm.c

At this point, this seem to be a copy of da830evm.c (well except the first few lines above).

Copied code is not good. I have changes still in the pipe line for da830evm.c for adding
support for NAND and Ethernet and there is a USB patch out there IIRC.

Since the da850 is so similar, I suspect we can at least factor out the common parts so
that we don't have to edit two files to add NAND support for example.

I think it is the case that the only difference is DDR instead of SDRAM and the UBL will
handle that for us. Is that true for the device *and* the EVM? If so, then possibly
da830evm.c could be renamed to da8xxevm.c and the code kept completely common - at the risk
of adding a few ifdefs later.

Nick.

  reply	other threads:[~2009-12-16 11:56 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 [this message]
2009-12-18 10:23   ` Sudhakar Rajashekhar
2009-12-21 10:18     ` Nick Thompson
2009-12-22  6:30       ` Sudhakar Rajashekhara
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=4B28CAFA.5010902@ge.com \
    --to=nick.thompson@ge.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