All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marek.vasut@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] MX51: vision2: Set global macros
Date: Thu, 29 Sep 2011 03:34:38 +0200	[thread overview]
Message-ID: <201109290334.38803.marek.vasut@gmail.com> (raw)
In-Reply-To: <1317204557-11130-1-git-send-email-sbabic@denx.de>

On Wednesday, September 28, 2011 12:09:17 PM Stefano Babic wrote:
> Adapt vision2 to the current u-boot version. Drop
> own macros to set global data and use the common ones.
> 
> Signed-off-by: Stefano Babic <sbabic@denx.de>
> ---
>  include/configs/vision2.h |   17 +++++++++--------
>  1 files changed, 9 insertions(+), 8 deletions(-)
> 
> diff --git a/include/configs/vision2.h b/include/configs/vision2.h
> index 16ed975..c07cee4 100644
> --- a/include/configs/vision2.h
> +++ b/include/configs/vision2.h
> @@ -192,14 +192,15 @@
>  #define PHYS_SDRAM_1_SIZE		(256 * 1024 * 1024)
>  #define PHYS_SDRAM_2			CSD1_BASE_ADDR
>  #define PHYS_SDRAM_2_SIZE		(256 * 1024 * 1024)
> -#define CONFIG_SYS_SDRAM_BASE		0x90000000
> -#define CONFIG_SYS_INIT_RAM_ADDR	0x1FFE8000
> -
> -#define CONFIG_SYS_INIT_RAM_SIZE		(64 * 1024)
> -#define CONFIG_SYS_GBL_DATA_OFFSET	(CONFIG_SYS_INIT_RAM_SIZE - \
> -					GENERATED_GBL_DATA_SIZE)
> -#define CONFIG_SYS_INIT_SP_ADDR		(CONFIG_SYS_INIT_RAM_ADDR + \
> -					CONFIG_SYS_GBL_DATA_OFFSET)
> +#define CONFIG_SYS_SDRAM_BASE		(PHYS_SDRAM_1)
> +#define CONFIG_SYS_INIT_RAM_ADDR	(IRAM_BASE_ADDR)
> +#define CONFIG_SYS_INIT_RAM_SIZE	(IRAM_SIZE)

Arent the parentheses redundant here?

Cheers

> +
> +#define CONFIG_SYS_INIT_SP_OFFSET \
> +	(CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
> +#define CONFIG_SYS_INIT_SP_ADDR \
> +	(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
> +
>  #define CONFIG_BOARD_EARLY_INIT_F
> 
>  /* 166 MHz DDR RAM */

  reply	other threads:[~2011-09-29  1:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-28 10:09 [U-Boot] [PATCH] MX51: vision2: Set global macros Stefano Babic
2011-09-29  1:34 ` Marek Vasut [this message]
2011-09-29 13:27   ` Stefano Babic
2011-10-05 10:08 ` [U-Boot] [PATCH V2] " Stefano Babic

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=201109290334.38803.marek.vasut@gmail.com \
    --to=marek.vasut@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.