public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Igor Grinberg <grinberg@compulab.co.il>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] at91: Add support for Bluewater Systems Snapper 9G45 module
Date: Wed, 02 Nov 2011 11:32:09 +0200	[thread overview]
Message-ID: <4EB10E19.2010805@compulab.co.il> (raw)
In-Reply-To: <1320160968-3954-1-git-send-email-sglass@bluewatersys.com>

Hi Simon,

On 11/01/11 17:22, Simon Glass wrote:
> Snapper 9G45 is a ARM9-based CPU module with 1GB NAND and 128MB
> DDR SDRAM. This patch includes NAND and Ethernet support.
> 
> Signed-off-by: Simon Glass <sglass@bluewatersys.com>
> ---
> Changes in v2:
> - Removed unneeded i2c config
> - Added machine type define
> 
>  board/bluewater/snapper9g45/Makefile      |   43 +++++++
>  board/bluewater/snapper9g45/snapper9g45.c |  155 ++++++++++++++++++++++++
>  boards.cfg                                |    1 +
>  include/configs/snapper9g45.h             |  185 +++++++++++++++++++++++++++++
>  4 files changed, 384 insertions(+), 0 deletions(-)
>  create mode 100644 board/bluewater/snapper9g45/Makefile
>  create mode 100644 board/bluewater/snapper9g45/snapper9g45.c
>  create mode 100644 include/configs/snapper9g45.h

[...]

> diff --git a/board/bluewater/snapper9g45/snapper9g45.c b/board/bluewater/snapper9g45/snapper9g45.c
> new file mode 100644
> index 0000000..f057e59
> --- /dev/null
> +++ b/board/bluewater/snapper9g45/snapper9g45.c

[...]

> +
> +int board_init(void)
> +{
> +	struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC;
> +
> +	/* Enable PIO clocks */
> +	writel((1 << ATMEL_ID_PIOA) |
> +		(1 << ATMEL_ID_PIOB) |
> +		(1 << ATMEL_ID_PIOC |
> +		(1 << ATMEL_ID_PIODE)), &pmc->pcer);
> +
> +	gd->bd->bi_arch_number = MACH_TYPE_SNAPPER9G45;

Please, use common code facilities (check CONFIG_MACH_TYPE in README).

> +
> +	/* Address of boot parameters */
> +	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
> +
> +	/* Initialise peripherals */
> +	at91_seriald_hw_init();
> +	i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);

Why do you need the additional i2c_init() call here?
It is already called in the init_sequence[] array.

> +	nand_hw_init();
> +
> +	macb_hw_init();
> +
> +	return 0;
> +}
> +

[...]


-- 
Regards,
Igor.

      parent reply	other threads:[~2011-11-02  9:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-23  3:09 [U-Boot] [PATCH] at91: Add support for Bluewater Systems Snapper 9G45 module Simon Glass
2011-10-23  3:57 ` Reinhard Meyer
2011-11-01 14:44   ` Simon Glass
2011-11-01 15:22 ` [U-Boot] [PATCH v2] " Simon Glass
2011-11-01 20:38   ` Andre Renaud
2011-11-02  9:32   ` Igor Grinberg [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=4EB10E19.2010805@compulab.co.il \
    --to=grinberg@compulab.co.il \
    --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