Merge branch '2021-02-02-drop-asm_global_data-when-unused'
[platform/kernel/u-boot.git] / arch / arm / mach-rockchip / sdram.c
index ed07ece..28c379e 100644 (file)
@@ -38,7 +38,7 @@ struct tos_parameter_t {
 int dram_init_banksize(void)
 {
        size_t top = min((unsigned long)(gd->ram_size + CONFIG_SYS_SDRAM_BASE),
-                        gd->ram_top);
+                        (unsigned long)(gd->ram_top));
 
 #ifdef CONFIG_ARM64
        /* Reserve 0x200000 for ATF bl31 */