mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-29 08:00:26 +09:00
common/board_f: avoid -Wtype-limits warning
CONFIG_SYS_SDRAM_BASE maybe zero. Avoid a build warning when compiling with -Wtype-limits. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
3988be5fd4
commit
542809620e
@ -309,7 +309,7 @@ __weak int mach_cpu_init(void)
|
|||||||
/* Get the top of usable RAM */
|
/* Get the top of usable RAM */
|
||||||
__weak ulong board_get_usable_ram_top(ulong total_size)
|
__weak ulong board_get_usable_ram_top(ulong total_size)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_SYS_SDRAM_BASE
|
#if defined(CONFIG_SYS_SDRAM_BASE) && CONFIG_SYS_SDRAM_BASE > 0
|
||||||
/*
|
/*
|
||||||
* Detect whether we have so much RAM that it goes past the end of our
|
* Detect whether we have so much RAM that it goes past the end of our
|
||||||
* 32-bit address space. If so, clip the usable RAM so it doesn't.
|
* 32-bit address space. If so, clip the usable RAM so it doesn't.
|
||||||
|
Loading…
Reference in New Issue
Block a user