public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V3 2/4] arm: mx5: Avoid hardcoding memory sizes on MX53QSB
Date: Tue, 01 Apr 2014 10:19:47 +0200	[thread overview]
Message-ID: <533A76A3.1070200@denx.de> (raw)
In-Reply-To: <1395991861-6528-2-git-send-email-marex@denx.de>

On 28/03/2014 08:30, Marek Vasut wrote:
> The DRAM size can be easily detected at runtime on i.MX53. Implement
> such detection on MX53QSB and adjust the rest of the macros accordingly
> to use the detected values.
> 
> An important thing to note here is that we had to override the function
> for trimming the effective DRAM address, get_effective_memsize(). That
> is because the function uses CONFIG_MAX_MEM_MAPPED as the upper bound of
> the available DRAM and we don't have gd->bd->bi_dram[0].size set up at
> the time the function is called, thus we cannot put this into the macro
> CONFIG_MAX_MEM_MAPPED . Instead, we use custom override where we use the
> size of the first DRAM block which we just detected.
> 
> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Fabio Estevam <fabio.estevam@freescale.com>
> Cc: Stefano Babic <sbabic@denx.de>
> Cc: Wolfgang Denk <wd@denx.de>
> ---

Applied to u-boot-imx, thanks !

Best regards,
Stefano Babic


-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

  reply	other threads:[~2014-04-01  8:19 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-28  7:30 [U-Boot] [PATCH V2 1/4] arm: mx5: Fix memory slowness on MX53QSB Marek Vasut
2014-03-28  7:30 ` [U-Boot] [PATCH V3 2/4] arm: mx5: Avoid hardcoding memory sizes " Marek Vasut
2014-04-01  8:19   ` Stefano Babic [this message]
2014-03-28  7:31 ` [U-Boot] [PATCH V2 3/4] arm: mx5: Fix memory slowness on M53EVK Marek Vasut
2014-04-01  8:20   ` Stefano Babic
2014-03-28  7:31 ` [U-Boot] [PATCH V3 4/4] arm: mx5: Avoid hardcoding memory sizes " Marek Vasut
2014-04-01  8:20   ` Stefano Babic
2014-03-31  7:21 ` [U-Boot] [PATCH V2 1/4] arm: mx5: Fix memory slowness on MX53QSB Stefano Babic
2014-03-31  7:48   ` Marek Vasut
2014-03-31  9:47     ` Stefano Babic
2014-03-31  9:52       ` Marek Vasut
2014-04-01  8:19 ` 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=533A76A3.1070200@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