public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCHv2 4/4] armv7: Add support for ST-Ericsson U8500 href platform
Date: Mon, 11 Apr 2011 20:09:18 +0200	[thread overview]
Message-ID: <20110411180918.4DF43151F83@gemini.denx.de> (raw)
In-Reply-To: <1301761196-26072-5-git-send-email-john.rigby@linaro.org>

Dear John Rigby,

In message <1301761196-26072-5-git-send-email-john.rigby@linaro.org> you wrote:
> Based on ST-Ericsson private git repo.
> Plus changes to use arm_pl180_mmci driver.
> 
> This board support requires the vexpress mmc driver patch set from
> Matt Waddel.

All these comments are not really useful as commit message.  YOu might
add these as comments.

For the commit message, I'd rather like to see a short description of
the board, and which board features are supported by this port.

...
> +extern int prcmu_i2c_read(u8 reg, u16 slave);
> +extern int prcmu_i2c_write(u8 reg, u16 slave, u8 reg_data);

Please move prototype declarations to approproate header file.

> +int board_mmc_init(bd_t *bd)
> +{
> +	if (u8500_mmci_board_init())
> +		return -ENODEV;
> +
> +	arm_pl180_mmci_init();

Error.  You ignore the return code from arm_pl180_mmci_init() here.
Please fix.

...
> +	/* check ARM clock source */
> +	reg = readl(PRCM_ARM_CHGCLKREQ_REG);
> +	printf("A9 running on ");
> +	if (reg & 1)
> +		printf("external clock");
> +	else
> +		printf("ARM PLL");
> +	printf("\n");

Something like

	printf("A9 running on %s\n",
		(reg & 1) ? "external clock" : "ARM PLL";

would probably result in smaller (and faster) code.

The same applies to other places, too.

...
> +#define CONFIG_SYS_MEMTEST_START	0x00000000
> +#define CONFIG_SYS_MEMTEST_END	0x1FFFFFFF

Has this actually been tested?


> +#define CONFIG_BOARD_EARLY_INIT_F	1
> +#define BOARD_LATE_INIT		1
...
> +#define CONFIG_MMC		1
> +#define CONFIG_GENERIC_MMC	1
> +#define CONFIG_DOS_PARTITION	1

Please omit the '1' in all defines that select features only.


Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"More software projects have gone awry for lack of calendar time than
for all other causes combined."
                         - Fred Brooks, Jr., _The Mythical Man Month_

      reply	other threads:[~2011-04-11 18:09 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-22 20:40 [U-Boot] [PATCH 0/4] ST-Ericsson U8500 support John Rigby
2011-03-22 20:40 ` [U-Boot] [PATCH 1/4] p101x: extra init for u8500 John Rigby
2011-03-22 20:40 ` [U-Boot] [PATCH 2/4] armv7: Add ST-Ericsson u8500 arch John Rigby
2011-04-11 18:04   ` Wolfgang Denk
2011-03-22 20:40 ` [U-Boot] [PATCH 3/4] I2C: add driver of st-ericsson u8500 i2c John Rigby
2011-03-23  7:00   ` Heiko Schocher
2011-03-22 20:40 ` [U-Boot] [PATCH 4/4] armv7: Add support for ST-Ericsson U8500 href platform John Rigby
2011-03-22 20:46 ` [U-Boot] [PATCH 0/4] ST-Ericsson U8500 support John Rigby
2011-04-02 16:19 ` [U-Boot] [PATCHv2 " John Rigby
2011-04-11 17:33   ` John Rigby
2011-04-11 19:52     ` Albert ARIBAUD
2011-04-12  6:17   ` [U-Boot] [PATCHv3 " John Rigby
2011-04-28 14:47     ` John Rigby
2011-04-28 15:40       ` Albert ARIBAUD
2011-04-28 18:41         ` John Rigby
2011-05-12 13:41           ` John Rigby
2011-04-12  6:17   ` [U-Boot] [PATCHv3 1/4] Serial: p1011: new vendor init options John Rigby
2011-04-12  6:17   ` [U-Boot] [PATCHv3 2/4] armv7: Add ST-Ericsson u8500 arch John Rigby
2011-04-12  7:25     ` Albert ARIBAUD
2011-04-12  6:17   ` [U-Boot] [PATCHv3 3/4] I2C: Add driver for ST-Ericsson U8500 i2c John Rigby
2011-04-12  6:47     ` Heiko Schocher
2011-04-12  6:17   ` [U-Boot] [PATCHv3 4/4] armv7: Add support for ST-Ericsson U8500 href platform John Rigby
2011-04-19 20:42   ` [U-Boot] [PATCHv4 1/4] Serial: p1011: new vendor init options John Rigby
2011-04-19 20:59     ` Kumar Gala
2011-04-19 20:42   ` [U-Boot] [PATCHv4 2/4] armv7: Add ST-Ericsson u8500 arch John Rigby
2011-05-19 21:54     ` John Rigby
2011-06-01 17:34     ` Albert ARIBAUD
2011-04-19 20:42   ` [U-Boot] [PATCHv4 3/4] I2C: Add driver for ST-Ericsson U8500 i2c John Rigby
2011-04-28 18:52     ` John Rigby
2011-04-29  5:34       ` Heiko Schocher
2011-06-01 17:34     ` Albert ARIBAUD
2011-04-19 20:42   ` [U-Boot] [PATCHv4 4/4] armv7: Add support for ST-Ericsson U8500 href platform John Rigby
2011-06-01 17:35     ` Albert ARIBAUD
2011-05-12  8:05   ` [U-Boot] [PATCH 1/4] Serial: pl011: new vendor init options John Rigby
2011-05-12 17:10     ` Wolfgang Denk
2011-04-02 16:19 ` [U-Boot] [PATCHv2 1/4] p101x: extra init for u8500 John Rigby
2011-04-11 17:48   ` Wolfgang Denk
2011-04-02 16:19 ` [U-Boot] [PATCHv2 2/4] armv7: Add ST-Ericsson u8500 arch John Rigby
2011-04-02 16:19 ` [U-Boot] [PATCHv2 3/4] I2C: add driver of st-ericsson u8500 i2c John Rigby
2011-04-04  5:45   ` Heiko Schocher
2011-04-02 16:19 ` [U-Boot] [PATCHv2 4/4] armv7: Add support for ST-Ericsson U8500 href platform John Rigby
2011-04-11 18:09   ` Wolfgang Denk [this message]

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=20110411180918.4DF43151F83@gemini.denx.de \
    --to=wd@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