From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] sh: Add support PCI host driver for SH7751/SH7751R
Date: Wed, 12 Mar 2008 23:09:50 +0100 [thread overview]
Message-ID: <20080312220950.GC18968@game.jcrosoft.org> (raw)
In-Reply-To: <20080312154118.056aeb9f.iwamatsu@nigauri.org>
On 15:41 Wed 12 Mar , Nobuhiro Iwamatsu wrote:
> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
> ---
> cpu/sh4/Makefile | 2 +-
> cpu/sh4/pci-sh7751.c | 204 ++++++++++++++++++++++++++++++++++++++++++++++++++
> include/asm-sh/pci.h | 4 +-
> 3 files changed, 208 insertions(+), 2 deletions(-)
> create mode 100644 cpu/sh4/pci-sh7751.c
>
> diff --git a/cpu/sh4/Makefile b/cpu/sh4/Makefile
> index 7a53cb6..6dc8a59 100644
> --- a/cpu/sh4/Makefile
> +++ b/cpu/sh4/Makefile
> @@ -30,7 +30,7 @@ LIB = $(obj)lib$(CPU).a
>
> START = start.o
> OBJS = cpu.o interrupts.o watchdog.o time.o cache.o \
> - pci-sh4.o pci-sh7780.o
> + pci-sh4.o pci-sh7751.o pci-sh7780.o
Could you split it to one line for one file
>
> all: .depend $(START) $(LIB)
>
> diff --git a/cpu/sh4/pci-sh7751.c b/cpu/sh4/pci-sh7751.c
> new file mode 100644
> index 0000000..86d64dd
> --- /dev/null
> +++ b/cpu/sh4/pci-sh7751.c
> @@ -0,0 +1,204 @@
> +/*
> + * SH7751 PCI Controller (PCIC) for U-Boot.
> + * (C) Dustin McIntire (dustin at sensoria.com)
> + * (C) 2007,2008 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
> + *
> + * See file CREDITS for list of people who contributed to this
> + * project.
> + *
> + * This program is free software; you can redistribute it and/or
> + * modify it under the terms of the GNU General Public License as
> + * published by the Free Software Foundation; either version 2 of
> + * the License, or (at your option) any later version.
> + *
> + * This program is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> + * GNU General Public License for more details.
> + *
> + * You should have received a copy of the GNU General Public License
> + * along with this program; if not, write to the Free Software
> + * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
> + * MA 02111-1307 USA
> + */
> +
> +#include <common.h>
> +
> +#if defined(CONFIG_PCI) && defined(CONFIG_SH4_PCI) \
> + && defined(CONFIG_SH7751_PCI)
Could you move it to the Makefile
> +
> +#include <asm/processor.h>
> +#include <asm/io.h>
> +#include <pci.h>
I think it will be good to move the pci drivers to drivers/pci
Best Regards,
J.
next prev parent reply other threads:[~2008-03-12 22:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-12 6:41 [U-Boot-Users] [PATCH] sh: Add support PCI host driver for SH7751/SH7751R Nobuhiro Iwamatsu
2008-03-12 22:09 ` Jean-Christophe PLAGNIOL-VILLARD [this message]
2008-03-23 16:23 ` Nobuhiro Iwamatsu
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=20080312220950.GC18968@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