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] [PATCH] Kirkwood: dram_init is moved to dram.c
Date: Thu, 30 Sep 2010 19:29:35 +0200	[thread overview]
Message-ID: <20100930172935.BA5F0134F56@gemini.denx.de> (raw)
In-Reply-To: <1285869240-17251-1-git-send-email-prafulla@marvell.com>

Dear Prafulla Wadaskar,

In message <1285869240-17251-1-git-send-email-prafulla@marvell.com> you wrote:
> For all Kirkwood boards so far dram_init function is duplicated
> dram_init function is moved to dram.c and relevant code from all
> board specific files removed
> 
> If any board needs specific dram init handling than standard one,
> then, a macro CONFIG_SYS_BOARD_DRAM_INIT should be defined in
> board config header file and the dram_init function can be put
> in board specific source file
> For ex. keymile boards

Thanks, I really appreciate this patch, but I have a minor request for
change:

> +#if !defined(CONFIG_SYS_ARM_WITHOUT_RELOC)
> +	gd->ram_size = 0;
> +#endif
> +	for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++) {
> +		gd->bd->bi_dram[i].start = kw_sdram_bar(i);
> +		gd->bd->bi_dram[i].size = kw_sdram_bs(i);
> +#if !defined(CONFIG_SYS_ARM_WITHOUT_RELOC)
> +		gd->ram_size += gd->bd->bi_dram[i].size;
> +#endif

When you touch this board now and make it work with
CONFIG_SYS_ARM_WITHOUT_RELOC not defined, we should also drop all
references to CONFIG_SYS_ARM_WITHOUT_RELOC from the code to make it
obvious that this board has been adapted.

Thanks.

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
Anyone who doesn't believe in miracles is not a realist.
                                                   - David Ben Gurion

  parent reply	other threads:[~2010-09-30 17:29 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-30 17:53 [U-Boot] [PATCH] Kirkwood: dram_init is moved to dram.c Prafulla Wadaskar
2010-09-30 15:39 ` Heiko Schocher
2010-10-01  5:59   ` Prafulla Wadaskar
2010-10-01  6:17     ` Heiko Schocher
2010-10-01  8:00       ` Wolfgang Denk
2010-10-01  6:20     ` Albert ARIBAUD
2010-10-01  6:25       ` Prafulla Wadaskar
2010-10-01  7:53     ` Wolfgang Denk
2010-09-30 17:29 ` Wolfgang Denk [this message]
2010-10-01  7:23   ` Prafulla Wadaskar
2010-09-30 17:53 ` [U-Boot] [PATCH] kirkwood: added common config file mv-config.h Prafulla Wadaskar
2010-09-30 13:54   ` Rogan Dawes
2010-09-30 14:33     ` Prafulla Wadaskar
2010-09-30 15:26       ` Rogan Dawes
2010-09-30 15:35       ` Albert ARIBAUD
2010-10-01  6:10         ` Prafulla Wadaskar
2010-10-01  6:35           ` Albert ARIBAUD
2010-10-01  6:45             ` Prafulla Wadaskar
2010-09-30 17:54   ` [U-Boot] [PATCH] Kirkwood: Changes specific to ARM relocation support Prafulla Wadaskar
2010-09-30 15:40     ` Heiko Schocher
2010-09-30 16:21       ` Albert ARIBAUD
2010-09-30 17:50         ` Wolfgang Denk
2010-09-30 17:49       ` Wolfgang Denk
2010-09-30 22:06         ` Marek Vasut
2010-10-01  7:21       ` Prafulla Wadaskar
2010-09-30 17:34     ` Wolfgang Denk

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=20100930172935.BA5F0134F56@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