1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-03 17:52:07 +02:00

arm: rockchip: Explicitly cast gd->ram_top in dram_init_banksize()

The min() macro used in dram_init_banksize() requires two elements
to compare have the same type. Let's explicitly cast gd->ram_top.

Signed-off-by: Bin Meng <bin.meng@windriver.com>
This commit is contained in:
Bin Meng
2021-01-31 20:35:58 +08:00
committed by Simon Glass
parent 85c714d8dc
commit 65f354cd8d

View File

@@ -37,7 +37,7 @@ struct tos_parameter_t {
int dram_init_banksize(void) int dram_init_banksize(void)
{ {
size_t top = min((unsigned long)(gd->ram_size + CONFIG_SYS_SDRAM_BASE), size_t top = min((unsigned long)(gd->ram_size + CONFIG_SYS_SDRAM_BASE),
gd->ram_top); (unsigned long)(gd->ram_top));
#ifdef CONFIG_ARM64 #ifdef CONFIG_ARM64
/* Reserve 0x200000 for ATF bl31 */ /* Reserve 0x200000 for ATF bl31 */