[U-Boot] [PATCH V3 2/4] arm: mx5: Avoid hardcoding memory sizes on MX53QSB
Stefano Babic
sbabic at denx.de
Tue Apr 1 10:19:47 CEST 2014
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 at denx.de>
> Cc: Fabio Estevam <fabio.estevam at freescale.com>
> Cc: Stefano Babic <sbabic at denx.de>
> Cc: Wolfgang Denk <wd at 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
=====================================================================
More information about the U-Boot
mailing list