On 28/03/2014 08:31, Marek Vasut wrote:
> The DRAM size can be easily detected at runtime on i.MX53. Implement
> such detection on M53EVK 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 <ma...@denx.de>
> Cc: Fabio Estevam <fabio.este...@freescale.com>
> Cc: Stefano Babic <sba...@denx.de>
> Cc: Wolfgang Denk <w...@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: sba...@denx.de
=====================================================================
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to