2 * (C) Copyright 2015 Google, Inc
4 * SPDX-License-Identifier: GPL-2.0+
12 DECLARE_GLOBAL_DATA_PTR;
25 ret = uclass_get_device(UCLASS_RAM, 0, &dev);
27 debug("DRAM init failed: %d\n", ret);
30 ret = ram_get_info(dev, &ram);
32 debug("Cannot get DRAM size: %d\n", ret);
35 debug("SDRAM base=%lx, size=%x\n", ram.base, ram.size);
36 gd->ram_size = ram.size;
41 #ifndef CONFIG_SYS_DCACHE_OFF
42 void enable_caches(void)
44 /* Enable D-cache. I-cache is already enabled in start.S */