public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH/RFC 1/2]: arm: Kirkwood: Split PHY-related initialization to a common file
Date: Tue, 7 Jul 2009 22:37:53 +0200	[thread overview]
Message-ID: <20090707203753.GP30172@game.jcrosoft.org> (raw)
In-Reply-To: <20090702151937.6ad3a500@marrow.netinsight.se>

On 15:19 Thu 02 Jul     , Simon Kagstrom wrote:
> Split PHY-related initialization to a common file
> 
> The mv881116 PHY initialization is split out to a common file to enable
> code reuse between different boards.
please note if that will be share with non Marvell code this is not the right
place to store it
> 
> Signed-off-by: Simon Kagstrom <simon.kagstrom@netinsight.net>
> ---
>  board/Marvell/common/mv881116.c       |   65 +++++++++++++++++++++++++++++++++
>  board/Marvell/common/mv881116.h       |   29 +++++++++++++++
>  board/Marvell/sheevaplug/Makefile     |    2 +-
>  board/Marvell/sheevaplug/sheevaplug.c |   32 ++---------------
>  board/Marvell/sheevaplug/sheevaplug.h |    8 ----
>  5 files changed, 98 insertions(+), 38 deletions(-)
>  create mode 100644 board/Marvell/common/mv881116.c
>  create mode 100644 board/Marvell/common/mv881116.h
> 
> diff --git a/board/Marvell/common/mv881116.c b/board/Marvell/common/mv881116.c
> new file mode 100644
> index 0000000..9f5c7f1
> --- /dev/null
> +++ b/board/Marvell/common/mv881116.c
> @@ -0,0 +1,65 @@
> +/*
> + * (C) Copyright 2009
> + * Marvell Semiconductor <www.marvell.com>
> + * Written-by: Simon Kagstrom <simon.kagstrom@netinsight.net>
> + *
as you just move code for an file to an other please let the original
Copyright header
> + * See file CREDITS for list of people who contributed to this
> + * project.
> + *
<snip>
> diff --git a/board/Marvell/common/mv881116.h b/board/Marvell/common/mv881116.h
> new file mode 100644
> index 0000000..f1fe13f
> --- /dev/null
> +++ b/board/Marvell/common/mv881116.h
> @@ -0,0 +1,29 @@
> +/*
> + * (C) Copyright 2009
> + * Marvell Semiconductor <www.marvell.com>
> + * Written-by: Simon Kagstrom <simon.kagstrom@netinsight.net>
> + *
same here

> diff --git a/board/Marvell/sheevaplug/Makefile b/board/Marvell/sheevaplug/Makefile
> index e378b5b..05c979d 100644
> --- a/board/Marvell/sheevaplug/Makefile
> +++ b/board/Marvell/sheevaplug/Makefile
> @@ -26,7 +26,7 @@ include $(TOPDIR)/config.mk
>  
>  LIB	= $(obj)lib$(BOARD).a
>  
> -COBJS	:= sheevaplug.o
> +COBJS	:= sheevaplug.o ../common/mv881116.o
please create a common Makefile
>  
>  SRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
>  OBJS	:= $(addprefix $(obj),$(COBJS))
> diff --git a/board/Marvell/sheevaplug/sheevaplug.c b/board/Marvell/sheevaplug/sheevaplug.c
> index 547126a..f018a46 100644
> --- a/board/Marvell/sheevaplug/sheevaplug.c
> +++ b/board/Marvell/sheevaplug/sheevaplug.c
> @@ -27,6 +27,7 @@
>  #include <asm/arch/kirkwood.h>
>  #include <asm/arch/mpp.h>
>  #include "sheevaplug.h"
> +#include "../common/mv881116.h"
Best Regards,
J.

  parent reply	other threads:[~2009-07-07 20:37 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-02 13:18 [U-Boot] [PATCH/RFC 0/2]: arm: Kirkwood: OpenRD base board support Simon Kagstrom
2009-07-02 13:19 ` [U-Boot] [PATCH/RFC 1/2]: arm: Kirkwood: Split PHY-related initialization to a common file Simon Kagstrom
2009-07-03  4:21   ` Prafulla Wadaskar
2009-07-07 20:37   ` Jean-Christophe PLAGNIOL-VILLARD [this message]
2009-07-08  6:36     ` Prafulla Wadaskar
2009-07-08  6:43     ` Simon Kagstrom
2009-07-08  7:04       ` Prafulla Wadaskar
2009-07-02 13:20 ` [U-Boot] [PATCH/RFC 2/2]: arm: Kirkwood: Support for the OpenRD base board Simon Kagstrom
2009-07-03  4:14   ` Prafulla Wadaskar
2009-07-03  4:26 ` [U-Boot] [PATCH/RFC 0/2]: arm: Kirkwood: OpenRD base board support Prafulla Wadaskar
2009-07-07  8:35   ` Prafulla Wadaskar
2009-07-07  8:47     ` Simon Kagstrom

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=20090707203753.GP30172@game.jcrosoft.org \
    --to=plagnioj@jcrosoft.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