U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: stefano babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] MX53: Add initial support for MX53ARD board
Date: Sun, 15 May 2011 11:35:53 +0200	[thread overview]
Message-ID: <4DCF9E79.9020703@denx.de> (raw)
In-Reply-To: <1305379673-25948-2-git-send-email-fabio.estevam@freescale.com>

Am 14/05/2011 15:27, schrieb Fabio Estevam:

Hi Fabio,

> ---
> Stefano, this patch applies on your u-boot-imx tree with my previous MX53SMD patch applied.

Ok

> +
> +void weim_smc911x_iomux()
> +{
> +	unsigned int reg;
> +
> +	/* ETHERNET_INT_B as GPIO2_31 */
> +	mxc_request_iomux(MX53_PIN_EIM_EB3,
> +		IOMUX_CONFIG_ALT1);
> +	reg = readl(GPIO2_BASE_ADDR + 0x4);
> +	reg &= ~(0x80000000);
> +	writel(reg, GPIO2_BASE_ADDR + 0x4);

You have already included the mxc_gpio. You must use the mxc_gpio_*
function to access gpios.

> +
> +void weim_cs1_settings()
> +{
> +	unsigned int reg;
> +
> +	writel(0x20001, (WEIM_BASE_ADDR + 0x18));
> +	writel(0x0, (WEIM_BASE_ADDR + 0x1C));
> +	writel(0x16000202, (WEIM_BASE_ADDR + 0x20));
> +	writel(0x00000002, (WEIM_BASE_ADDR + 0x24));
> +	writel(0x16002082, (WEIM_BASE_ADDR + 0x28));
> +	writel(0x00000000, (WEIM_BASE_ADDR + 0x2C));
> +	writel(0x00000000, (WEIM_BASE_ADDR + 0x90));

Access to register with address + offset is not allowed. The right
structures are already defined in imx-regs.h. Use "struct weim" to
access to the weim registers.

> +	/* specify 64 MB on CS1 and CS0 */
> +	reg = readl(IOMUXC_BASE_ADDR + 0x4);
> +	reg &= ~0x3F;
> +	reg |= 0x1B;
> +	writel(reg, (IOMUXC_BASE_ADDR + 0x4));

Even here you must use structures to access registers.

> +
> +#define CONFIG_OF_LIBFDT
> +#define CONFIG_SYS_BOOTMAPSZ   0x800000

CONFIG_SYS_BOOTMAPSZ is condidered obsolete and removed in a recent commit.

Best regards,
Stefano


-- 
=====================================================================
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
=====================================================================

  reply	other threads:[~2011-05-15  9:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-14 13:27 [U-Boot] [PATCH 1/2] MX53: Define chip select 1 address Fabio Estevam
2011-05-14 13:27 ` [U-Boot] [PATCH 2/2] MX53: Add initial support for MX53ARD board Fabio Estevam
2011-05-15  9:35   ` stefano babic [this message]
2011-05-15  9:51     ` Wolfgang Denk
2011-05-16  5:40   ` Jason Liu

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=4DCF9E79.9020703@denx.de \
    --to=sbabic@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