From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] ppc4xx: Add GDsys CompactCenter board support.
Date: Mon, 13 Jul 2009 10:57:43 +0200 [thread overview]
Message-ID: <200907131057.43061.sr@denx.de> (raw)
In-Reply-To: <1247474158-21162-1-git-send-email-eibach@gdsys.de>
Hi Dirk,
On Monday 13 July 2009 10:35:58 Dirk Eibach wrote:
> diff --git a/board/gdsys/compactcenter/compactcenter.c
> b/board/gdsys/compactcenter/compactcenter.c new file mode 100644
> index 0000000..9f1e49d
> --- /dev/null
> +++ b/board/gdsys/compactcenter/compactcenter.c
<snip>
> +int get_cpu_num(void)
> +{
> + int cpu = NA_OR_UNKNOWN_CPU;
> +
> + return cpu;
> +}
Do you really need this function?
<snip>
> +#if defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP)
> +void ft_board_setup(void *blob, bd_t *bd)
> +{
Please check the latest version of this code in canyonlands.c. It's now using
the 4xx common __ft_board_setup() function. Please move to this version as
well.
<snip>
> +++ b/include/configs/compactcenter.h
> @@ -0,0 +1,495 @@
> +/*
> + * (C) Copyright 2009
> + * Dirk Eibach, Guntermann & Drunck GmbH, eibach at gdsys.de
> + *
> + * Based on include/configs/canyonlands.h
> + * (C) Copyright 2008
> + * Stefan Roese, DENX Software Engineering, sr at denx.de.
> + *
> + * 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
> + */
> +
> +/*
> + * compactcenter.h - configuration for CompactCenter (460EX)
> + */
> +#ifndef __CONFIG_H
> +#define __CONFIG_H
> +
> +/*
> + * High Level Configuration Options
> + */
> +/*
> + * This config file is used for Canyonlands and DevCon-Center
Canyonlands?
<snip>
> +/*
> + * PPC4xx GPIO Configuration
> + */
> +/* 460EX: Use USB configuration */
> +#define CONFIG_SYS_4xx_GPIO_TABLE { \
> +/* Out Alternate1 Alternate2 Alternate3 */ \
> +{ \
> +/* GPIO Core 0 */ \
> +/* GPIO0 GMC1TxD(0) USB2HostD(0) */ \
> +{GPIO0_BASE, GPIO_BI , GPIO_ALT1, GPIO_OUT_0}, \
I prefer to not split the too long lines in this CONFIG_SYS_4xx_GPIO_TABLE
macro. I know that the resulting lines are > 80 chars, but it really is *much*
better readable and maintainable this way.
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
next prev parent reply other threads:[~2009-07-13 8:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-13 8:35 [U-Boot] [PATCH v2] ppc4xx: Add GDsys CompactCenter board support Dirk Eibach
2009-07-13 8:57 ` Stefan Roese [this message]
2009-07-15 7:28 ` Eibach, Dirk
2009-07-15 9:16 ` Stefan Roese
2009-07-15 9:24 ` Felix Radensky
2009-07-15 9:28 ` Eibach, Dirk
2009-07-20 8:44 ` Stefan Roese
2009-07-21 8:05 ` Felix Radensky
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=200907131057.43061.sr@denx.de \
--to=sr@denx.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox